:root { color-scheme: dark; --bg:#0f172a; --card:#111c31; --border:#334155; --text:#e2e8f0; --muted:#94a3b8; --accent:#22c55e; }
* { box-sizing: border-box; }
[hidden] { display:none !important; }
body { margin:0; min-height:100vh; display:grid; place-items:center; background:radial-gradient(circle at top,#1e293b,var(--bg) 55%); color:var(--text); font:16px system-ui,sans-serif; }
.login-card { width:min(430px,calc(100vw - 32px)); padding:28px; border:1px solid var(--border); border-radius:14px; background:color-mix(in srgb,var(--card) 94%,transparent); box-shadow:0 20px 70px #0008; }
.brand { display:flex; align-items:center; gap:10px; font-weight:700; margin-bottom:28px; }
.login-header { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:28px; }
.login-header .brand { margin-bottom:0; }
.login-header .login-back { display:grid; place-items:center; width:40px; height:40px; }
.login-back:hover { color:var(--text); }
.login-back:focus-visible { outline:2px solid #93c5fd; outline-offset:-2px; }
.brand-mark { display:grid; place-items:center; width:34px;height:34px;border-radius:8px;background:var(--accent);color:#06140d; }
h1 { margin:0 0 8px; font-size:28px; }
h2 { margin:0; font-size:22px; }
.subtle { color:var(--muted); line-height:1.5; }
form { display:grid; gap:15px; margin-top:24px; }
label { display:grid; gap:7px; color:#cbd5e1; font-weight:600; }
input:not([type=checkbox]),button { width:100%; border:1px solid var(--border); border-radius:8px; padding:12px; font:inherit; }
input { background:#0b1220; color:var(--text); }
button { background:var(--accent); color:#06140d; border-color:var(--accent); cursor:pointer; font-weight:700; }
button.secondary { background:transparent; color:var(--text); }
button:disabled { cursor:wait; opacity:.65; }
.password-group { display:grid; gap:7px; }
.password-field { position:relative; }
.password-field input { padding-right:92px; }
.password-actions { position:absolute; right:4px; top:50%; transform:translateY(-50%); display:flex; }
.password-action { display:grid; place-items:center; width:40px; height:40px; padding:9px; border:0; background:transparent; color:var(--muted); }
.password-action:hover { color:var(--text); }
.password-action:focus-visible { outline:2px solid #93c5fd; outline-offset:-2px; }
.password-action svg { width:20px; height:20px; }
.password-action [hidden] { display:none; }
.check { display:flex; align-items:center; gap:8px; font-weight:400; }
.notice { margin-top:16px; color:#fecaca; padding:10px; border-radius:8px; background:#7f1d1d33; }
a { color:#93c5fd; }
.onboarding-card { width:min(720px,calc(100vw - 32px)); }
.onboarding-account { display:grid; grid-template-columns:2fr 1.5fr 1fr 1.5fr auto; gap:10px; align-items:end; margin-bottom:12px; }
@media (max-width:720px) { .onboarding-account { grid-template-columns:1fr; } }
dialog { width:min(430px,calc(100vw - 32px)); padding:28px; border:1px solid var(--border); border-radius:14px; background:var(--card); color:var(--text); box-shadow:0 20px 70px #000b; }
dialog::backdrop { background:#020617b8; backdrop-filter:blur(2px); }
.modal-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.icon-button { width:auto; padding:2px 8px; border-color:transparent; background:transparent; color:var(--muted); font-size:28px; line-height:1; }
