        :root {
            --primary-color: #6366f1;
            --primary-hover: #5b21b6;
            --secondary-color: #f8fafc;
            --text-primary: #1e293b;
            --text-secondary: #64748b;
            --border-color: #e2e8f0;
            --success-color: #10b981;
            --warning-color: #f59e0b;
            --danger-color: #ef4444;
            --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
            --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
            --page-max-width: 1200px;
        }

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

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            line-height: 1.6;
            color: var(--text-primary);
            background-color: #ffffff;
        }

        /* Top Right Icon - Hidden when header is present */
        .top-right-icon {
            display: none;
        }

        /* Mobile Menu Toggle - Hidden on desktop */
        .mobile-menu-toggle {
            display: none;
            background: none;
            border: none;
            font-size: 24px;
            color: var(--text-primary);
            cursor: pointer;
            padding: 8px;
            border-radius: 4px;
            transition: background-color 0.2s;
        }

        .mobile-menu-toggle:hover {
            background-color: var(--secondary-color);
        }

        /* Mobile Menu Overlay - Hidden by default */
        .mobile-menu-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 9999;
            align-items: center;
            justify-content: center;
        }

        .mobile-menu {
            background: white;
            width: 90%;
            max-width: 400px;
            border-radius: 12px;
            padding: 24px;
            transform: translateY(-20px);
            opacity: 0;
            transition: all 0.3s ease;
        }

        .mobile-menu.active {
            transform: translateY(0);
            opacity: 1;
        }

        .mobile-menu-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
            padding-bottom: 16px;
            border-bottom: 1px solid var(--border-color);
        }

        .mobile-menu-close {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: var(--text-secondary);
            padding: 4px;
        }

        .mobile-menu-nav {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-bottom: 24px;
        }

        .mobile-menu-nav a {
            padding: 12px 16px;
            border-radius: 8px;
            text-decoration: none;
            color: var(--text-primary);
            font-weight: 500;
            transition: background 0.2s;
        }

        .mobile-menu-nav a:hover,
        .mobile-menu-nav a.active {
            background: var(--secondary-color);
            color: var(--primary-color);
        }

        .mobile-menu-auth {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        /* Main Container */
        .main-container {
            min-height: calc(100vh - 80px);
            background: #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px 24px;
            margin-top: 80px;
        }

        .login-container {
            background: white;
            max-width: 500px;
            width: 100%;
            text-align: center;
        }

        .login-header {
            margin-bottom: 48px;
        }

        .login-header h1 {
            color: #6366f1;
            font-size: 42px;
            font-weight: 700;
            margin-bottom: 12px;
        }

        .login-header p {
            color: var(--text-secondary);
            font-size: 16px;
            line-height: 1.5;
        }

        .login-section {
            margin-bottom: 48px;
        }

        .login-title {
            color: var(--text-primary);
            font-size: 32px;
            margin-bottom: 16px;
            font-weight: 700;
        }

        .login-subtitle {
            color: var(--text-secondary);
            margin-bottom: 32px;
            line-height: 1.6;
            font-size: 15px;
        }

        .terms-checkbox {
            margin-bottom: 20px;
            text-align: left;
        }

        .terms-checkbox label {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            cursor: pointer;
            font-size: 14px;
            color: var(--text-primary);
            font-weight: 400;
        }

        .terms-checkbox input[type="checkbox"] {
            margin-top: 2px;
            accent-color: var(--primary-color);
            width: 18px;
            height: 18px;
            flex-shrink: 0;
        }

        .terms-checkbox a {
            color: #6366f1;
            text-decoration: none;
            font-weight: 500;
        }

        .terms-checkbox a:hover {
            text-decoration: underline;
        }

        .google-login-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: white;
            border: 1px solid #d1d5db;
            border-radius: 8px;
            padding: 14px 24px;
            font-size: 15px;
            text-decoration: none;
            color: var(--text-primary);
            transition: all 0.2s;
            width: 100%;
            font-weight: 500;
            margin-top: 8px;
        }

        .google-login-btn:hover {
            border-color: #9ca3af;
            background: #f9fafb;
        }

        .google-login-btn:disabled,
        .google-login-btn[style*="opacity: 0.5"] {
            opacity: 0.5;
            pointer-events: none;
            cursor: not-allowed;
        }

        .google-icon {
            width: 20px;
            height: 20px;
            margin-right: 12px;
        }

        .btn {
            padding: 8px 16px;
            border-radius: 8px;
            font-weight: 500;
            text-decoration: none;
            transition: all 0.2s;
            border: none;
            cursor: pointer;
            font-size: 14px;
            display: inline-block;
        }

        .btn-primary {
            background: var(--primary-color);
            color: white;
        }

        /* Login Free Trial Section */
        .login-free-trial-wrapper {
            position: relative;
            margin-top: 48px;
        }

        .login-free-trial-header {
            position: absolute;
            top: -16px;
            left: 50%;
            transform: translateX(-50%);
            background: #6366f1;
            color: white;
            padding: 8px 20px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
            z-index: 10;
            white-space: nowrap;
        }

        .login-free-trial-icon {
            width: 18px;
            height: 18px;
            flex-shrink: 0;
            object-fit: contain;
        }

        .login-free-trial {
            background: #f5f3ff;
            border: 1px solid #e0e7ff;
            border-radius: 12px;
            padding: 40px 32px;
            text-align: center;
            margin-top: 8px;
        }

        .login-free-trial-title {
            font-size: 18px;
            font-weight: 700;
            color: #1e293b;
            margin-bottom: 16px;
        }

        .login-free-trial-text {
            font-size: 14px;
            line-height: 1.6;
            color: var(--text-secondary);
            margin-bottom: 24px;
        }

        .login-free-trial-btn {
            background: #6366f1 !important;
            color: white !important;
            border: none !important;
            font-weight: 600;
            padding: 12px 32px;
            border-radius: 8px;
            font-size: 15px;
            text-decoration: none;
            display: inline-block;
        }

        .login-free-trial-btn:hover {
            background: #5b21b6 !important;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
        }

        .footer {
            margin-top: 40px;
            padding-top: 24px;
            border-top: 1px solid var(--border-color);
            color: var(--text-secondary);
            font-size: 14px;
        }

        .footer a {
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 500;
        }

        .footer a:hover {
            text-decoration: underline;
        }

        .dev-reconnect {
            margin-top: 20px;
            padding: 16px;
            background: #fef3c7;
            border: 2px solid #fcd34d;
            border-radius: 12px;
            display: none;
        }

        .dev-reconnect p {
            margin: 0;
            font-size: 14px;
            color: #92400e;
            font-weight: 500;
        }

        .dev-reconnect a {
            color: var(--primary-color);
            text-decoration: underline;
            font-weight: 600;
        }

        @media (max-width: 768px) {
            .main-container {
                padding: 40px 16px;
            }
            
            .login-header h1 {
                font-size: 36px;
            }

            .login-title {
                font-size: 28px;
            }

            .login-free-trial {
                padding: 32px 24px;
            }

            .login-free-trial-header {
                font-size: 12px;
                padding: 6px 16px;
            }
        }
        /* Footer */
        .footer-simple {
            background: var(--text-primary);
            color: white;
            padding: 20px 24px;
        }

        .footer-container {
            max-width: 1200px;
            margin: 0 auto;
        }

        .disclaimer {
            text-align: center;
            margin-bottom: 16px;
        }

        .disclaimer p {
            margin: 0;
            font-size: 14px;
            color: #94a3b8;
        }

        .footer-bottom {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-top: 1px solid #374151;
            padding-top: 16px;
        }

        .footer-left p,
        .footer-right p {
            margin: 0;
            font-size: 14px;
            color: #94a3b8;
        }

        .footer-right a {
            color: #94a3b8;
            text-decoration: none;
            transition: color 0.2s;
        }

        .footer-right a:hover {
            color: white;
        }

        @media (max-width: 768px) {
            .mobile-menu-toggle {
                display: block;
            }

            .nav-menu {
                display: none;
            }

            .auth-buttons {
                display: none;
            }

            .footer-bottom {
                flex-direction: column;
                gap: 12px;
                text-align: center;
            }
        }

