/* ═══════════════════════════════════════════════════════════════════════════
   Auth pages
   Login and register share one split layout: a brand panel that sells the
   product, and a form panel that gets out of the way. Scoped under .auth.
   ═══════════════════════════════════════════════════════════════════════════ */

.auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    background: var(--mud-palette-surface);
}

/* ── Brand panel ──────────────────────────────────────────────────────────── */
.auth__brand {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0F2C28 0%, #2B7B6D 60%, #46B98D 100%);
    color: #fff;
    padding: 56px 52px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth__brand::after {
    content: "";
    position: absolute;
    inset: -35% -25% auto auto;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.auth__logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.auth__pitch {
    position: relative;
    max-width: 30ch;
}

.auth__headline {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.6px;
}

.auth__sub {
    margin: 14px 0 0;
    font-size: 1.02rem;
    opacity: .9;
    line-height: 1.55;
}

.auth__points {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth__point {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .94rem;
    font-weight: 600;
}

.auth__point-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── Form panel ───────────────────────────────────────────────────────────── */
.auth__panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 28px;
    overflow-y: auto;
}

.auth__form {
    width: 100%;
    max-width: 400px;
}

.auth__title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -.3px;
}

.auth__lead {
    margin: 6px 0 26px;
    color: var(--mud-palette-text-secondary);
    font-size: .94rem;
}

.auth__alt {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--mud-palette-divider);
    text-align: center;
    font-size: .9rem;
    color: var(--mud-palette-text-secondary);
}

.auth__guest {
    margin-top: 10px;
    text-align: center;
}

/* Mobile shows the brand only as a compact header strip. */
.auth__mobile-brand {
    display: none;
}

/* ── Register: step indicator ─────────────────────────────────────────────── */
.steps {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 26px;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.step__dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--mud-palette-divider);
    color: var(--mud-palette-text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 700;
    background: var(--mud-palette-surface);
    flex-shrink: 0;
}

.step--done .step__dot {
    background: var(--mud-palette-primary);
    border-color: var(--mud-palette-primary);
    color: #fff;
}

.step--current .step__dot {
    border-color: var(--mud-palette-primary);
    color: var(--mud-palette-primary);
}

.step__label {
    font-size: .8rem;
    font-weight: 600;
    color: var(--mud-palette-text-secondary);
}

.step--current .step__label {
    color: var(--mud-palette-text-primary);
}

.step__line {
    flex: 1 1 auto;
    height: 2px;
    background: var(--mud-palette-divider);
    min-width: 12px;
}

.step__line--done {
    background: var(--mud-palette-primary);
}

/* ── OTP entry ────────────────────────────────────────────────────────────── */
.otp-note {
    background: var(--mud-palette-action-default-hover);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: .85rem;
    color: var(--mud-palette-text-secondary);
    margin-bottom: 18px;
}

.otp-note strong {
    color: var(--mud-palette-text-primary);
}

/* ── Narrow screens ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .auth {
        grid-template-columns: 1fr;
        min-height: 100vh;
    }

    /* The tall brand panel would push the form below the fold. */
    .auth__brand {
        display: none;
    }

    .auth__mobile-brand {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 22px 16px 6px;
        color: var(--mud-palette-primary);
        font-size: 1.2rem;
        font-weight: 800;
        letter-spacing: 1px;
    }

    .auth__panel {
        padding: 16px 18px 32px;
        align-items: flex-start;
    }

    .auth__title { font-size: 1.45rem; }
}
