*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

        /* ===== DARK THEME (default) ===== */
        :root,
        [data-theme="dark"] {
            --bg-0: #121013;
            --bg-1: #181619;
            --bg-2: #1f1c1f;
            --bg-3: #2a2528;
            --bg-hover: #241f22;
            --bg-surface: #1a1719;
            --accent: #8f565e;
            --accent-dim: rgba(143,86,94,0.12);
            --accent-glow: rgba(143,86,94,0.22);
            --accent-bright: #b07078;
            --accent-2: #8f565e;
            --text-0: #ffffff;
            --text-1: #c8c0c0;
            --text-2: #8a8282;
            --text-accent: #b07078;
            --border-0: rgba(255,245,245,0.04);
            --border-1: rgba(255,245,245,0.07);
            --border-2: rgba(255,245,245,0.12);
            --border-accent: rgba(226,149,163,0.3);
            --shadow-bento: 0 8px 24px -14px rgba(0,0,0,0.3);
            --shadow-bento-hover: 0 18px 42px -16px rgba(0,0,0,0.42);
            --shadow-input: 0 0 0 3px rgba(226,149,163,0.12);
            --bg-aurora-1: rgba(143,86,94,0.13);
            --bg-aurora-2: rgba(120,70,78,0.1);
            --bg-aurora-3: rgba(143,100,94,0.08);
            --invert-logo: 0;
        }

        /* ===== LIGHT THEME ===== */
        [data-theme="light"] {
            --bg-0: #faf8f5;
            --bg-1: #f3efe9;
            --bg-2: #ede8df;
            --bg-3: #e4ddd2;
            --bg-hover: #ddd5c8;
            --bg-surface: #ede8df;
            --accent: #8f565e;
            --accent-dim: rgba(143,86,94,0.12);
            --accent-glow: rgba(143,86,94,0.2);
            --accent-bright: #6d3a42;
            --accent-2: #704040;
            --text-accent: #6d3a42;
            --border-0: rgba(26,20,22,0.05);
            --border-1: rgba(26,20,22,0.1);
            --border-2: rgba(26,20,22,0.18);
            --border-accent: rgba(200,127,140,0.35);
            --shadow-bento: 0 8px 24px -14px rgba(0,0,0,0.08);
            --shadow-bento-hover: 0 18px 42px -16px rgba(0,0,0,0.12);
            --shadow-input: 0 0 0 3px rgba(200,127,140,0.15);
            --bg-aurora-1: rgba(143,86,94,0.1);
            --bg-aurora-2: rgba(120,70,78,0.08);
            --bg-aurora-3: rgba(143,100,94,0.06);
            --invert-logo: 1;
            --text-0: #1a1416;
            --text-1: #3a2f32;
            --text-2: #5a4f52;
        }

        html, body {
            height: 100%;
        }

        body {
            font-family: 'Onest', -apple-system, system-ui, sans-serif;
            background: var(--bg-0);
            color: var(--text-0);
            font-size: 15px;
            line-height: 1.5;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            position: relative;
            transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
        }

        /* Aurora background */
        body::before {
            content: '';
            position: fixed;
            inset: 0;
            background:
                radial-gradient(60% 80% at 20% 10%, var(--bg-aurora-1), transparent 60%),
                radial-gradient(50% 60% at 85% 20%, var(--bg-aurora-2), transparent 65%),
                radial-gradient(40% 50% at 50% 110%, var(--bg-aurora-3), transparent 70%);
            pointer-events: none;
            z-index: 0;
            transition: background var(--dur) var(--ease);
        }

        /* Theme toggle button */
        .theme-toggle {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 100;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--bg-1);
            border: 1px solid var(--border-1);
            border-radius: 10px;
            cursor: pointer;
            color: var(--text-1);
            transition: all var(--dur) var(--ease);
        }

        .theme-toggle:hover {
            background: var(--bg-hover);
            color: var(--text-0);
            border-color: var(--border-2);
        }

        .theme-toggle svg {
            width: 18px;
            height: 18px;
            transition: transform 0.3s var(--ease);
        }

        .theme-toggle:hover svg {
            transform: rotate(20deg);
        }

        .page {
            position: relative;
            z-index: 1;
            width: 100%;
            max-width: 420px;
            padding: 24px;
        }

        /* Logo */
        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 40px;
            justify-content: center;
        }

        .logo-icon {
            width: 48px;
            height: 48px;
            background: var(--accent);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Unbounded', sans-serif;
            font-size: 26px;
            font-weight: 700;
            color: #121013;
            flex-shrink: 0;
        }

        .logo-text-wrap {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .logo-name {
            font-family: 'Unbounded', sans-serif;
            font-size: 18px;
            font-weight: 700;
            color: var(--text-0);
            letter-spacing: -0.02em;
        }

        .logo-tagline {
            font-family: 'Onest', sans-serif;
            font-size: 10px;
            font-weight: 500;
            color: var(--text-2);
            letter-spacing: 0.02em;
        }

        /* Card */
        .card {
            background: var(--bg-1);
            border: 1px solid var(--border-1);
            border-radius: 18px;
            box-shadow: var(--shadow-bento);
            padding: 32px;
            transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
        }

        .card-header {
            display: block;
            text-align: center;
            margin-bottom: 28px;
        }

        .card-title {
            font-family: 'Unbounded', sans-serif;
            font-size: 22px;
            font-weight: 700;
            color: var(--text-0);
            letter-spacing: -0.02em;
            margin-bottom: 8px;
            transition: color var(--dur) var(--ease);
        }

        .card-desc {
            color: var(--text-1);
            font-size: 14px;
            line-height: 1.5;
            transition: color var(--dur) var(--ease);
        }

        /* Form */
        .form-group {
            margin-bottom: 16px;
        }

        .form-label {
            display: block;
            font-size: 13px;
            font-weight: 600;
            color: var(--text-0);
            margin-bottom: 8px;
            transition: color var(--dur) var(--ease);
        }

        .form-input {
            width: 100%;
            height: 44px;
            padding: 0 16px;
            font-family: 'Onest', sans-serif;
            font-size: 14px;
            background: var(--bg-2);
            border: 1px solid var(--border-1);
            border-radius: 8px;
            color: var(--text-0);
            outline: none;
            transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
        }

        .form-input::placeholder {
            color: var(--text-2);
        }

        .form-input:focus {
            border-color: var(--border-accent);
            box-shadow: var(--shadow-input);
        }

        /* Button */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            height: 44px;
            padding: 0 24px;
            font-family: 'Onest', sans-serif;
            font-size: 14px;
            font-weight: 600;
            border: 1px solid var(--border-1);
            border-radius: 999px;
            cursor: pointer;
            transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
            background: var(--bg-2);
            color: var(--text-0);
            text-decoration: none;
            white-space: nowrap;
            letter-spacing: -0.005em;
        }

        .btn:hover {
            background: var(--bg-3);
            border-color: var(--border-2);
        }

        .btn-primary {
            background: var(--accent);
            border-color: var(--accent);
            color: var(--bg-0);
        }

        .btn-primary:hover {
            background: var(--accent-bright);
            border-color: var(--accent-bright);
        }

        .btn-block {
            width: 100%;
        }

        /* Error */
        .error {
            background: rgba(184,94,94,0.12);
            border: 1px solid rgba(184,94,94,0.25);
            border-radius: 8px;
            padding: 12px 14px;
            font-size: 13px;
            color: #e27c7c;
            margin-bottom: 16px;
            display: none;
        }

        .error.visible {
            display: block;
        }

        /* Footer link */
        .footer-link {
            text-align: center;
            margin-top: 20px;
            font-size: 13px;
            color: var(--text-2);
            transition: color var(--dur) var(--ease);
        }

        .footer-link a {
            color: var(--accent);
            text-decoration: none;
            font-weight: 500;
            transition: color var(--dur) var(--ease);
        }

        .footer-link a:hover {
            color: var(--accent-bright);
        }

        .version {
            text-align: center;
            margin-top: 32px;
            font-size: 12px;
            color: var(--text-2);
            opacity: 0.5;
            font-family: 'JetBrains Mono', monospace;
            transition: color var(--dur) var(--ease);
        }

        /* Dur/Ease */
        :root {
            --dur: 0.22s;
            --ease: cubic-bezier(0.32, 0.72, 0.24, 1);
        }
