/* 登录 / 注册 */

body.auth { background: #fff; }

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

/* 左侧品牌区 */
.auth-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px 48px;
  overflow: hidden;
  background: linear-gradient(155deg, #1e1b4b 0%, #312e81 42%, #4c1d95 100%);
  color: #fff;
}
.auth-aside .logo { display: inline-flex; align-items: center; gap: 9px; color: #fff; }
.auth-aside .logo-mark {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.auth-aside .logo-mark svg { width: 18px; height: 18px; }
.auth-aside .logo-text { font-size: 16.5px; font-weight: 700; letter-spacing: 0.02em; }

.aside-copy { position: relative; margin-top: auto; margin-bottom: auto; padding: 60px 0; max-width: 440px; }
.aside-copy h1 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.26; letter-spacing: -0.02em; font-weight: 700; }
.aside-copy p { margin-top: 18px; font-size: 14px; line-height: 1.85; color: rgba(255, 255, 255, 0.7); max-width: 380px; }
.aside-list { margin: 30px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 13px; }
.aside-list li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255, 255, 255, 0.82); }
.aside-list i {
  width: 17px; height: 17px; flex: none; border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
}
.aside-list i::after {
  content: ""; position: absolute; left: 5px; top: 4px;
  width: 7px; height: 4px;
  border-left: 1.5px solid #a5f3fc; border-bottom: 1.5px solid #a5f3fc;
  transform: rotate(-45deg);
}

.aside-quote {
  position: relative;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 420px;
}
.aside-quote p { font-size: 12.5px; line-height: 1.8; color: rgba(255, 255, 255, 0.82); }
.aside-quote span { display: block; margin-top: 8px; font-size: 11px; color: rgba(255, 255, 255, 0.45); }

.aside-glow {
  position: absolute; right: -160px; top: -120px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.45), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}

/* 右侧表单 */
.auth-main { display: grid; place-items: center; padding: 40px 24px; background: #fff; }
.auth-card { width: min(372px, 100%); }
.auth-head h2 { font-size: 24px; letter-spacing: -0.02em; }
.auth-head p { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.6; }

.auth-tabs {
  display: flex; gap: 4px;
  margin-top: 22px; padding: 4px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px;
}
.auth-tab {
  flex: 1; height: 34px;
  border: none; border-radius: 7px;
  background: transparent; color: var(--muted);
  font-size: 13px; font-weight: 550;
}
.auth-tab.is-on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

#loginForm { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.auth-tabs + #loginForm { margin-top: 20px; }

.auth-switch { font-size: 12.5px; color: var(--muted); text-align: center; }
.link-btn {
  padding: 0; border: none; background: none;
  color: var(--accent); font-size: inherit; font-weight: 550;
}
.link-btn:hover { color: var(--accent-hover); }

.input-group { position: relative; display: flex; align-items: center; }
.input-group .prefix {
  position: absolute; left: 12px; font-size: 13.5px; color: var(--ink-3);
  padding-right: 10px; border-right: 1px solid var(--line);
  pointer-events: none;
}
.input-group .prefix + .input { padding-left: 58px; }
.input-group .input { height: 44px; }
.code-btn {
  position: absolute; right: 5px;
  height: 34px; padding: 0 12px;
  border: none; border-radius: 7px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 12.5px; font-weight: 550;
  transition: background 0.15s;
}
.code-btn:hover { background: #e3e6ff; }
.code-btn:disabled { background: #f1f3fa; color: var(--faint); cursor: not-allowed; }
#code { padding-right: 112px; letter-spacing: 0.14em; }

.dev-tip {
  padding: 10px 12px;
  border-radius: 9px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 12px;
  line-height: 1.65;
}
.dev-tip b { font-family: var(--mono); font-size: 14px; letter-spacing: 0.1em; }

.form-error {
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--red-soft);
  color: #b91c1c;
  font-size: 12.5px;
  line-height: 1.6;
}

#submit { margin-top: 4px; }
#submit.is-loading { opacity: 0.75; }

.agree { font-size: 11.5px; line-height: 1.7; color: var(--faint); text-align: center; }

.auth-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 30px; padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px; color: var(--muted);
}
.auth-foot a:hover { color: var(--accent); }
#bonusHint { color: var(--accent); font-weight: 550; }

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-main { min-height: 100vh; }
}
