/* CopilotInterview auth pages — login / register / verify */
:root {
    --auth-navy: #060918;
    --auth-navy-mid: #0d1230;
    --auth-cyan: #00d9ff;
    --auth-cyan-dim: #67e8f9;
    --auth-card: #ffffff;
    --auth-text: #0f172a;
    --auth-muted: #64748b;
    --auth-border: #e2e8f0;
    --auth-error-bg: #fef2f2;
    --auth-error: #b91c1c;
    --auth-ok-bg: #ecfdf5;
    --auth-ok: #047857;
    --auth-tip-bg: #f0f9ff;
    --auth-tip-border: #7dd3fc;
    --auth-tip-text: #0c4a6e;
}

body.auth-page {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, system-ui, -apple-system, sans-serif;
    color: var(--auth-text);
    background: var(--auth-navy);
}

body.auth-page *,
body.auth-page *::before,
body.auth-page *::after {
    box-sizing: border-box;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    overflow: hidden;
}

.auth-brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    background:
        radial-gradient(ellipse 80% 60% at 20% 20%, rgba(0, 217, 255, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 80% 80%, rgba(176, 38, 255, 0.12) 0%, transparent 50%),
        linear-gradient(165deg, #060918 0%, #0d1230 45%, #101832 100%);
    color: #fff;
}

.auth-brand-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    opacity: 0.5;
}

.auth-brand-inner {
    position: relative;
    z-index: 1;
    max-width: 28rem;
}

.auth-brand-logo {
    display: inline-block;
    margin-bottom: 2rem;
}

.auth-brand-logo img {
    height: 4.5rem;
    width: auto;
    display: block;
}

.auth-brand-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(0, 217, 255, 0.12);
    border: 1px solid rgba(0, 217, 255, 0.35);
    color: var(--auth-cyan);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.auth-brand-title {
    font-family: "Space Grotesk", Inter, sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.85rem;
    letter-spacing: -0.02em;
}

.auth-brand-copy {
    margin: 0;
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.6;
}

.auth-brand-points {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.auth-brand-points li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: #cbd5e1;
    font-size: 0.92rem;
    line-height: 1.45;
}

.auth-brand-points li::before {
    content: '';
    flex-shrink: 0;
    width: 0.55rem;
    height: 0.55rem;
    margin-top: 0.4rem;
    border-radius: 50%;
    background: var(--auth-cyan);
    box-shadow: 0 0 12px rgba(0, 217, 255, 0.6);
}

.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
    background: #f1f5f9;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--auth-card);
    border-radius: 1.25rem;
    padding: 2rem 1.75rem 1.75rem;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 16px 40px rgba(15, 23, 42, 0.1);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.auth-card-wide {
    max-width: 480px;
}

.auth-mobile-logo {
    display: none;
    text-align: center;
    margin-bottom: 1.25rem;
}

.auth-mobile-logo img {
    height: 3.25rem;
    width: auto;
}

.auth-card-header {
    margin-bottom: 1.5rem;
}

.auth-card-header h1 {
    margin: 0 0 0.35rem;
    font-family: "Space Grotesk", Inter, sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--auth-text);
}

.auth-card-header p {
    margin: 0;
    color: var(--auth-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.auth-alert {
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.45;
    margin-bottom: 1.15rem;
}

.auth-alert a {
    font-weight: 600;
    color: inherit;
}

.auth-alert-error {
    background: var(--auth-error-bg);
    color: var(--auth-error);
    border: 1px solid #fecaca;
}

.auth-alert-success {
    background: var(--auth-ok-bg);
    color: var(--auth-ok);
    border: 1px solid #a7f3d0;
}

.auth-spam-tip {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.85rem 1rem;
    margin-bottom: 1.15rem;
    border-radius: 0.75rem;
    background: var(--auth-tip-bg);
    border: 1px solid var(--auth-tip-border);
    color: var(--auth-tip-text);
    font-size: 0.875rem;
    line-height: 1.45;
}

.auth-spam-tip-compact {
    margin-top: 0.25rem;
    margin-bottom: 0.85rem;
    padding: 0.7rem 0.85rem;
    font-size: 0.8125rem;
}

.auth-spam-tip strong {
    font-weight: 700;
}

.auth-spam-icon {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.4rem;
    background: rgba(0, 217, 255, 0.2);
    color: #0369a1;
    display: grid;
    place-items: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.auth-form .form-group {
    margin-bottom: 1rem;
}

.auth-form .form-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
}

.auth-form .form-control {
    width: 100%;
    box-sizing: border-box;
    min-height: 2.85rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--auth-border);
    border-radius: 0.7rem;
    background: #fff;
    font-size: 0.95rem;
    color: var(--auth-text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-form .form-control:focus {
    outline: none;
    border-color: var(--auth-cyan);
    box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.2);
}

.auth-form .form-hint {
    display: block;
    margin-top: 0.35rem;
    color: var(--auth-muted);
    font-size: 0.8rem;
}

.auth-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.auth-link {
    color: #0284c7;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
}

.auth-link:hover {
    text-decoration: underline;
    color: #0369a1;
}

.auth-actions {
    margin-top: 0.35rem;
}

.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    max-width: 100%;
    margin: 0;
    min-height: 2.95rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 0.975rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-btn:active {
    transform: translateY(1px);
}

.auth-btn-primary {
    background: linear-gradient(135deg, #00d9ff 0%, #0891b2 100%);
    color: #042f2e;
    box-shadow: 0 8px 20px rgba(0, 217, 255, 0.28);
}

.auth-btn-primary:hover {
    box-shadow: 0 10px 24px rgba(0, 217, 255, 0.38);
}

.auth-btn-google {
    display: flex;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background: #fff;
    color: var(--auth-text);
    border: 1px solid var(--auth-border);
    box-shadow: none;
}

.auth-btn-google:hover {
    background: #f8fafc;
}

.auth-btn-google img {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 1.15rem 0;
    color: var(--auth-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--auth-border);
}

.auth-footer {
    margin-top: 1.35rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--auth-muted);
    line-height: 1.55;
}

.auth-footer p {
    margin: 0.4rem 0 0;
}

.auth-footer a {
    color: #0284c7;
    font-weight: 600;
    text-decoration: none;
}

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

.auth-forgot-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.4rem;
}

@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

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

    .auth-mobile-logo {
        display: block;
    }

    .auth-form-panel {
        padding: 1.5rem 1rem 2rem;
        background:
            radial-gradient(ellipse 90% 50% at 50% -10%, rgba(0, 217, 255, 0.2) 0%, transparent 55%),
            var(--auth-navy);
        min-height: 100vh;
        align-items: flex-start;
        padding-top: 2.5rem;
    }

    .auth-card {
        margin-top: 0;
    }
}

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

    .auth-card {
        padding: 1.5rem 1.15rem 1.35rem;
        border-radius: 1rem;
    }
}
