/* Pantallas de autenticación: login, set-password, error */

body.auth { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: var(--sp-6); }

.auth-shell {
    width: 100%;
    max-width: 460px;
}

.auth-shell.split {
    max-width: 880px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    background: var(--color-surface);
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.auth-card {
    background: var(--color-surface);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-md);
    padding: var(--sp-9);
}
.auth-shell.split .auth-card {
    box-shadow: none; border-radius: 0;
}

.auth-card .brand { margin-bottom: var(--sp-7); }
.auth-card h1 {
    font-size: var(--fs-30);
    margin-bottom: var(--sp-2);
}
.auth-card .lead {
    color: var(--color-text-muted);
    margin-bottom: var(--sp-7);
}

.auth-card .field { margin-bottom: var(--sp-4); }
.auth-card .row.between { margin-top: -10px; margin-bottom: var(--sp-3); }
.auth-card .btn.primary { width: 100%; padding: 14px 20px; }

.auth-side {
    background: var(--color-nebula);
    color: var(--color-text-inverse);
    padding: var(--sp-9);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center;
    background-image:
        radial-gradient(circle at 30% 20%, rgba(45, 108, 223, 0.25), transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(107, 61, 240, 0.2), transparent 60%);
}
.auth-side .glyph {
    width: 56px; height: 56px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--r-lg);
    display: grid; place-items: center;
    color: var(--color-orbit);
    font-size: 28px;
    margin-bottom: var(--sp-6);
}
.auth-side h2 {
    color: var(--color-text-inverse);
    font-size: var(--fs-24);
    margin-bottom: var(--sp-3);
    line-height: 1.25;
}
.auth-side p {
    color: rgba(255,255,255,.7);
    max-width: 280px;
    margin: 0 auto var(--sp-6);
}
.auth-side .stamp {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: var(--fs-12);
    color: rgba(255,255,255,.45);
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: var(--sp-3);
    width: 70%;
}

/* Strength meter */
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 8px; }
.pw-meter > div {
    height: 4px; border-radius: var(--r-pill); background: var(--color-border);
}
.pw-meter[data-strength="1"] > div:nth-child(1) { background: #ef4444; }
.pw-meter[data-strength="2"] > div:nth-child(-n+2) { background: #f59e0b; }
.pw-meter[data-strength="3"] > div:nth-child(-n+3) { background: #84cc16; }
.pw-meter[data-strength="4"] > div { background: #22c55e; }

.pw-hint { margin-top: 6px; font-size: var(--fs-12); color: var(--color-text-soft); }

/* Footer del card de login */
.auth-footer {
    margin-top: var(--sp-7);
    text-align: center;
    color: var(--color-text-soft);
    font-size: var(--fs-13);
}
.auth-page-footer {
    position: fixed; bottom: var(--sp-6); left: 0; right: 0;
    display: flex; justify-content: space-between; padding: 0 var(--sp-7);
    color: var(--color-text-faint); font-size: var(--fs-12);
}
.auth-page-footer a { color: var(--color-text-faint); margin-left: var(--sp-4); }

@media (max-width: 720px) {
    .auth-shell.split { grid-template-columns: 1fr; max-width: 460px; }
    .auth-side { display: none; }
}
