:root {
  --bg: #f3f5fa; --card: #fff; --text: #1b2236; --muted: #667089; --line: #d9deea;
  --accent: #2f5bea; --accent-h: #2449c4; --err-bg: #fdecec; --err: #b3261e; --ok-bg: #e8f3ff; --ok: #1a4fa3;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1424; --card: #171d31; --text: #e8ecf8; --muted: #98a2bd; --line: #2a3350;
    --accent: #5b82ff; --accent-h: #7b9aff; --err-bg: #3a1c20; --err: #ff9c94; --ok-bg: #16294a; --ok: #9cc2ff;
  }
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.card {
  width: 100%; max-width: 380px; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; padding: 32px 28px 28px;
  box-shadow: 0 10px 30px rgba(20, 30, 70, .08);
}
.brand { text-align: center; margin-bottom: 22px; }
.brand h1 { font-size: 20px; margin: 10px 0 2px; font-weight: 650; }
.sub { margin: 0; color: var(--muted); font-size: 13px; }
form { display: flex; flex-direction: column; gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
input[type=text], input[type=password] {
  width: 100%; height: 42px; padding: 0 12px; font: inherit; font-size: 15px; color: var(--text);
  background: transparent; border: 1px solid var(--line); border-radius: 8px; outline: none;
}
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91, 130, 255, .25); }
.pw { position: relative; display: block; }
.pw input { padding-right: 56px; }
.ghost {
  position: absolute; right: 4px; top: 4px; height: 34px; padding: 0 10px; border: 0; background: none;
  color: var(--accent); font: inherit; font-size: 13px; cursor: pointer; border-radius: 6px;
}
.otp { text-align: center; letter-spacing: .5em; font-size: 22px !important; font-variant-numeric: tabular-nums; }
.check { flex-direction: row; align-items: center; gap: 8px; }
.btn {
  height: 44px; border: 0; border-radius: 8px; background: var(--accent); color: #fff;
  font: inherit; font-weight: 600; cursor: pointer; width: 100%;
}
.btn:hover { background: var(--accent-h); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn.secondary { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.secondary:hover { background: rgba(128, 128, 128, .12); }
.btn.link { background: none; color: var(--muted); font-weight: 400; height: 32px; }
.btn.link:hover { background: none; color: var(--text); }
.error, .notice { border-radius: 8px; padding: 10px 12px; font-size: 13.5px; margin-bottom: 14px; }
.error { background: var(--err-bg); color: var(--err); }
.notice { background: var(--ok-bg); color: var(--ok); }
.hint, .who { margin: 0 0 4px; color: var(--muted); font-size: 13.5px; }
.who { text-align: center; margin-bottom: 14px; }
.who strong { color: var(--text); }
[hidden] { display: none !important; }
.cap { display: flex; gap: 8px; align-items: center; }
.cap img { cursor: pointer; border-radius: 6px; flex: none; }
a.btn { display: flex; align-items: center; justify-content: center; text-decoration: none; margin-bottom: 8px; }
