:root { color-scheme: light; --ink:#272329; --muted:#766d77; --line:#e3dfe2; --brand:#613d6b; }
* { box-sizing:border-box; }
body { margin:0; min-height:100dvh; padding:48px 20px; display:grid; place-items:center; color:var(--ink); background:#f6f5f2; font:14px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif; }
.auth-card { width:100%; max-width:410px; padding:34px; border:1px solid var(--line); background:#fffefd; border-radius:8px; }
.brand { display:flex; align-items:center; gap:10px; margin-bottom:32px; color:var(--brand); text-decoration:none; font-size:20px; font-weight:650; }
h1 { font-size:22px; line-height:1.4; margin:0 0 8px; font-weight:600; }
.subtitle { color:var(--muted); margin:0 0 25px; }
label { display:block; margin:16px 0 7px; font-weight:500; }
input { width:100%; min-height:44px; padding:10px 12px; border:1px solid #cfc8d0; border-radius:5px; background:#fff; color:var(--ink); font:inherit; }
input:focus-visible,button:focus-visible,a:focus-visible { outline:2px solid #896193; outline-offset:3px; }
input[readonly] { background:#f5f3f4; color:var(--muted); }
button { width:100%; min-height:44px; margin-top:24px; padding:10px 14px; border:0; border-radius:5px; color:#fff; background:var(--brand); font:inherit; font-weight:550; cursor:pointer; }
button:hover { background:#513059; } button:disabled { opacity:.65; cursor:wait; }
.error { color:#a23a38; margin:16px 0 0; }
#auth-status { color:var(--muted); margin:12px 0 0; }
.back { display:inline-block; margin-top:20px; color:var(--brand); }
[hidden] { display:none !important; }
@media(max-width:480px) { body { padding:20px 16px; } .auth-card { padding:28px 24px; } }
