:root{--bg:#f4f6fa;--panel:#fff;--border:#e2e7ef;--text:#1b2537;--muted:#6b7688;--primary:#2563eb;--primary-dark:#1d4ed8;--danger:#c2413a;--accent:#0d9488}
*{box-sizing:border-box}
html,body{margin:0;height:100%}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei","PingFang SC",sans-serif;background:linear-gradient(135deg,#eef3fb,#f7f9fc);color:var(--text);font-size:13px}
[hidden]{display:none!important}
.auth-wrap{min-height:100%;display:flex;align-items:center;justify-content:center;padding:24px}
.auth-card{width:420px;max-width:100%;background:var(--panel);border:1px solid var(--border);border-radius:16px;box-shadow:0 12px 40px rgba(30,45,80,.1);padding:30px 32px 24px}
.auth-brand{display:flex;align-items:center;gap:12px;margin-bottom:24px}
.auth-mark{width:40px;height:40px;border-radius:11px;background:linear-gradient(135deg,#2563eb,#0d9488);color:#fff;display:flex;align-items:center;justify-content:center;font-size:22px;font-family:serif;font-weight:700}
.auth-brand-text{display:flex;flex-direction:column;line-height:1.3}
.auth-brand-text strong{font-size:16px}
.auth-brand-text span{font-size:11px;color:var(--muted);margin-top:2px}
.auth-card h2{margin:0 0 6px;font-size:18px}
.auth-desc{color:var(--muted);font-size:12px;line-height:1.7;margin:0 0 18px}
.auth-card form{display:flex;flex-direction:column}
.auth-card label{font-size:11.5px;color:var(--muted);margin:0 0 5px}
.auth-card input{width:100%;border:1px solid #cdd6e3;border-radius:8px;padding:9px 11px;font-size:13px;margin-bottom:14px;outline:none;transition:.15s}
.auth-card input:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(37,99,235,.1)}
.btn-primary{border:none;background:var(--primary);color:#fff;border-radius:9px;padding:11px;font-size:13.5px;font-weight:700;cursor:pointer;transition:.16s}
.btn-primary:hover{background:var(--primary-dark)}
.btn-primary:disabled{opacity:.65;cursor:wait}
.auth-switch{margin-top:14px;text-align:center;font-size:12px;color:var(--muted)}
.link{border:none;background:none;color:var(--primary);cursor:pointer;font-size:12px;padding:0 2px}
.link:hover{text-decoration:underline}
.auth-msg{min-height:18px;margin-top:12px;font-size:12px;line-height:1.6;text-align:center}
.auth-msg.err{color:var(--danger)}
.auth-msg.ok{color:var(--accent)}
.auth-foot{margin-top:20px;padding-top:14px;border-top:1px solid var(--border);text-align:center;font-size:11px;color:var(--muted);line-height:1.7}

@media screen and (max-width: 560px) {
  .auth-wrap{padding:16px}
  .auth-card{padding:24px 20px}
  .auth-card label,.auth-desc{font-size:13px}
  .auth-card input,.auth-card .btn-primary{min-height:44px;font-size:16px}
  .auth-switch .link{min-height:44px;font-size:14px}
}
