﻿:root {
    --tv-navy-950: #0B1B33;
    --tv-navy-800: #14294B;
    --tv-navy-700: #1F3A63;
    --tv-amber-500: #F5A623;
    --tv-amber-600: #DB8B0B;
    --tv-paper: #F6F7FA;
    --tv-ink: #101828;
    --tv-ink-muted: #5B6472;
    --tv-line: #E3E7EE;
    --tv-danger: #D64545;
    --tv-success: #1E8E5A;
    --tv-radius: 12px;
}

.auth-page * {
    box-sizing: border-box;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    font-family: 'Inter', sans-serif;
    background: var(--tv-paper);
    color: var(--tv-ink);
}

.auth-brand {
    position: relative;
    flex: 0 0 42%;
    background: linear-gradient(165deg, var(--tv-navy-950), var(--tv-navy-700));
    color: #fff;
    padding: 3rem 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

    .auth-brand::before {
        content: "";
        position: absolute;
        top: -60px;
        right: -60px;
        width: 200px;
        height: 200px;
        background: repeating-linear-gradient(45deg, var(--tv-amber-500) 0 14px, transparent 14px 28px);
        opacity: 0.18;
        border-radius: 50%;
    }

.auth-brand-mark {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
}

    .auth-brand-mark .dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--tv-amber-500);
    }

.auth-brand-headline {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    line-height: 1.25;
    font-weight: 600;
    max-width: 22ch;
    margin: 2.5rem 0 2rem;
}

.auth-rail {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.auth-rail-step {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    opacity: 0.55;
}

    .auth-rail-step.is-active {
        opacity: 1;
    }

.auth-rail-node {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    flex: none;
}

.auth-rail-step.is-active .auth-rail-node {
    border-color: var(--tv-amber-500);
    background: var(--tv-amber-500);
    color: var(--tv-navy-950);
}

.auth-rail-line {
    width: 2px;
    height: 18px;
    background: rgba(255,255,255,0.25);
    margin-inline-start: 13px;
}

.auth-rail-label {
    font-size: 0.95rem;
}

.auth-brand-foot {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
    font-family: 'JetBrains Mono', monospace;
}

.auth-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    width: 100%;
    max-width: 400px;
}

.auth-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tv-amber-600);
    margin-bottom: 0.6rem;
}

.auth-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.auth-subtitle {
    color: var(--tv-ink-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.auth-field {
    margin-bottom: 1.25rem;
}

.auth-label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.4rem;
}

.auth-input-wrap {
    position: relative;
}

.auth-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--tv-line);
    border-radius: var(--tv-radius);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .auth-input:focus {
        outline: none;
        border-color: var(--tv-navy-700);
        box-shadow: 0 0 0 3px rgba(31, 58, 99, 0.15);
    }

    .auth-input:focus-visible {
        outline: 2px solid var(--tv-amber-500);
        outline-offset: 2px;
    }

.auth-toggle-visibility {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    inset-inline-end: 0.85rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--tv-ink-muted);
    padding: 0.35rem;
}

    .auth-toggle-visibility:hover {
        color: var(--tv-navy-700);
    }

.auth-btn {
    width: 100%;
    padding: 0.85rem 1rem;
    border: none;
    border-radius: var(--tv-radius);
    background: var(--tv-navy-800);
    color: #fff;
    font-weight: 700;
    font-size: 0.98rem;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
    margin-top: 0.25rem;
}

    .auth-btn:hover {
        background: var(--tv-navy-700);
    }

    .auth-btn:active {
        transform: translateY(1px);
    }

    .auth-btn:disabled {
        opacity: 0.65;
        cursor: not-allowed;
    }

.auth-link-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.25rem 0 0;
    font-size: 0.875rem;
}

.auth-link {
    color: var(--tv-navy-700);
    text-decoration: none;
    font-weight: 600;
}

    .auth-link:hover {
        text-decoration: underline;
    }

.auth-divider {
    border: none;
    border-top: 1px solid var(--tv-line);
    margin: 1.75rem 0;
}

.auth-alert {
    border-radius: var(--tv-radius);
    padding: 0.85rem 1rem;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    border-inline-start: 4px solid transparent;
}

.auth-alert-success {
    background: rgba(30, 142, 90, 0.1);
    color: #14512F;
    border-inline-start-color: var(--tv-success);
}

.auth-alert-danger {
    background: rgba(214, 69, 69, 0.1);
    color: #7A2323;
    border-inline-start-color: var(--tv-danger);
}

.auth-alert-warning {
    background: rgba(245, 166, 35, 0.12);
    color: #7A4E0B;
    border-inline-start-color: var(--tv-amber-500);
}

@media (prefers-reduced-motion: reduce) {
    .auth-btn, .auth-input, .auth-toggle-visibility {
        transition: none;
    }
}

@media (max-width: 900px) {
    .auth-brand {
        display: none;
    }

    .auth-panel {
        padding: 1.5rem;
    }
}

@media (max-width: 420px) {
    .auth-title {
        font-size: 1.5rem;
    }

    .auth-card-wide {
        max-width: 560px;
    }
    .auth-page-scroll {
        height: 100vh;
        overflow: hidden;
    }

    .auth-panel-scroll {
        overflow-y: auto;
        height: 100vh;
        align-items: flex-start;
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
}
