:root {
    --auth-ink: #152238;
    --auth-muted: #718096;
    --auth-border: #e3e9f2;
    --auth-primary: #2563eb;
    --auth-primary-dark: #1d4ed8;
    --auth-teal: #0f9f8f;
}

* { box-sizing: border-box; }

body.auth-page {
    margin: 0;
    min-height: 100dvh;
    color: var(--auth-ink);
    background:
        radial-gradient(circle at 12% 16%, rgba(37, 99, 235, .15), transparent 34%),
        radial-gradient(circle at 92% 84%, rgba(15, 159, 143, .12), transparent 30%),
        #f5f8fc;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(360px, 470px);
    gap: clamp(48px, 8vw, 128px);
    align-items: center;
    width: min(1120px, calc(100% - 48px));
    min-height: 100dvh;
    margin: 0 auto;
    padding: 48px 0;
}

.auth-intro { padding: 24px 0; }

.auth-logo-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 28px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #13a894);
    box-shadow: 0 12px 26px rgba(37, 99, 235, .25);
    font-size: 25px;
}

.auth-eyebrow, .auth-card-kicker {
    margin: 0 0 12px;
    color: var(--auth-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.auth-intro h1 {
    margin: 0;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.12;
    letter-spacing: -.045em;
}

.auth-intro h1 span { color: var(--auth-primary); }

.auth-description {
    max-width: 510px;
    margin: 26px 0 0;
    color: var(--auth-muted);
    font-size: 16px;
    line-height: 1.9;
}

.auth-feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 34px;
}

.auth-feature-list span {
    border: 1px solid rgba(37, 99, 235, .14);
    border-radius: 999px;
    padding: 8px 13px;
    color: #47617f;
    background: rgba(255, 255, 255, .62);
    font-size: 12px;
}

.auth-card {
    border: 1px solid rgba(219, 227, 237, .9);
    border-radius: 22px;
    padding: clamp(28px, 4vw, 42px);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 24px 70px rgba(30, 61, 96, .13);
}

.auth-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.auth-card h2 {
    margin: 0;
    font-size: 27px;
    letter-spacing: -.025em;
}

.auth-status-dot {
    width: 10px;
    height: 10px;
    margin-top: 9px;
    border-radius: 50%;
    background: var(--auth-teal);
    box-shadow: 0 0 0 6px rgba(15, 159, 143, .1);
}

.auth-tabs {
    display: flex;
    gap: 24px;
    margin: 30px 0 24px;
    border-bottom: 1px solid var(--auth-border);
}

.auth-tab {
    border: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    padding: 0 0 12px;
    color: var(--auth-muted);
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 650;
}

.auth-tab.is-active {
    border-bottom-color: var(--auth-primary);
    color: var(--auth-primary);
}

.auth-form { display: grid; gap: 9px; }

.auth-form[hidden] { display: none; }

.auth-form label {
    margin-top: 8px;
    color: var(--auth-ink);
    font-size: 13px;
    font-weight: 700;
}

.auth-form input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    padding: 0 14px;
    color: var(--auth-ink);
    background: #fbfdff;
    font: inherit;
    outline: none;
    transition: border-color .18s, box-shadow .18s, background .18s;
}

.auth-form input::placeholder { color: #a5b1c0; }

.auth-form input:focus {
    border-color: var(--auth-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.auth-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    margin-top: 18px;
    border: 0;
    border-radius: 10px;
    padding: 0 16px 0 18px;
    color: #fff;
    background: var(--auth-primary);
    cursor: pointer;
    font: inherit;
    font-weight: 750;
    transition: background .18s, transform .18s;
}

.auth-submit:hover { background: var(--auth-primary-dark); transform: translateY(-1px); }
.auth-submit:disabled { cursor: wait; opacity: .65; transform: none; }

.auth-form-hint {
    margin: 7px 0 0;
    color: var(--auth-muted);
    font-size: 12px;
    line-height: 1.6;
}

.auth-feedback {
    min-height: 22px;
    margin-top: 14px;
    color: #c53030;
    font-size: 13px;
    line-height: 1.5;
}

.auth-feedback.is-success { color: var(--auth-teal); }

.auth-security-note {
    margin: 18px 0 0;
    color: #9aa7b7;
    font-size: 11px;
    text-align: center;
}

@media (max-width: 760px) {
    .auth-layout {
        grid-template-columns: 1fr;
        gap: 24px;
        width: min(480px, calc(100% - 32px));
        padding: 28px 0;
    }
    .auth-intro { padding: 0; text-align: center; }
    .auth-logo-mark { margin: 0 auto 20px; }
    .auth-intro h1 { font-size: 40px; }
    .auth-description { margin: 16px auto 0; font-size: 14px; }
    .auth-feature-list { justify-content: center; margin-top: 20px; }
}
