:root { color-scheme: dark; --bg: #05070b; --panel: #0c131d; --line: #233146; --text: #eef3fb; --muted: #8fa0b7; --green: #20e29a; --blue: #62a8ff; --red: #ff7a88; --yellow: #f7c948; }
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; background: radial-gradient(circle at 18% 0, #13243a 0, transparent 34rem), var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
body { min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom)); }
.auth-shell { width: min(100%, 440px); }
.auth-shell.wide { width: min(100%, 680px); }
.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.brand img { width: 58px; height: 58px; border: 1px solid var(--line); border-radius: 16px; }
.brand span { display: block; color: var(--muted); font-size: 13px; font-weight: 800; }
h1 { margin: 3px 0 0; font-size: clamp(28px, 8vw, 36px); line-height: 1.05; }
h2 { margin: 10px 0 6px; font-size: 20px; }
.auth-card { margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(12, 19, 29, .94); padding: 17px; box-shadow: 0 18px 46px rgba(0, 0, 0, .25); }
.auth-card p, footer { color: var(--muted); font-size: 13px; line-height: 1.6; }
label { display: block; margin-top: 14px; color: #a8b6c9; font-size: 13px; font-weight: 900; }
input { width: 100%; height: 52px; margin-top: 7px; border: 1px solid var(--line); border-radius: 10px; background: #09111c; color: var(--text); padding: 0 12px; font: inherit; outline: none; }
input:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(98, 168, 255, .18); }
button, .back-link { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; border: 1px solid rgba(32, 226, 154, .56); border-radius: 10px; background: rgba(32, 226, 154, .13); color: var(--green); padding: 0 16px; font: inherit; font-size: 16px; font-weight: 950; text-decoration: none; cursor: pointer; }
.auth-card > button, form button { width: 100%; margin-top: 14px; }
button:disabled { opacity: .5; cursor: wait; }
button.secondary, .back-link { border-color: var(--line); background: #111b29; color: #c8d5e6; }
button.compact, .back-link { min-height: 38px; padding: 0 11px; font-size: 12px; }
.security-badge { display: inline-flex; border: 1px solid rgba(32, 226, 154, .4); border-radius: 999px; background: rgba(32, 226, 154, .08); padding: 5px 9px; color: var(--green); font-size: 11px; font-weight: 900; }
.security-badge.warning { border-color: rgba(247, 201, 72, .45); background: rgba(247, 201, 72, .08); color: var(--yellow); }
.message { min-height: 24px; margin: 13px 0 0; color: var(--red); font-size: 13px; font-weight: 850; }
.message.ok { color: var(--green); }
footer { margin-top: 15px; text-align: center; }
code { color: #c6ddff; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.security-summary { display: flex; align-items: baseline; gap: 8px; margin-top: 18px; }
.security-summary strong { color: var(--green); font-size: 34px; }
.security-summary span { color: var(--muted); font-weight: 800; }
.session-list { display: grid; gap: 9px; margin-top: 14px; }
.session-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; border: 1px solid var(--line); border-radius: 10px; background: #09111c; padding: 12px; }
.session-row strong, .session-row span { display: block; }
.session-row span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.session-row button { min-height: 38px; border-color: rgba(255, 122, 136, .48); background: rgba(255, 122, 136, .1); color: #ffb0ba; padding: 0 10px; font-size: 12px; }
@media (max-width: 520px) { .toolbar { align-items: stretch; flex-direction: column; } .toolbar > * { width: 100%; } .session-row { grid-template-columns: 1fr; } }
