* { margin: 0; padding: 0; box-sizing: border-box; }
        
        :root {
            --ams-blue: #03A9F4;
            --ams-blue-light: #81D4FA;
            --ams-blue-dark: #0288D1;
            --slate-900: #0f172a;
            --slate-800: #1e293b;
            --slate-700: #334155;
            --slate-600: #475569;
            --slate-500: #64748b;
            --slate-400: #94a3b8;
            --slate-300: #cbd5e1;
            --slate-200: #e2e8f0;
            --slate-100: #f1f5f9;
            --slate-50: #f8fafc;
            --green: #22c55e;
            --red: #ef4444;
            --red-light: #fef2f2;
            --red-border: #fecaca;
        }
        
        body {
            font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            background: var(--slate-50);
            color: var(--slate-900);
            min-height: 100vh;
            -webkit-font-smoothing: antialiased;
        }
        
        .container {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }
        
        @media (min-width: 1024px) {
            .container { flex-direction: row; }
        }
        
        .left-panel {
            display: none;
            position: relative;
            overflow: hidden;
            background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #01579B 100%);
            padding: 64px;
            color: white;
        }
        
        @media (min-width: 1024px) {
            .left-panel {
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                width: 50%;
            }
        }
        
        .blur-1 {
            position: absolute; top: -100px; right: -100px;
            width: 400px; height: 400px;
            background: var(--ams-blue);
            opacity: 0.15; border-radius: 50%; filter: blur(80px);
        }
        
        .blur-2 {
            position: absolute; bottom: -100px; left: -100px;
            width: 350px; height: 350px;
            background: var(--ams-blue-light);
            opacity: 0.12; border-radius: 50%; filter: blur(80px);
        }
        
        .grid-pattern {
            position: absolute; inset: 0;
            background-image: 
                linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
            background-size: 50px 50px;
        }
        
        .left-content {
            position: relative; z-index: 10;
            display: flex; flex-direction: column;
            height: 100%;
        }
        
        .brand-logo { display: flex; align-items: center; gap: 12px; }
        
        .logo-icon {
            width: 44px; height: 44px;
            background: var(--ams-blue-light);
            border-radius: 12px;
            display: flex; align-items: center; justify-content: center;
        }
        
        .logo-icon svg { width: 24px; height: 24px; color: var(--slate-900); }
        
        .logo-text-main {
            font-size: 17px; font-weight: 700;
            color: white; letter-spacing: -0.02em; line-height: 1.2;
        }
        
        .logo-text-sub {
            font-size: 11px; color: var(--ams-blue-light);
            font-weight: 500; margin-top: 2px;
        }
        
        .hero-content { margin-top: auto; margin-bottom: auto; }
        
        .hero-badge {
            display: inline-flex; align-items: center; gap: 8px;
            padding: 6px 12px;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 100px;
            margin-bottom: 32px;
            font-size: 12px; font-weight: 500;
            color: white;
        }
        
        .hero-badge .dot {
            width: 8px; height: 8px;
            background: var(--green); border-radius: 50%;
            animation: pulse 2s infinite;
        }
        
        @keyframes pulse {
            0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
            50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
        }
        
        .hero-title {
            font-size: 44px; font-weight: 700;
            line-height: 1.1; letter-spacing: -0.03em;
            margin-bottom: 24px; color: white;
        }
        
        .accent { color: var(--ams-blue-light); }
        
        .hero-desc {
            font-size: 17px; line-height: 1.6;
            color: var(--slate-300);
            max-width: 440px; margin-bottom: 40px;
        }
        
        .features-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px; max-width: 460px;
        }
        
        .feature-item {
            display: flex; align-items: flex-start; gap: 12px;
        }
        
        .feature-icon {
            width: 36px; height: 36px;
            background: rgba(3, 169, 244, 0.2);
            border-radius: 10px;
            display: flex; align-items: center; justify-content: center;
            flex-shrink: 0;
        }
        
        .feature-icon svg {
            width: 18px; height: 18px;
            color: var(--ams-blue-light);
        }
        
        .feature-name {
            font-size: 14px; font-weight: 600;
            color: white; line-height: 1.3;
        }
        
        .feature-desc {
            font-size: 12px; color: var(--slate-400);
            margin-top: 2px;
        }
        
        .left-footer {
            font-size: 12px; color: var(--slate-400);
            margin-top: 40px;
        }
        
        .right-panel {
            flex: 1;
            display: flex; align-items: center; justify-content: center;
            padding: 24px;
        }
        
        @media (min-width: 640px) {
            .right-panel { padding: 48px; }
        }
        
        .login-box {
            width: 100%; max-width: 420px;
            animation: fadeInUp 0.6s ease-out;
        }
        
        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .mobile-logo {
            display: flex; align-items: center; justify-content: center;
            gap: 12px; margin-bottom: 40px;
        }
        
        @media (min-width: 1024px) {
            .mobile-logo { display: none; }
        }
        
        .mobile-logo .logo-text-main { color: var(--slate-900); }
        .mobile-logo .logo-text-sub { color: var(--slate-500); }
        
        .welcome-section { margin-bottom: 32px; }
        
        .welcome-title {
            font-size: 32px; font-weight: 700;
            color: var(--slate-900);
            letter-spacing: -0.02em;
            margin-bottom: 8px; line-height: 1.2;
        }
        
        @media (min-width: 640px) {
            .welcome-title { font-size: 36px; }
        }
        
        .welcome-desc {
            font-size: 15px; color: var(--slate-600);
            line-height: 1.5;
        }
        
        .login-form {
            display: flex; flex-direction: column; gap: 20px;
        }
        
        .form-group { display: flex; flex-direction: column; }
        
        .label-row {
            display: flex; align-items: center; justify-content: space-between;
            margin-bottom: 8px;
        }
        
        .form-label {
            font-size: 14px; font-weight: 600;
            color: var(--slate-700);
        }
        
        .forgot-link {
            font-size: 13px; font-weight: 600;
            color: var(--ams-blue-dark);
            text-decoration: none; transition: color 0.2s;
        }
        
        .forgot-link:hover { color: var(--ams-blue); }
        
        .input-wrapper { position: relative; }
        
        .input-icon {
            position: absolute; left: 14px; top: 50%;
            transform: translateY(-50%);
            width: 20px; height: 20px;
            color: var(--slate-400);
            pointer-events: none;
        }
        
        .form-input {
            width: 100%;
            padding: 13px 14px 13px 44px;
            font-family: inherit; font-size: 15px;
            color: var(--slate-900);
            background: white;
            border: 1px solid var(--slate-200);
            border-radius: 12px;
            transition: all 0.2s;
            outline: none;
        }
        
        .form-input::placeholder { color: var(--slate-400); }
        
        .form-input:focus {
            border-color: var(--ams-blue);
            box-shadow: 0 0 0 4px rgba(3, 169, 244, 0.1);
        }
        
        .password-toggle {
            position: absolute; right: 14px; top: 50%;
            transform: translateY(-50%);
            width: 20px; height: 20px;
            color: var(--slate-400);
            background: none; border: none;
            cursor: pointer; padding: 0;
            transition: color 0.2s;
        }
        
        .password-toggle:hover { color: var(--slate-600); }
        .password-toggle svg { width: 100%; height: 100%; }
        
        .remember-row {
            display: flex; align-items: center; gap: 8px;
        }
        
        .remember-row input[type="checkbox"] {
            width: 16px; height: 16px;
            accent-color: var(--ams-blue);
            cursor: pointer;
        }
        
        .remember-row label {
            font-size: 14px; color: var(--slate-700);
            cursor: pointer; user-select: none;
        }
        
        .error-msg {
            display: none;
            padding: 12px 14px;
            background: var(--red-light);
            border: 1px solid var(--red-border);
            border-radius: 12px;
            color: var(--red); font-size: 14px;
        }
        
        .error-msg.show {
            display: block;
            animation: fadeInUp 0.3s ease-out;
        }
        
        .submit-btn {
            width: 100%;
            padding: 14px;
            background: var(--slate-900);
            color: white;
            font-family: inherit;
            font-size: 15px; font-weight: 600;
            border: none; border-radius: 12px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex; align-items: center; justify-content: center;
            gap: 8px; margin-top: 4px;
        }
        
        .submit-btn:hover { background: var(--slate-800); }
        .submit-btn:active { transform: scale(0.98); }
        .submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
        .submit-btn svg { width: 18px; height: 18px; }
        
        .spinner { display: none; animation: spin 0.8s linear infinite; }
        .spinner.show { display: inline-block; }
        @keyframes spin { to { transform: rotate(360deg); } }
        
        .divider {
            position: relative; margin: 32px 0; text-align: center;
        }
        
        .divider::before {
            content: ''; position: absolute; top: 50%; left: 0; right: 0;
            height: 1px; background: var(--slate-200);
        }
        
        .divider span {
            position: relative;
            background: var(--slate-50);
            padding: 0 16px;
            font-size: 12px; color: var(--slate-500);
            font-weight: 500;
        }
        
        .signup-section { text-align: center; }
        
        .signup-link {
            display: inline-flex; align-items: center; gap: 8px;
            font-size: 15px; font-weight: 600;
            color: var(--slate-900);
            text-decoration: none;
            transition: color 0.2s;
        }
        
        .signup-link:hover { color: var(--ams-blue-dark); }
        .signup-link svg { width: 16px; height: 16px; }
        
        .trust-section {
            margin-top: 48px;
            padding-top: 32px;
            border-top: 1px solid var(--slate-200);
        }
        
        .trust-badges {
            display: flex; flex-wrap: wrap;
            align-items: center; justify-content: center;
            gap: 20px;
        }
        
        .trust-item {
            display: flex; align-items: center; gap: 6px;
            font-size: 12px; color: var(--slate-500);
            font-weight: 500;
        }
        
        .trust-item svg {
            width: 14px; height: 14px;
            color: var(--green);
        }


