:root {
    color-scheme: dark;
    --helian-midnight: #00010f;
    --helian-core: #020928;
    --helian-deep-blue: #021b60;
    --helian-sapphire: #052c8f;
    --helian-cobalt: #053ebc;
    --helian-electric: #0a5ae2;
    --helian-cyan: #18a1f4;
    --helian-ice: #e4f3fc;
    --helian-white: #ffffff;
    --helian-font-display: "Space Grotesk", "Nimbus Sans", Arial, sans-serif;
    --helian-font-body: Inter, "Nimbus Sans", Arial, sans-serif;
    --helian-gradient-primary: linear-gradient(135deg, #021b60 0%, #053ebc 48%, #18a1f4 100%);
    --bg: var(--helian-midnight);
    --panel: #06142a;
    --panel-2: #0a1d38;
    --text: var(--helian-ice);
    --muted: #9fb8d1;
    --accent: var(--helian-cyan);
    --line: rgba(228, 243, 252, .12);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; font-family: var(--helian-font-body); background: radial-gradient(circle at 88% 8%, rgba(5, 62, 188, .28) 0, rgba(2, 27, 96, .18) 24%, var(--bg) 56%); color: var(--text); }
button, input { font: inherit; }
button { cursor: pointer; }
.topbar { height: 80px; display: flex; align-items: center; justify-content: space-between; padding: 0 5vw; border-bottom: 1px solid var(--line); background: rgba(0, 1, 15, .9); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 13px; color: var(--text); text-decoration: none; }
.brand-logo { display: block; width: 190px; height: auto; }
.brand-divider { width: 1px; height: 28px; background: rgba(228, 243, 252, .22); }
.brand-product { color: var(--helian-ice); font-size: 15px; font-weight: 700; letter-spacing: .035em; }
.environment { color: var(--muted); font-size: 13px; }
.shell { width: min(1180px, 90vw); margin: 0 auto; padding: 72px 0; }
.hero { display: grid; grid-template-columns: 1.5fr .7fr; gap: 36px; align-items: end; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 800; }
h1 { max-width: 780px; margin: 12px 0 18px; color: var(--helian-white); font-family: var(--helian-font-display); font-size: clamp(38px, 5vw, 68px); font-weight: 600; line-height: 1.02; letter-spacing: -.045em; }
.lead { max-width: 750px; color: var(--muted); font-size: 19px; line-height: 1.65; }
.status-card, article, .notice, .auth-card, .auth-rule { border: 1px solid var(--line); background: linear-gradient(145deg, rgba(10, 29, 56, .92), rgba(2, 9, 40, .9)); box-shadow: 0 24px 70px rgba(0, 0, 0, .26); }
.status-card { display: flex; gap: 14px; padding: 22px; border-radius: 20px; }
.status-card p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.status-dot { flex: 0 0 auto; width: 11px; height: 11px; margin-top: 5px; border-radius: 50%; box-shadow: 0 0 18px currentColor; }
.status-dot.ready { color: #4ce0a1; background: currentColor; }
.status-dot.waiting { color: #ffc45f; background: currentColor; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 56px; }
article { min-height: 220px; padding: 26px; border-radius: 22px; }
article span { color: var(--accent); font-size: 12px; font-weight: 800; }
article h2 { margin: 30px 0 12px; color: var(--helian-white); font-family: var(--helian-font-display); font-size: 20px; }
article p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 14px; }
.notice { margin-top: 18px; padding: 20px 24px; border-radius: 18px; color: var(--muted); }
.notice strong { color: var(--helian-white); }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(360px, 460px); gap: 72px; align-items: center; min-height: calc(100vh - 224px); }
.auth-intro h1 { max-width: 720px; font-size: clamp(42px, 5vw, 66px); }
.auth-rule { display: grid; gap: 8px; max-width: 690px; margin-top: 30px; padding: 20px 22px; border-radius: 18px; }
.auth-rule strong { color: var(--helian-white); }
.auth-rule span { color: var(--muted); line-height: 1.55; }
.auth-card { min-height: 510px; padding: 34px; border-radius: 26px; }
.auth-card-heading { margin-bottom: 26px; }
.auth-card-heading h2 { margin: 7px 0 8px; color: var(--helian-white); font-family: var(--helian-font-display); font-size: 30px; }
.auth-card-heading p { margin: 0; color: var(--muted); line-height: 1.5; }
.auth-kicker { color: var(--accent); text-transform: uppercase; letter-spacing: .13em; font-size: 11px; font-weight: 800; }
.auth-form { display: grid; gap: 10px; }
.auth-form label { margin-top: 5px; color: var(--helian-ice); font-size: 13px; font-weight: 700; }
.auth-form input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid rgba(228, 243, 252, .18); border-radius: 12px; outline: none; background: rgba(0, 1, 15, .55); color: var(--helian-white); transition: border-color .16s ease, box-shadow .16s ease; }
.auth-form input:focus { border-color: var(--helian-cyan); box-shadow: 0 0 0 3px rgba(24, 161, 244, .12); }
.auth-button { width: 100%; min-height: 48px; border: 1px solid transparent; border-radius: 12px; font-weight: 800; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.auth-button:hover { transform: translateY(-1px); }
.auth-button-primary { margin-top: 10px; background: var(--helian-gradient-primary); color: var(--helian-white); }
.auth-button-secondary { border-color: rgba(228, 243, 252, .18); background: rgba(228, 243, 252, .06); color: var(--helian-white); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--muted); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.auth-state { display: flex; gap: 14px; align-items: flex-start; }
.auth-state p { color: var(--muted); line-height: 1.55; }
.auth-message { min-height: 22px; margin: 20px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.auth-message-error { color: #ff9f9f; }
.auth-panel-hidden { display: none; }
.auth-link-button { margin-top: 18px; padding: 0; border: 0; background: transparent; color: var(--helian-cyan); font-weight: 700; }
.mfa-qr-frame { display: grid; place-items: center; width: min(260px, 100%); margin: 0 auto 16px; padding: 16px; border-radius: 18px; background: #ffffff; }
.mfa-qr-frame img { display: block; width: 100%; height: auto; }
.mfa-secret-label { margin: 0 0 6px; color: var(--muted); font-size: 12px; }
.mfa-secret { display: block; overflow-wrap: anywhere; margin-bottom: 18px; padding: 12px; border-radius: 10px; background: rgba(0, 1, 15, .55); color: var(--helian-ice); }
.admin-session-hero { display: grid; grid-template-columns: 1.4fr .7fr; gap: 40px; align-items: end; }
.admin-preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 54px; }
.logout-form { margin-top: 28px; }
@media (max-width: 900px) { .hero, .grid, .admin-session-hero, .admin-preview-grid { grid-template-columns: 1fr 1fr; } .auth-layout { grid-template-columns: 1fr; gap: 38px; } .auth-card { min-height: auto; } .status-card { align-self: stretch; } }
@media (max-width: 620px) { .topbar { height: 72px; padding-inline: 20px; } .brand { gap: 9px; } .brand-logo { width: 180px; } .brand-divider { height: 24px; } .brand-product { font-size: 13px; } .shell { padding-top: 42px; } .hero, .grid, .admin-session-hero, .admin-preview-grid { grid-template-columns: 1fr; } .auth-layout { display: block; min-height: 0; } .auth-intro { margin-bottom: 34px; } .auth-intro h1 { font-size: 40px; } .auth-card { padding: 26px 22px; } .environment { display: none; } h1 { font-size: 40px; } }
