/* login.css — EX4.28 Split-Screen Login */

/* --lp-* tokens (minimal subset, source of truth: landing.css :root) */
:root {
    --lp-bg:              #0F172A;
    --lp-text:            #F8FAFC;
    --lp-text-secondary:  #94A3B8;
    --lp-text-muted:      #64748B;
    --lp-accent:          #3B82F6;
    --lp-border:          #334155;
}

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

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: #f8f9fa;
    color: #1a1a2e;
    min-height: 100vh;
    margin: 0;
}

/* === Split Layout === */
.login-split {
    display: flex;
    min-height: 100vh;
}

.login-brand {
    flex: 0 0 55%;
    background: var(--lp-bg);
    color: var(--lp-text);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

.login-brand__content {
    max-width: 440px;
}

.login-brand__logo {
    height: 48px;
    width: auto;
    margin-bottom: 24px;
}

.login-brand__tagline {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 32px;
    color: var(--lp-text);
}

.login-brand__facts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-brand__facts span {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--lp-text-secondary);
}

.login-brand__facts span::before {
    content: "\2713";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.15);
    color: var(--lp-accent);
    font-size: 13px;
    flex-shrink: 0;
}

.login-form-panel {
    flex: 1;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

/* === Auth Container (from original inline styles) === */
.auth-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 24px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
}

h1 {
    text-align: center;
    margin-bottom: 8px;
    color: #2563EB;
    font-size: 24px;
}

.brand-logo {
    height: 28px;
    width: auto;
    vertical-align: middle;
    margin-right: 6px;
}

.subtitle {
    text-align: center;
    color: #6b7280;
    margin-bottom: 32px;
    font-size: 14px;
}

.tab-bar {
    display: flex;
    margin-bottom: 24px;
    border-bottom: 2px solid #e5e7eb;
}

.tab-bar button {
    flex: 1;
    background: none;
    border: none;
    color: #6b7280;
    padding: 10px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.tab-bar button.active {
    color: #2563EB;
    border-bottom-color: #2563EB;
}

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

label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #6b7280;
}

input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #ffffff;
    color: #1a1a2e;
    font-size: 14px;
}

input:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: #2563EB;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    margin-top: 8px;
}

.btn-primary:hover { background: #1D4ED8; }
.btn-primary:disabled { background: #9ca3af; cursor: not-allowed; }

.btn-primary:focus-visible {
    outline: 2px solid #2563EB;
    outline-offset: 2px;
}

.message {
    margin-top: 16px;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    display: none;
}

.message.error { background: #fef2f2; color: #dc2626; display: block; }
.message.success { background: #f0fdf4; color: #16a34a; display: block; }

.forgot-link {
    display: block;
    text-align: right;
    margin-top: 8px;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.forgot-link:hover { color: #2563EB; }

.forgot-link:focus-visible {
    outline: 2px solid #2563EB;
    outline-offset: 2px;
}

#recover-form {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.reset-banner {
    margin-bottom: 16px;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    background: #f0fdf4;
    color: #16a34a;
    text-align: center;
    display: none;
}

.waitlist-hint {
    margin-top: 24px;
    padding: 14px;
    background: #fef2f4;
    border-radius: 6px;
    font-size: 13px;
    color: #6b7280;
    text-align: center;
    line-height: 1.5;
}

.waitlist-hint a {
    color: #2563EB;
    text-decoration: none;
    font-weight: 600;
}

.waitlist-hint a:hover { text-decoration: underline; }

.security-hint {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 20px;
}

/* === Focus visible for tab-bar buttons === */
.tab-bar button:focus-visible {
    outline: 2px solid #2563EB;
    outline-offset: -2px;
}

/* === Responsive: Mobile (<768px) === */
@media (max-width: 768px) {
    .login-split {
        flex-direction: column;
    }

    .login-brand {
        flex: none;
        padding: 32px 24px;
    }

    .login-brand__tagline {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .login-brand__facts {
        gap: 10px;
    }

    .login-brand__facts span {
        font-size: 13px;
    }

    .login-form-panel {
        flex: 1;
        padding: 24px 16px;
    }

    .auth-container {
        padding: 24px;
    }
}
