:root {
    color-scheme: dark;
    --paper: #17211c;
    --surface: #243129;
    --ink: #f6f1e7;
    --muted: #c1c9bd;
    --line: #506055;
    --accent: #e69478;
    --accent-hover: #f0aa90;
    --accent-text: #221a15;
    --error-surface: #422a25;
}
:root[data-theme="light"] {
    color-scheme: light;
    --paper: #f5f2e9;
    --surface: #fcfaf4;
    --ink: #242820;
    --muted: #5e6359;
    --line: #d1cbbd;
    --accent: #a9442b;
    --accent-hover: #82311d;
    --accent-text: #fffaf4;
    --error-surface: #f8e9e1;
}
*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; font-family: "Aptos", "Segoe UI", system-ui, sans-serif; }
body { min-height: 100vh; margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.login-shell { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(100%, 480px); padding: 48px; background: var(--surface); border: 1px solid var(--line); }
.login-card__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.login-card__edition { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.login-theme-toggle { min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--ink); cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; }
.login-theme-toggle:hover { background: var(--paper); }
.login-theme-toggle:active { transform: translateY(1px); }
.login-card h1 { margin: 48px 0 16px; font: 400 clamp(40px, 5vw, 56px)/1.05 Georgia, "Times New Roman", serif; letter-spacing: -.05em; text-wrap: balance; }
.login-card > p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.discord-login-btn { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; margin-top: 40px; padding: 16px; background: var(--accent); color: var(--accent-text); font-size: 15px; font-weight: 750; border: 1px solid var(--accent); border-radius: 4px; transition: background 180ms ease-out, transform 180ms ease-out; }
.discord-login-btn:hover { background: var(--accent-hover); transform: translateY(-2px); }
.discord-login-btn:active { transform: translateY(1px); }
.discord-login-btn span { margin-left: auto; font-size: 20px; line-height: 1; }
.discord-icon { flex: none; width: 24px; height: 24px; }
.login-card .login-card__note { margin-top: 24px; font-size: 13px; }
.login-error { margin-top: 16px; padding: 12px 16px; border: 1px solid var(--accent); color: var(--ink); background: var(--error-surface); font-size: 14px; }
@media (max-width: 480px) {
    .login-shell { padding: 16px; }
    .login-card { padding: 32px 24px; }
    .login-card h1 { margin-top: 32px; }
}
@media (prefers-reduced-motion: reduce) { .discord-login-btn { transition: none; } }