/* ============================================================
   PHASE 9 — DARK MODE for auth pages (login / signup / verify /
   forgot / reset). Uses the same slate-ramp inversion strategy as
   common.css so the existing rules adapt automatically.
   ============================================================ */
:root[data-theme="dark"] {
    --slate-50:  #0b1220;
    --slate-100: #0f172a;
    --slate-200: #1e293b;
    --slate-300: #334155;
    --slate-400: #64748b;
    --slate-500: #94a3b8;
    --slate-600: #cbd5e1;
    --slate-700: #e2e8f0;
    --slate-800: #f1f5f9;
    --slate-900: #f8fafc;
    --ams-blue-light: #4FC3F7;
}

/* Hard-coded white surfaces on the auth-page right panel — flip them */
[data-theme="dark"] body { background: #0f172a; color: #f1f5f9; }
[data-theme="dark"] .right-panel,
[data-theme="dark"] .auth-card,
[data-theme="dark"] .form-card,
[data-theme="dark"] .login-card,
[data-theme="dark"] .signup-card { background: #1e293b; border-color: #334155; color: #f1f5f9; }
[data-theme="dark"] .form-input,
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="tel"],
[data-theme="dark"] input[type="password"] {
    background: #0f172a; color: #f1f5f9; border-color: #334155;
}
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder { color: #94a3b8; }

/* ============================================================
   Auth pages — "ready" button state for the primary CTA.
   Used by both login.html (always-on) and signup.html (when the
   form passes inline validation). Gives the gradient AMS Blue
   look + a clearer hover so the button feels alive.
   ============================================================ */
.submit-btn.btn-ready {
    background: linear-gradient(135deg, var(--ams-blue) 0%, var(--ams-blue-dark) 100%);
    box-shadow: 0 4px 15px rgba(3, 169, 244, 0.4);
    transform: translateY(-1px);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.submit-btn.btn-ready:hover {
    background: linear-gradient(135deg, var(--ams-blue-dark) 0%, #01579B 100%);
    box-shadow: 0 6px 20px rgba(3, 169, 244, 0.55);
    transform: translateY(-2px);
}

/* ============================================================
   PHASE 22 · BUNDLE 4 — mobile hardening for the standalone auth
   pages (login / signup / forgot / reset) which use style.css.
   16px+ stops iOS Safari from auto-zooming the focused field;
   full-width inputs + 44px submit target. Desktop untouched.
   ============================================================ */
@media (max-width: 768px) {
    .form-input,
    input:not([type="checkbox"]):not([type="radio"]),
    select,
    textarea {
        font-size: 16px;
        width: 100%;
        box-sizing: border-box;
    }
    .submit-btn,
    button {
        min-height: 44px;
    }
}
.submit-btn.btn-ready:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 3px 10px rgba(3, 169, 244, 0.35);
}