/* ==========================================================
   登录 / 注册 — 依据目标站 login-modern.css 真实令牌 1:1 还原
   ========================================================== */
:root {
  --login-ink: #172033;
  --login-muted: #738096;
  --login-line: #dce3ec;
  --login-soft: #f2f5f9;
  --login-blue: #1769e0;
  --login-blue-dark: #0f56bd;
}

body.auth-page { background: #fff; color: var(--login-ink); }

.auth-shell {
  display: grid;
  grid-template-columns: minmax(420px, 44%) minmax(0, 1fr);
  min-height: 100vh;
}

/* 左侧视觉区 */
.login-visual {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 100vh; overflow: hidden; padding: 52px clamp(48px, 6vw, 92px);
  background: #153a69 url("../img/background.png") center/cover;
  background-blend-mode: multiply; color: #fff;
}
.login-visual::after {
  content: ""; position: absolute; right: -90px; bottom: 10%;
  width: 260px; height: 260px; border: 42px solid rgba(255, 255, 255, .08); border-radius: 50%;
}
.visual-brand {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 12px;
  color: #fff; font-size: 22px; font-weight: 700;
}
.visual-brand-mark {
  display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center;
  border-radius: 8px; background: var(--gold, #ffd166); color: #17355d; font-size: 19px;
}
.visual-brand-mark svg { width: 21px; height: 21px; fill: #17355d; }
.visual-copy { position: relative; z-index: 1; max-width: 520px; }
.visual-copy h1 { margin: 0 0 20px; font-size: clamp(38px, 4vw, 58px); font-weight: 700; line-height: 1.16; color: #fff; }
.visual-copy p { max-width: 430px; margin: 0; color: rgba(255, 255, 255, .76); font-size: 17px; line-height: 1.8; }
.visual-trust { list-style: none; margin: 26px 0 0; padding: 0; }
.visual-trust li { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: rgba(255, 255, 255, .86); font-size: 14.5px; }
.visual-trust li svg { width: 17px; height: 17px; flex: none; fill: var(--gold, #ffd166); }
.visual-foot { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; color: rgba(255, 255, 255, .68); font-size: 13px; }
.visual-foot::before { content: ""; width: 34px; height: 3px; background: var(--gold, #ffd166); }
.mobile-visual-copy { display: none; }

/* 右侧表单区 */
.auth-main { position: relative; display: flex; align-items: center; justify-content: center; padding: 84px 48px 60px; background: #fff; }
.auth-form-box { width: 100%; max-width: 400px; }
.auth-home {
  position: fixed; z-index: 5; top: 30px; right: 38px;
  display: inline-flex; align-items: center; gap: 7px; height: 36px;
  color: #68758a; font-size: 14px;
}
.auth-home:hover { color: var(--login-blue); }
.auth-home svg { width: 15px; height: 15px; fill: currentColor; }

.member-form-head { margin: 0 0 28px; }
.login-eyebrow { display: block; margin-bottom: 8px; color: var(--login-blue); font-size: 13px; font-weight: 600; }
.member-form-head h2 { margin: 0 0 10px; font-size: 30px; font-weight: 700; line-height: 1.25; color: var(--login-ink); }
.member-form-head p { margin: 0; color: var(--login-muted); font-size: 14px; }

.auth-error {
  display: none; margin-bottom: 16px; padding: 10px 14px; border-radius: 8px;
  background: rgba(255, 96, 76, .08); border: 1px solid rgba(255, 96, 76, .25);
  color: #d9392a; font-size: 13px;
}
.auth-error.show { display: block; }

/* 登录方式 tab */
.login-tabs {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px;
  margin: 0 0 22px; padding: 4px; border-radius: 7px; background: var(--login-soft);
}
.login-tab {
  width: 100%; min-height: 40px; padding: 0 8px; border: 0; border-radius: 5px;
  background: transparent; color: #67748a; font-size: 14px; transition: background .15s, color .15s;
}
.login-tab.active { background: #fff; color: var(--login-ink); font-weight: 600; box-shadow: 0 2px 8px rgba(35, 55, 80, .08); }

.auth-field { position: relative; margin-bottom: 14px; }
.auth-field .ic {
  position: absolute; z-index: 2; top: 0; left: 16px; width: 18px; height: 50px;
  display: flex; align-items: center; color: #8995a8; pointer-events: none;
}
.auth-field .ic svg { width: 17px; height: 17px; fill: currentColor; }
.auth-input {
  width: 100%; height: 50px; padding: 0 44px; border: 1px solid var(--login-line);
  border-radius: 6px; outline: 0; background: #fff; color: var(--login-ink); font-size: 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-input::placeholder { color: #a0a9b8; }
.auth-input:focus { border-color: var(--login-blue); box-shadow: 0 0 0 3px rgba(23, 105, 224, .1); }
.auth-input.is-error { border-color: #ff604c; box-shadow: 0 0 0 3px rgba(255, 96, 76, .1); }
.password-toggle {
  position: absolute; z-index: 3; top: 0; right: 0; display: grid; place-items: center;
  width: 46px; height: 50px; padding: 0; border: 0; background: transparent; color: #8995a8;
}
.password-toggle:hover { color: var(--login-blue); }
.password-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.auth-field.has-toggle .auth-input { padding-right: 50px; }

.sms-row { display: grid; grid-template-columns: minmax(0, 1fr) 122px; gap: 10px; }
.send-sms-code {
  height: 50px; min-width: 0; padding: 0 10px; border: 1px solid #cdd8e8; border-radius: 6px;
  background: #fff; color: var(--login-blue); font-size: 14px; font-weight: 500;
  transition: border-color .15s, background .15s;
}
.send-sms-code:hover { border-color: var(--login-blue); background: #f7faff; }
.send-sms-code:disabled { color: #98a2b2; border-color: #e3e9f2; background: #f7f9fc; cursor: not-allowed; }

.auth-remember { display: flex; min-height: 24px; align-items: center; justify-content: space-between; margin: 2px 0 18px; color: #68758a; }
.checkbox { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #68758a; cursor: pointer; }
.checkbox input { width: 15px; height: 15px; accent-color: var(--login-blue); }
.auth-forgot { color: #68758a; font-size: 13px; }
.auth-forgot:hover, .auth-switch a:hover { color: var(--login-blue); }

.auth-submit {
  width: 100%; height: 50px; border: 1px solid var(--login-blue); border-radius: 6px;
  background: var(--login-blue); color: #fff; font-size: 15px; font-weight: 600;
  box-shadow: 0 9px 20px rgba(23, 105, 224, .18); transition: background .18s, border-color .18s;
}
.auth-submit:hover { background: var(--login-blue-dark); border-color: var(--login-blue-dark); }
.auth-submit:disabled { opacity: .65; cursor: not-allowed; }

.auth-switch { margin: 18px 0 0; color: #7b8799; font-size: 14px; text-align: center; }
.auth-switch a { color: var(--login-blue); font-weight: 500; }

.auth-social { margin-top: 28px; }
.social-divider { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; color: #98a2b2; font-size: 12px; white-space: nowrap; }
.social-divider::before, .social-divider::after { content: ""; height: 1px; flex: 1; background: #e7ebf1; }
.social-actions { display: flex; align-items: center; justify-content: center; gap: 28px; }
.social-link {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid #e1e6ed; border-radius: 50%; background: #fff;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.social-link:hover { border-color: #cbd4df; box-shadow: 0 6px 16px rgba(30, 45, 65, .09); transform: translateY(-1px); }
.social-link svg { width: 26px; height: 26px; }

.auth-mobile-title { display: none; }
.auth-terms { margin-top: 16px; color: #98a2b2; font-size: 12.5px; text-align: center; }
.auth-terms a { color: var(--login-blue); }

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .login-visual {
    min-height: 218px; padding: 26px 24px 22px; justify-content: flex-start; gap: 16px;
    background: #153a69 url("../img/background.png") center/cover;
  }
  .login-visual::after { right: -70px; top: -40px; bottom: auto; width: 180px; height: 180px; border-width: 28px; }
  .visual-brand { font-size: 16px; gap: 10px; }
  .visual-brand-mark { width: 32px; height: 32px; border-radius: 7px; }
  .visual-brand-mark svg { width: 16px; height: 16px; }
  .visual-copy { display: none; }
  .mobile-visual-copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
  .mobile-visual-copy strong { font-size: 24px; font-weight: 700; }
  .mobile-visual-copy span { color: rgba(255, 255, 255, .7); font-size: 13px; }
  .visual-foot { display: none; }
  .auth-main { padding: 28px 24px 48px; align-items: flex-start; }
  .auth-form-box { max-width: 440px; }
  .member-form-head { display: none; }
  .auth-mobile-title {
    position: relative; display: block; width: max-content; min-height: 48px;
    margin: 0 auto 22px; padding: 0 10px; color: #ff604c; font-size: 20px;
    font-weight: 700; line-height: 48px; text-align: center;
  }
  .auth-mobile-title::after {
    content: ""; position: absolute; bottom: 0; left: 50%; width: 26px; height: 5px;
    border-radius: 3px; background: #ff604c; transform: translateX(-50%);
  }
  .auth-home { position: absolute; top: 16px; right: 16px; color: #fff; }
  .auth-home:hover { color: #fff; opacity: .85; }
}
