
        :root {
            --bg: #050505;
            --card: #0f0f0f;
            --accent: #ccff00;
            --accent-rgb: 204, 255, 0;
            --text-p: #ffffff;
            --text-s: #888888;
            --error: #ff4444;
            --font-heading: 'Space Grotesk', sans-serif;
            --font-mono: 'Space Mono', monospace;
            --main-color: #323232;
        }

        /* ── Neural Oscillator Themes ── */
        html.theme-rotate-1 {
            --grad-1: #9d50bb;
            --grad-2: #00d4ff;
            --grad-3: #38ef7d;
            --accent: #00d4ff;
            --accent-rgb: 0, 212, 255;
        }

        html.theme-rotate-2 {
            --grad-1: #264653;
            --grad-2: #2A9D8F;
            --grad-3: #E9C46A;
            --accent: #2A9D8F;
            --accent-rgb: 42, 157, 143;
        }

        html.theme-rotate-3 {
            --grad-1: #C9184A;
            --grad-2: #FF4D6D;
            --grad-3: #FF8FA3;
            --accent: #FF4D6D;
            --accent-rgb: 255, 77, 109;
        }

        html.theme-rotate-4 {
            --grad-1: #240046;
            --grad-2: #5A189A;
            --grad-3: #FF7900;
            --accent: #FF7900;
            --accent-rgb: 255, 121, 0;
        }

        /* Persistent User Themes */
        html.theme-jarvi {
            --accent: #00d4ff;
            --accent-rgb: 0, 212, 255;
        }

        html.theme-grim {
            --accent: #70e000;
            --accent-rgb: 112, 224, 0;
        }

        html.theme-murphy {
            --accent: #ff9800;
            --accent-rgb: 255, 152, 0;
        }

        html.theme-lexis {
            --accent: #FFD700;
            --accent-rgb: 255, 215, 0;
        }

        html.theme-chronicles {
            --accent: #9d50bb;
            --accent-rgb: 157, 80, 187;
        }

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

        body {
            background-color: var(--bg);
            color: var(--text-p);
            font-family: 'Plus Jakarta Sans', sans-serif;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            overflow: hidden;
        }

        #blob {
            background-color: white;
            height: 500px;
            aspect-ratio: 1;
            position: absolute;
            left: 50%;
            top: 50%;
            translate: -50% -50%;
            border-radius: 50%;
            background: linear-gradient(to right, var(--accent), var(--grad-1, var(--accent)));
            animation: rotate 20s infinite;
            opacity: 0.15;
            filter: blur(80px);
            z-index: -1;
        }

        #blur {
            height: 100%;
            width: 100%;
            position: absolute;
            z-index: -2;
            backdrop-filter: blur(12vmax);
            background: var(--bg);
        }

        @keyframes rotate {
            from {
                rotate: 0deg;
            }

            50% {
                scale: 1 1.5;
            }

            to {
                rotate: 360deg;
            }
        }

        /* ── Auth Card ── */
        .auth-card {
            background: rgba(15, 15, 15, 0.7);
            padding: 3rem;
            border-radius: 32px;
            border: 2px solid rgba(255, 255, 255, 0.12);
            width: 100%;
            max-width: 440px;
            box-shadow: 6px 6px 0px rgba(255, 255, 255, 0.15), 0 40px 100px rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(40px);
            position: relative;
            z-index: 10;
        }

        /* ── Heading ── */
        .auth-header h1 {
            font-family: var(--font-heading);
            font-size: 2.2rem;
            margin-bottom: 0.3rem;
            letter-spacing: -1.5px;
            font-weight: 700;
        }

        .auth-header h1 span {
            color: var(--accent);
        }

        .auth-header .subtitle {
            color: var(--text-s);
            font-family: var(--font-mono);
            font-size: 0.85rem;
            margin-bottom: 2rem;
            line-height: 1.5;
        }

        /* ── OAuth Slider Buttons ── */
        .oauth-grid {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-bottom: 0;
        }

        .oauth-btn {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
            width: 100%;
            height: 48px;
            border-radius: 14px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background-color: rgba(255, 255, 255, 0.03);
            box-shadow: 4px 4px 0px rgba(255, 255, 255, 0.06);
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--text-p);
            cursor: pointer;
            transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            z-index: 1;
            font-family: 'Plus Jakarta Sans', sans-serif;
        }

        /* Held state while the browser navigates to Google's consent screen, so the
           dead time between click and redirect reads as progress, not a frozen button. */
        .oauth-btn.is-redirecting {
            opacity: 0.6;
            cursor: progress;
            transform: none;
        }

        .oauth-btn.is-redirecting::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            height: 2px;
            width: 100%;
            background: linear-gradient(90deg, #4285F4, #EA4335, #FBBC05, #34A853);
            transform-origin: left;
            animation: oauth-progress 1.2s ease-out forwards;
        }

        @keyframes oauth-progress {
            from { transform: scaleX(0); }
            to   { transform: scaleX(1); }
        }

        .oauth-btn::before {
            content: "";
            position: absolute;
            top: 0;
            left: -100%;
            height: 100%;
            width: 100%;
            z-index: -1;
            transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
            border-radius: 14px;
        }

        .oauth-btn:hover {
            border-color: transparent;
            transform: translate(-2px, -2px);
            box-shadow: 6px 6px 0px rgba(255, 255, 255, 0.1);
        }

        .oauth-btn:hover::before {
            left: 0;
        }

        .oauth-btn:active {
            transform: translate(2px, 2px);
            box-shadow: 1px 1px 0px rgba(255, 255, 255, 0.04);
        }

        /* Brand-specific slide colors */
        .oauth-btn--google::before {
            background: linear-gradient(135deg, #4285F4, #34A853);
        }

        .oauth-btn--whatsapp::before {
            background: linear-gradient(135deg, #25D366, #128C7E);
        }

        .oauth-btn--facebook::before {
            background: linear-gradient(135deg, #1877F2, #0C5DC7);
        }

        .oauth-btn--instagram::before {
            background: linear-gradient(135deg, #E1306C, #F77737, #833AB4);
        }

        .oauth-btn .oauth-icon {
            width: 20px;
            height: 20px;
            flex-shrink: 0;
            transition: filter 200ms;
        }

        .oauth-btn:hover .oauth-icon path {
            fill: white;
        }

        .oauth-btn--instagram:hover .oauth-icon path,
        .oauth-btn--whatsapp:hover .oauth-icon path,
        .oauth-btn--facebook:hover .oauth-icon path {
            fill: white;
        }

        /* ── Separator ── */
        .separator {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            margin: 1.5rem 0;
        }

        .separator div {
            flex: 1;
            height: 1px;
            background: rgba(255, 255, 255, 0.06);
        }

        .separator span {
            color: rgba(255, 255, 255, 0.2);
            font-family: var(--font-mono);
            font-weight: 700;
            font-size: 0.7rem;
            letter-spacing: 3px;
            text-transform: uppercase;
        }

        /* ── Form Inputs ── */
        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group label {
            display: block;
            font-size: 0.7rem;
            color: var(--text-s);
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 0.6rem;
            font-weight: 600;
        }

        .form-group input {
            width: 100%;
            padding: 1rem 1.2rem;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 14px;
            color: white;
            font-size: 0.95rem;
            box-shadow: 4px 4px 0px rgba(255, 255, 255, 0.04);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            font-family: 'Plus Jakarta Sans', sans-serif;
        }

        .form-group input:focus {
            outline: none;
            border-color: var(--accent);
            background: rgba(var(--accent-rgb), 0.05);
            box-shadow: 4px 4px 0px rgba(var(--accent-rgb), 0.15), 0 0 30px rgba(var(--accent-rgb), 0.12);
        }

        /* ── Submit Button (Accent Slide) ── */
        .btn-submit {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            width: 100%;
            height: 52px;
            border-radius: 14px;
            border: 2px solid var(--accent);
            background-color: transparent;
            box-shadow: 4px 4px 0px rgba(var(--accent-rgb), 0.2);
            font-size: 1rem;
            font-weight: 800;
            color: var(--accent);
            cursor: pointer;
            transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            z-index: 1;
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-top: 0.5rem;
            font-family: 'Plus Jakarta Sans', sans-serif;
        }

        .btn-submit::before {
            content: "";
            position: absolute;
            top: 0;
            left: -100%;
            height: 100%;
            width: 100%;
            background-color: var(--accent);
            z-index: -1;
            transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
            border-radius: 12px;
        }

        .btn-submit:hover {
            color: #000;
            transform: translate(-2px, -2px);
            box-shadow: 6px 6px 0px rgba(var(--accent-rgb), 0.3), 0 10px 30px rgba(var(--accent-rgb), 0.15);
        }

        .btn-submit:hover::before {
            left: 0;
        }

        .btn-submit:active {
            transform: translate(2px, 2px);
            box-shadow: 1px 1px 0px rgba(var(--accent-rgb), 0.1);
        }

        .btn-submit .btn-arrow {
            width: 18px;
            height: 18px;
            transition: transform 200ms;
        }

        .btn-submit:hover .btn-arrow {
            transform: translateX(4px);
            stroke: #000;
        }

        /* ── Forgot Link ── */
        .forgot-row {
            text-align: right;
            margin-top: 0.6rem;
        }

        .forgot-row a {
            color: var(--text-s);
            font-size: 0.78rem;
            text-decoration: none;
            opacity: 0.7;
            transition: 0.3s;
        }

        .forgot-row a:hover {
            color: var(--accent);
            opacity: 1;
        }

        /* ── Bottom Link Card ── */
        .protocol-card {
            margin-top: 2.5rem;
            padding: 1.2rem;
            background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.04) 0%, transparent 100%);
            border: 1px solid rgba(var(--accent-rgb), 0.1);
            border-radius: 18px;
            text-align: center;
            transition: all 0.3s ease;
        }

        .protocol-card:hover {
            border-color: rgba(var(--accent-rgb), 0.3);
            background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.08) 0%, transparent 100%);
        }

        .protocol-card .label {
            display: block;
            font-size: 0.7rem;
            color: var(--text-s);
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 0.4rem;
        }

        .protocol-card a {
            color: var(--accent);
            text-decoration: none;
            font-weight: 700;
            font-size: 1rem;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

        .protocol-card a::after {
            content: '→';
            transition: transform 0.3s ease;
        }

        .protocol-card a:hover::after {
            transform: translateX(5px);
        }

        /* ── Error ── */
        #error-msg {
            background: rgba(255, 68, 68, 0.1);
            color: var(--error);
            padding: 1rem;
            border-radius: 12px;
            font-size: 0.85rem;
            margin-bottom: 1.5rem;
            display: none;
            border: 1px solid rgba(255, 68, 68, 0.2);
            animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
        }

        @keyframes shake {

            10%,
            90% {
                transform: translate3d(-1px, 0, 0);
            }

            20%,
            80% {
                transform: translate3d(2px, 0, 0);
            }

            30%,
            50%,
            70% {
                transform: translate3d(-4px, 0, 0);
            }

            40%,
            60% {
                transform: translate3d(4px, 0, 0);
            }
        }

        /* ── Footer ── */
        footer {
            position: absolute;
            bottom: 1.5rem;
            width: 100%;
            pointer-events: none;
            display: flex;
            justify-content: center;
            z-index: 10;
        }

        footer p {
            pointer-events: auto;
            font-size: 0.65rem;
            color: var(--text-s);
            text-align: center;
            line-height: 1.4;
            opacity: 0.5;
            margin: 0;
        }

        /* ── Responsive ── */
        @media (max-width: 480px) {
            .auth-card {
                padding: 2rem 1.5rem;
                margin: 1rem;
            }

            .auth-header h1 {
                font-size: 1.8rem;
            }
        }
    