/* Auth Page Styles - Split Layout */
:root {
    /* Inherit/Match Project Variables */
    --accent-primary: #2332dd;
    --bg-body: #ffffff;
    --bg-card: #ffffff;
    --bg-input: #ffffff;
    --border-light: #e5e7eb;
    --text-primary: #111827;
    --text-secondary: #4b5563;

    /* Spacing */
    --radius-lg: 0.75rem;
    --radius-md: 0.5rem;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Split Layout */
.auth-split-layout {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100vh;
}

@media (min-width: 1024px) {
    .auth-split-layout {
        grid-template-columns: 1fr 1fr;
        height: 100vh;
        min-height: 100vh;
        overflow: hidden;
    }

    .auth-brand-section {
        min-height: 100vh;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .auth-form-section {
        height: 100vh;
        min-height: 100vh;
        align-items: flex-start;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 3rem 2rem;
    }

    .auth-card {
        max-width: 460px;
        padding-top: 0;
        padding-bottom: 3rem;
    }
}

/* Left Side - Branding/Hero */
.auth-brand-section {
    background: linear-gradient(rgba(35, 50, 221, 0.82), rgba(35, 50, 221, 0.82)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
}

.brand-header i {
    color: var(--accent-primary);
}

.auth-brand-section .brand-header,
.auth-brand-section .brand-header i,
.auth-brand-section .brand-content h1,
.auth-brand-section .brand-content p,
.auth-brand-section .brand-footer .text-muted {
    color: #ffffff;
}

.auth-brand-section .brand-content p,
.auth-brand-section .brand-footer .text-muted {
    opacity: 0.92;
}

.brand-content {
    max-width: 500px;
}

.brand-content h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.brand-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Right Side - Form */
.auth-form-section {
    background-color: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 2rem;
}

.auth-mobile-brand-card {
    display: none;
}

/* Typography & Utilities */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.hidden {
    display: none;
}

.text-2xl {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.text-muted {
    color: var(--text-secondary);
}

.text-sm {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
}

.font-medium {
    font-weight: 500;
}

.text-accent {
    color: var(--accent-primary);
}

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

.auth-intake-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 0.75rem;
    padding: 0.4rem 0.7rem;
    color: var(--accent-primary);
    background: rgba(35, 50, 221, 0.08);
    border: 1px solid rgba(35, 50, 221, 0.12);
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-intake-section {
    margin: 1.75rem 0 1.25rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(35, 50, 221, 0.08), rgba(35, 50, 221, 0.02));
    border: 1px solid rgba(35, 50, 221, 0.12);
    border-radius: var(--radius-lg);
}

.auth-intake-section h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 800;
}

.auth-intake-section p {
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.84rem;
    line-height: 1.5;
}

.auth-intake-eyebrow {
    color: var(--accent-primary) !important;
    font-size: 0.68rem !important;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-intake-disclaimer {
    margin-top: -0.25rem;
    color: var(--text-secondary);
    font-size: 0.78rem;
    line-height: 1.45;
}

.label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.input {
    width: 100%;
    appearance: none;
    background-color: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
}

.input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 1px var(--accent-primary);
}

.otp-input {
    padding-left: 1rem;
    text-align: center;
    letter-spacing: 0.5em;
    font-weight: 700;
    font-size: 1.25rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: #ffffff !important;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(35, 50, 221, 0.2);
}

.btn-ghost {
    background-color: transparent;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.btn-ghost:hover {
    color: var(--text-primary);
}

/* Links */
.link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
}

.link:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

/* Mobile Adjustments */
@media (max-width: 1023px) {
    body {
        background:
            radial-gradient(circle at top left, rgba(35, 50, 221, 0.14), transparent 34%),
            linear-gradient(180deg, #eff6ff 0%, #ffffff 44%);
    }

    .auth-brand-section {
        display: none;
    }

    .auth-form-section {
        padding: 1rem;
        align-items: flex-start;
        padding-top: 1.25rem;
    }

    .auth-card {
        max-width: 520px;
        padding: 1.25rem;
        background: rgba(255, 255, 255, 0.86);
        border: 1px solid rgba(35, 50, 221, 0.1);
        border-radius: 24px;
        box-shadow: 0 22px 60px rgba(35, 50, 221, 0.1);
        backdrop-filter: blur(12px);
    }

    .mobile-header {
        display: flex;
        justify-content: center;
        margin-bottom: 1rem;
    }

    .mobile-header .brand-header {
        padding: 0.55rem 0.9rem;
        background: #ffffff;
        border: 1px solid rgba(35, 50, 221, 0.12);
        border-radius: 999px;
        box-shadow: 0 10px 26px rgba(35, 50, 221, 0.1);
        font-size: 1rem;
        font-weight: 800;
    }

    .auth-mobile-brand-card {
        display: block;
        margin-bottom: 1.5rem;
        padding: 1.15rem;
        color: #ffffff;
        background:
            radial-gradient(circle at top right, rgba(147, 197, 253, 0.38), transparent 32%),
            linear-gradient(135deg, #111a86 0%, #2332dd 100%);
        border-radius: 22px;
        box-shadow: 0 18px 42px rgba(35, 50, 221, 0.22);
    }

    .auth-mobile-kicker {
        width: fit-content;
        margin: 0 0 0.75rem;
        padding: 0.38rem 0.7rem;
        color: #dbeafe;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 999px;
        font-size: 0.68rem;
        font-weight: 900;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    .auth-mobile-brand-card h1 {
        margin: 0;
        color: #ffffff;
        font-size: 1.72rem;
        font-weight: 900;
        line-height: 1.05;
        letter-spacing: -0.055em;
    }

    .auth-mobile-proof-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .auth-mobile-proof-grid span {
        display: grid;
        gap: 0.35rem;
        align-content: center;
        min-height: 68px;
        padding: 0.65rem 0.45rem;
        color: #eff6ff;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 14px;
        font-size: 0.72rem;
        font-weight: 850;
        line-height: 1.2;
        text-align: center;
    }

    .auth-mobile-proof-grid i {
        color: #ffffff;
        font-size: 1rem;
    }

    .text-2xl {
        font-size: 1.55rem;
        letter-spacing: -0.035em;
    }
}

@media (max-width: 390px) {
    .auth-card {
        padding: 1rem;
    }

    .auth-mobile-proof-grid {
        grid-template-columns: 1fr;
    }

    .auth-mobile-proof-grid span {
        min-height: auto;
        grid-template-columns: auto 1fr;
        align-items: center;
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .mobile-header {
        display: none;
    }
}