/* ================================================================
   AUTH REDESIGN — tabs + forms + password meter
   ================================================================ */

.login-separator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #94a3b8;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-separator::before,
.login-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.auth-tabs {
    display: flex;
    gap: 6px;
    padding: 4px;
    background: #f1f5f9;
    border-radius: 10px;
    margin-bottom: 20px;
}

.auth-tab {
    flex: 1;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
}

.auth-tab:hover { color: #1e293b; background: rgba(255,255,255,0.6); }

.auth-tab.active {
    background: #ffffff;
    color: #6366f1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.auth-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
}
.auth-message-error { background: #fef2f2; color: #991b1b; border: 1px solid rgba(220,38,38,0.2); }
.auth-message-warn  { background: #fffbeb; color: #92400e; border: 1px solid rgba(245,158,11,0.2); }
.auth-message-success { background: #ecfdf5; color: #065f46; border: 1px solid rgba(16,185,129,0.2); }
.auth-message a { color: inherit; font-weight: 700; text-decoration: underline; }

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.field-optional {
    font-weight: 400;
    color: #94a3b8;
    font-size: 12px;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="password"] {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

.password-wrapper {
    position: relative;
    display: block;
}

.password-wrapper input {
    padding-right: 40px !important;
    width: 100%;
    box-sizing: border-box;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px;
    font-size: 14px;
}

.toggle-password:hover { color: #64748b; }

.form-field-inline {
    display: flex;
    justify-content: flex-end;
    margin-top: -4px;
}

.link-muted {
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
}
.link-muted:hover { color: #6366f1; text-decoration: underline; }

/* Password strength meter */
.password-strength {
    margin-top: 6px;
}

.strength-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.strength-bar span {
    display: block;
    height: 100%;
    width: 0;
    background: #cbd5e1;
    transition: width 0.25s ease, background 0.25s ease;
}

.strength-bar span.s-weak    { background: #dc2626; }
.strength-bar span.s-low     { background: #f59e0b; }
.strength-bar span.s-medium  { background: #eab308; }
.strength-bar span.s-good    { background: #84cc16; }
.strength-bar span.s-strong  { background: #10b981; }

.strength-label {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

.password-rules {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
}

.password-rules li {
    font-size: 12px;
    color: #94a3b8;
    padding-left: 16px;
    position: relative;
    transition: color 0.15s ease;
}

.password-rules li::before {
    content: '○';
    position: absolute;
    left: 0;
    color: #cbd5e1;
}

.password-rules li.ok {
    color: #10b981;
}

.password-rules li.ok::before {
    content: '✓';
    color: #10b981;
    font-weight: 700;
}

/* Consent checkboxes */
.consent-checkbox {
    font-size: 12px;
    line-height: 1.5;
    color: #64748b;
    margin-top: 6px;
}

.consent-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

.consent-checkbox input[type="checkbox"] {
    margin-top: 2px;
    cursor: pointer;
    accent-color: #6366f1;
}

.consent-checkbox a {
    color: #6366f1;
    text-decoration: none;
}
.consent-checkbox a:hover { text-decoration: underline; }

/* Buttons */
.btn-primary.btn-full {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    font-family: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn-primary.btn-full:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.btn-primary.btn-full:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

@media (max-width: 480px) {
    .form-row { grid-template-columns: 1fr; }
    .password-rules { grid-template-columns: 1fr; }
}
