:root { --auth-bg:#e8e2db; --auth-paper:#f6f1ea; --auth-text:#111; --auth-muted:#7c756d; --auth-line:#d9d0c7; --auth-red:#b10000; }
* { box-sizing:border-box; }
body.auth-page { min-height:100vh; margin:0; padding:28px; color:var(--auth-text); font-family:"PingFang SC","Microsoft YaHei",sans-serif; background:linear-gradient(180deg,#ece8e1,var(--auth-bg)); }
.auth-shell { width:min(520px,100%); margin:0 auto; }
.auth-back { display:inline-block; margin:8px 0 22px; color:var(--auth-muted); font-size:14px; }
.auth-panel { padding:clamp(28px,7vw,58px); border:1px solid rgba(255,255,255,.8); border-radius:30px; background:var(--auth-paper); box-shadow:0 24px 56px rgba(41,15,11,.16); }
.auth-ballball { position:relative; display:grid; width:min(230px,68vw); aspect-ratio:1; place-items:center; margin:-10px auto 22px; overflow:visible; border-radius:24px; }
.auth-ballball img { display:block; width:100%; height:100%; object-fit:contain; transition:opacity .16s ease, transform .16s ease; }
.auth-ballball img.is-switching { opacity:.62; transform:scale(.985); }
.auth-ballball-private-bubble { position:absolute; right:-18px; top:18px; max-width:132px; padding:9px 11px; border-radius:999px; color:#4b3a34; background:rgba(255,255,255,.9); box-shadow:0 10px 24px rgba(84,48,36,.12); font-size:12px; font-weight:900; line-height:1.25; text-align:center; }
.auth-ballball-private-bubble::after { content:""; position:absolute; left:18px; bottom:-5px; width:12px; height:12px; border-radius:3px; background:rgba(255,255,255,.9); transform:rotate(45deg); }
.auth-login-title { margin:0 0 24px; font-family:Georgia,"Songti SC",serif; font-size:clamp(34px,8vw,52px); line-height:1; text-align:center; }
.auth-kicker { margin:0 0 22px; color:var(--auth-red); font-size:12px; font-weight:900; letter-spacing:.18em; }
.auth-panel h1 { margin:0; font-family:Georgia,"Songti SC",serif; font-size:clamp(40px,10vw,68px); line-height:1; }
.auth-intro { margin:16px 0 30px; color:var(--auth-muted); line-height:1.7; }
.auth-testing-notice { margin:-12px 0 28px; padding:11px 14px; border:1px solid rgba(177,0,0,.25); border-radius:8px; color:var(--auth-red); background:#fff4f1; font-size:13px; font-weight:800; text-align:center; }
.auth-security-note { margin:-18px 0 28px; color:var(--auth-red); font-size:12px; line-height:1.6; }
.auth-panel form { display:grid; gap:18px; }
.auth-panel label { display:grid; gap:8px; font-size:13px; font-weight:800; }
.auth-panel input { width:100%; min-height:48px; padding:0 14px; border:1px solid var(--auth-line); border-radius:8px; color:var(--auth-text); background:#fffaf4; font:inherit; font-weight:400; outline:none; }
.auth-panel input:focus { border-color:var(--auth-red); box-shadow:0 0 0 3px rgba(177,0,0,.1); }
.password-field { position:relative; display:block; width:100%; min-width:0; }
.password-field input { display:block; width:100%; min-width:0; padding-right:48px; }
.password-toggle { position:absolute; top:50%; right:8px; display:grid; width:34px; height:34px; place-items:center; padding:0; border:0; color:var(--auth-muted); background:transparent; font-size:16px; cursor:pointer; transform:translateY(-50%); }
.auth-code-box { display:grid; gap:12px; margin-top:4px; padding-top:18px; border-top:1px solid var(--auth-line); }
.auth-code-note { margin:0; color:var(--auth-muted); font-size:12px; line-height:1.6; }
.auth-code-row { display:flex; align-items:end; gap:10px; }
.auth-code-row label { flex:1 1 auto; min-width:0; }
.auth-code-row .auth-verify { flex:0 0 108px; }
.auth-code-box[hidden] { display:none; }
.auth-verify { min-height:44px; }
.auth-submit { min-height:50px; border:0; border-radius:8px; color:#fff; background:var(--auth-red); font:inherit; font-weight:900; cursor:pointer; }
.auth-submit:disabled { cursor:not-allowed; opacity:.55; }
.auth-submit-link { display:grid; place-items:center; text-decoration:none; }
.auth-switch { margin:24px 0 0; color:var(--auth-muted); font-size:14px; text-align:center; }
.auth-switch a { color:var(--auth-red); font-weight:900; }
.auth-message { min-height:20px; margin:0; color:#4d6d4d; font-size:13px; line-height:1.5; }
.auth-message.is-error { color:var(--auth-red); }
.auth-callback-panel { margin-top:15vh; text-align:center; }
@media (max-width:480px) {
    body.auth-page { padding:14px; }
    .auth-panel { padding:22px 20px 28px; border-radius:22px; }
    .auth-ballball { width:min(158px,48vw); margin:-4px auto 18px; }
    .auth-ballball-private-bubble { right:-12px; top:8px; max-width:118px; padding:8px 10px; font-size:11px; }
    .auth-login-title { margin-bottom:20px; font-size:38px; }
    .auth-panel h1 { margin-bottom:10px; font-size:38px; line-height:1.08; }
    .auth-security-note { margin:0 0 24px; font-size:12px; line-height:1.65; }
    .auth-code-row { align-items:stretch; gap:8px; }
    .auth-code-row .auth-verify { flex-basis:96px; padding:0 8px; font-size:13px; }
}
