:root {
    color-scheme: dark;
    --bg: #080b14;
    --panel: #111827;
    --panel2: #151f31;
    --text: #f4f7fb;
    --muted: #9aa8bc;
    --accent: #38bdf8;
    --border: rgba(148,163,184,.16);
}
* { box-sizing: border-box; }
body {
    margin: 0; min-height: 100vh; color: var(--text);
    background: radial-gradient(ellipse at 50% -20%, #16304b 0, var(--bg) 55%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
.topbar {
    height: 76px; padding: 0 max(5vw, 22px); display: flex;
    align-items: center; justify-content: space-between;
    border-bottom: 1px solid var(--border); background: rgba(8,11,20,.82);
}
.brand { display:flex; align-items:center; gap:12px; color:var(--text); font-weight:800; letter-spacing:1px; }
.brand b { color:var(--accent); }
.brand-mark {
    display:grid; place-items:center; width:38px; height:38px; border-radius:12px;
    background:linear-gradient(135deg,#38bdf8,#2563eb); color:#06111d; font-size:22px;
}
nav { display:flex; align-items:center; gap:24px; font-size:14px; }
nav a { color:#cbd5e1; }
.nav-cta { padding:10px 16px; border-radius:9px; background:var(--accent); color:#06111d; font-weight:800; }
.nav-logout { color:#fda4af; }
.container { width:min(1080px, 90%); margin:60px auto; min-height:calc(100vh - 190px); }
.auth-card {
    width:min(460px,100%); margin:30px auto; padding:38px;
    background:rgba(17,24,39,.88); border:1px solid var(--border);
    border-radius:20px; box-shadow:0 24px 80px rgba(0,0,0,.28);
}
.eyebrow { color:var(--accent); font-size:11px; font-weight:800; letter-spacing:2px; }
h1 { margin:12px 0 8px; font-size:32px; letter-spacing:-1px; }
h2 { margin:10px 0; font-size:19px; }
.muted { color:var(--muted); line-height:1.6; }
form { margin-top:26px; }
label { display:block; margin:17px 0 8px; color:#cbd5e1; font-size:13px; font-weight:700; }
input {
    width:100%; padding:13px 14px; color:var(--text); background:#0b1220;
    border:1px solid #29364b; border-radius:9px; outline:none;
}
input:focus { border-color:var(--accent); box-shadow:0 0 0 3px rgba(56,189,248,.12); }
.button { border:0; border-radius:9px; padding:14px 18px; cursor:pointer; font-weight:800; }
.primary { background:linear-gradient(100deg,#38bdf8,#3b82f6); color:#06111d; }
.full { width:100%; margin-top:24px; }
.switch-auth { margin:24px 0 0; text-align:center; color:var(--muted); font-size:14px; }
.alert { padding:13px 15px; margin:16px 0; border-radius:9px; font-size:14px; }
.alert.error { background:rgba(239,68,68,.12); border:1px solid rgba(239,68,68,.3); color:#fecaca; }
.alert.success { background:rgba(34,197,94,.12); border:1px solid rgba(34,197,94,.3); color:#bbf7d0; }
.alert.info { background:rgba(56,189,248,.12); border:1px solid rgba(56,189,248,.3); color:#bae6fd; }
.welcome-panel {
    display:flex; justify-content:space-between; align-items:center; gap:20px;
    padding:30px; border:1px solid var(--border); border-radius:18px;
    background:linear-gradient(120deg,rgba(21,45,68,.9),rgba(17,24,39,.9));
}
.status-pill,.tag {
    padding:8px 11px; border-radius:99px; color:#86efac; background:rgba(34,197,94,.1);
    font-size:10px; font-weight:800; letter-spacing:1px;
}
.dashboard-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; margin-top:20px; }
.panel,.notice-panel {
    padding:24px; border:1px solid var(--border); border-radius:16px; background:rgba(17,24,39,.85);
}
.panel-icon { color:var(--accent); font-size:12px; font-weight:900; letter-spacing:2px; }
.tag { display:inline-block; color:#bae6fd; background:rgba(56,189,248,.1); margin-top:8px; }
.notice-panel { margin-top:18px; }
.notice-panel p { margin-bottom:0; }
.footer {
    display:flex; justify-content:space-between; gap:16px; padding:25px 5vw;
    color:#64748b; border-top:1px solid var(--border); font-size:12px;
}
@media(max-width:650px) {
    .container { margin:32px auto; }
    .auth-card { padding:26px 21px; }
    .dashboard-grid { grid-template-columns:1fr; }
    .welcome-panel { align-items:flex-start; flex-direction:column; }
    nav { gap:13px; }
    .footer { flex-direction:column; }
}
