
        :root {
            --primary: #00b894;
            --primary-gradient: linear-gradient(135deg, #00e676 0%, #00b894 100%);
            --primary-light: rgba(0, 184, 148, 0.12);
            --primary-glow: rgba(0, 184, 148, 0.25);

            --ink: #0f172a;
            --muted: #64748b;
            --line: #e2e8f0;
            --paper: #ffffff;
            --canvas: #f8fafc;

            --radius-pill: 999px;
            --radius-card: 20px;
            --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
            --font-stack: 'Plus Jakarta Sans', system-ui, sans-serif;
        }

        [data-theme="dark"] {
            --ink: #f8fafc;
            --muted: #94a3b8;
            --line: rgba(255, 255, 255, 0.1);
            --paper: #131c31;
            --canvas: #090d16;
            --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.3);
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: var(--font-stack);
            font-size: 15px;
            line-height: 1.6;
            color: var(--ink);
            background-color: var(--canvas);
            -webkit-font-smoothing: antialiased;
            transition: background-color 0.3s ease, color 0.3s ease;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        a {
            color: var(--primary);
            text-decoration: none;
        }

        a:hover {
            text-decoration: underline;
        }

        .icon {
            width: 18px;
            height: 18px;
            stroke: currentColor;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
            fill: none;
            display: inline-block;
            vertical-align: middle;
            flex-shrink: 0;
        }

        .top-bar {
            position: absolute;
            top: 20px;
            left: 20px;
            right: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1140px;
            margin: 0 auto;
        }

        .brand-logo {
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 800;
            font-size: 1.25rem;
            color: var(--ink);
            text-decoration: none !important;
        }

        .brand-logo img {
            height: 34px;
            width: auto;
            display: block;
        }

        .theme-toggle {
            background: var(--paper);
            border: 1px solid var(--line);
            color: var(--ink);
            width: 38px;
            height: 38px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }

        .theme-toggle:hover {
            background: var(--primary-light);
        }

        .auth-container {
            width: 100%;
            max-width: 420px;
        }

        .auth-card {
            background: var(--paper);
            border: 1px solid var(--line);
            border-radius: var(--radius-card);
            padding: 40px 32px;
            box-shadow: var(--shadow-soft);
        }

        .auth-header {
            text-align: center;
            margin-bottom: 28px;
        }

        .auth-header h1 {
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--ink);
            margin-top: 12px;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            width: 100%;
            padding: 12px;
            font-size: 0.92rem;
            font-weight: 700;
            border-radius: 12px;
            cursor: pointer;
            border: none;
            text-decoration: none;
            transition: all 0.2s ease;
        }

        .btn-primary {
            background: var(--primary-gradient);
            color: #050810;
            box-shadow: 0 4px 15px var(--primary-glow);
        }

        .btn-primary:hover {
            transform: translateY(-1px);
            opacity: 0.95;
        }

        .btn-google {
            background: var(--paper);
            color: var(--ink);
            border: 1px solid var(--line);
            margin-top: 16px;
        }

        .btn-google:hover {
            background: var(--canvas);
            border-color: var(--muted);
        }

        .divider {
            display: flex;
            align-items: center;
            text-align: center;
            margin: 20px 0;
            color: var(--muted);
            font-size: 0.78rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .divider::before,
        .divider::after {
            content: '';
            flex: 1;
            border-bottom: 1px solid var(--line);
        }

        .divider::before {
            margin-right: 12px;
        }

        .divider::after {
            margin-left: 12px;
        }

        .form-group {
            margin-bottom: 16px;
        }

        .form-label {
            display: block;
            font-size: 0.85rem;
            font-weight: 700;
            margin-bottom: 6px;
            color: var(--ink);
        }

        .form-input {
            width: 100%;
            padding: 12px 14px;
            font-size: 0.92rem;
            border-radius: 10px;
            border: 1px solid var(--line);
            background: var(--canvas);
            color: var(--ink);
            transition: border-color 0.2s;
        }

        .form-input:focus {
            outline: none;
            border-color: var(--primary);
        }

        .form-footer-link {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.82rem;
            margin-bottom: 20px;
        }

        .auth-switch {
            text-align: center;
            font-size: 0.85rem;
            color: var(--muted);
            margin-top: 24px;
        }

        .password-field {
            position: relative;
        }

        .password-field .form-input {
            padding-right: 46px;
        }

        .password-toggle {
            position: absolute;
            top: 50%;
            right: 8px;
            transform: translateY(-50%);
            width: 34px;
            height: 34px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            border: 0;
            border-radius: 8px;
            background: transparent;
            color: var(--muted);
            cursor: pointer;
            transition: background-color 0.2s ease, color 0.2s ease;
        }

        .password-toggle:hover {
            background: var(--primary-light);
            color: var(--ink);
        }

        .password-toggle:focus-visible {
            outline: 2px solid var(--primary);
            outline-offset: 1px;
        }

        .password-toggle .icon {
            width: 19px;
            height: 19px;
        }

        .password-toggle .icon[hidden] {
            display: none;
        }

        .form-input.is-invalid {
            border-color: #dc2626;
        }

        .form-input.is-invalid:focus {
            border-color: #dc2626;
            box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
        }

        .form-error {
            display: none;
            margin-top: 5px;
            color: #dc2626;
            font-size: 0.78rem;
            line-height: 1.4;
        }

        .form-error.show {
            display: block;
        }

        [data-theme="dark"] .form-error {
            color: #fca5a5;
        }
    