/* ============================================================
   天天领券 · 后台登录页样式
   ============================================================ */

:root {
  --brand-1: #FF6B2C;
  --brand-2: #FF3B30;
  --brand-grad: linear-gradient(135deg, #FF8A3D 0%, #FF6B2C 45%, #FF3B30 100%);
  --text-1: #1F2329;
  --text-2: #5B6470;
  --text-3: #939CAA;
  --line: rgba(31, 35, 41, .08);
  --radius-lg: 22px;
  --ease: cubic-bezier(.34, 1.28, .64, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-1);
  background: linear-gradient(160deg, #1B1F2A 0%, #262C3D 55%, #33262B 100%);
  -webkit-font-smoothing: antialiased;
}

/* 背景光斑 */
.bg-decor {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-decor span {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.bg-decor span:nth-child(1) {
  width: 460px;
  height: 460px;
  top: -160px;
  left: -80px;
  background: rgba(255, 107, 44, .5);
}

.bg-decor span:nth-child(2) {
  width: 380px;
  height: 380px;
  bottom: -140px;
  right: -60px;
  background: rgba(255, 59, 48, .42);
}

.bg-decor span:nth-child(3) {
  width: 320px;
  height: 320px;
  top: 42%;
  right: 18%;
  background: rgba(139, 92, 246, .3);
}

/* 布局 */
.login-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 32px 18px;
}

/* 登录卡片 */
.login-card {
  position: relative;
  width: 100%;
  max-width: 388px;
  padding: 32px 28px 26px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .09);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  animation: cardIn .5s var(--ease) both;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* 品牌区 */
.login-brand {
  text-align: center;
  margin-bottom: 24px;
}

.login-brand__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  border-radius: 18px;
  background: var(--brand-grad);
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(255, 89, 48, .45);
}

.login-brand__title {
  margin: 0;
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 2px;
}

.login-brand__sub {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, .5);
  font-size: 12.5px;
  letter-spacing: 1px;
}

/* 提示条 */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 16px;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.6;
}

.alert__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.alert--error {
  background: rgba(255, 59, 48, .16);
  border: 1px solid rgba(255, 99, 90, .35);
  color: #FFC7C2;
}

.alert--error .alert__icon {
  background: #FF3B30;
}

/* 表单 */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field__label {
  color: rgba(255, 255, 255, .68);
  font-size: 12.5px;
  font-weight: 600;
}

.field__box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 13px;
  background: rgba(255, 255, 255, .07);
  transition: border-color .22s, box-shadow .22s, background .22s;
}

.field__box:focus-within {
  border-color: rgba(255, 138, 61, .75);
  background: rgba(255, 255, 255, .11);
  box-shadow: 0 0 0 3px rgba(255, 107, 44, .18);
}

.field__icon {
  flex: none;
  width: 17px;
  height: 17px;
  color: rgba(255, 255, 255, .45);
}

.field__box input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  color: #fff;
}

.field__box input::placeholder {
  color: rgba(255, 255, 255, .32);
}

/* 自动填充时保持深色外观 */
.field__box input:-webkit-autofill {
  -webkit-text-fill-color: #fff;
  transition: background-color 9999s ease-in-out 0s;
}

.field__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, .45);
  cursor: pointer;
  transition: color .2s, background .2s;
}

.field__toggle svg {
  width: 16px;
  height: 16px;
}

.field__toggle:hover,
.field__toggle.is-on {
  color: var(--brand-1);
  background: rgba(255, 255, 255, .1);
}

/* 登录按钮 */
.btn-login {
  margin-top: 6px;
  padding: 13px 20px;
  border: none;
  border-radius: 13px;
  background: var(--brand-grad);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(255, 89, 48, .4);
  transition: transform .18s var(--ease), box-shadow .24s, filter .2s;
}

.btn-login:hover {
  filter: brightness(1.06);
}

.btn-login:active {
  transform: scale(.97);
  box-shadow: 0 6px 16px rgba(255, 89, 48, .34);
}

.btn-login.is-loading {
  opacity: .75;
  pointer-events: none;
}

/* 页脚 */
.login-foot {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .3);
  font-size: 11.5px;
  letter-spacing: .5px;
  text-align: center;
}

@media (max-width: 420px) {
  .login-card {
    padding: 26px 20px 22px;
  }
}
