/* ============================================================
   auth.css  —  Records Referee
   Auth layout: login, register, forgot/reset password, verify
   ============================================================ */

/* ── Auth layout shell ───────────────────────────────────── */
.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

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

/* ── Left brand panel ────────────────────────────────────── */
.auth-brand {
    position: relative;
    background: var(--clr-navy);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
    overflow: hidden;
}

.auth-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(46,196,182,.18) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 80% 20%, rgba(46,196,182,.1) 0%, transparent 60%);
    pointer-events: none;
}

/* Decorative grid lines */
.auth-brand::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.auth-brand-top {
    position: relative;
    z-index: 1;
}

.auth-brand-logo {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.auth-brand-icon {
    width: 44px;
    height: 44px;
    background: var(--clr-teal);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.auth-brand-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: white;
    letter-spacing: -.01em;
}

.auth-brand-center {
    position: relative;
    z-index: 1;
}

.auth-brand-headline {
    font-family: var(--font-display);
    font-size: 2.6rem;
    color: white;
    line-height: 1.2;
    letter-spacing: -.02em;
    margin-bottom: 1.25rem;
}

.auth-brand-headline em {
    color: var(--clr-teal);
    font-style: normal;
}

.auth-brand-sub {
    font-size: .95rem;
    color: rgba(255,255,255,.6);
    line-height: 1.7;
    max-width: 360px;
}

.auth-brand-features {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-top: 2rem;
}

.auth-brand-feature {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .875rem;
    color: rgba(255,255,255,.7);
}

.auth-brand-feature i {
    width: 24px;
    height: 24px;
    background: rgba(46,196,182,.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-teal);
    font-size: .8rem;
    flex-shrink: 0;
}

.auth-brand-bottom {
    position: relative;
    z-index: 1;
    font-size: .78rem;
    color: rgba(255,255,255,.3);
}

/* ── Right form panel ────────────────────────────────────── */
.auth-form-panel {
    background: var(--clr-bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    overflow-y: auto;
}

.auth-form-wrap {
    width: 100%;
    max-width: 440px;
}

.auth-form-header {
    margin-bottom: 2rem;
}

.auth-form-eyebrow {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--clr-teal);
    margin-bottom: .5rem;
}

.auth-form-title {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--clr-navy);
    line-height: 1.15;
    letter-spacing: -.02em;
    margin-bottom: .5rem;
}

.auth-form-subtitle {
    font-size: .9rem;
    color: var(--clr-text-muted);
    line-height: 1.6;
}

/* ── Form group spacing ──────────────────────────────────── */
.form-group { margin-bottom: 1.1rem; }

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

/* ── Divider ─────────────────────────────────────────────── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.5rem 0;
    color: var(--clr-text-light);
    font-size: .8rem;
}

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

/* ── Switch link (sign in / sign up toggle) ──────────────── */
.auth-switch {
    text-align: center;
    margin-top: 1.75rem;
    font-size: .875rem;
    color: var(--clr-text-muted);
}

.auth-switch a {
    color: var(--clr-teal);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition);
}

.auth-switch a:hover { color: var(--clr-teal-dark); }

/* ── Password strength bar ───────────────────────────────── */
.pw-strength {
    margin-top: .5rem;
}

.pw-strength-bar {
    height: 3px;
    border-radius: 2px;
    background: var(--clr-border);
    overflow: hidden;
}

.pw-strength-fill {
    height: 100%;
    border-radius: 2px;
    width: 0%;
    transition: width .3s ease, background .3s ease;
}

.pw-strength-label {
    font-size: .73rem;
    color: var(--clr-text-muted);
    margin-top: .3rem;
}

/* ── Verify email page ───────────────────────────────────── */
.verify-card {
    max-width: 420px;
    margin: auto;
    text-align: center;
    padding: 3rem 2rem;
}

.verify-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.verify-icon.success {
    background: var(--clr-success-bg);
    color: var(--clr-success);
}

.verify-icon.error {
    background: var(--clr-danger-bg);
    color: var(--clr-danger);
}

/* ── Terms & Privacy note ────────────────────────────────── */
.auth-terms {
    font-size: .76rem;
    color: var(--clr-text-light);
    text-align: center;
    margin-top: 1rem;
    line-height: 1.5;
}

.auth-terms a {
    color: var(--clr-text-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}
