/* Login split-screen — réplica exacta de la estructura de Gestioncob (boletería):
   panel izquierdo con imagen (68%), panel derecho blanco de acceso (32%).
   Mobile-first: en móvil solo se ve el panel de acceso (la imagen se oculta). */

:root {
    --auth-tinta: #0f172a;        /* slate-900 */
    --auth-tinta-hover: #1e293b;  /* slate-800 */
    --auth-gris-label: #475569;   /* slate-600 */
    --auth-gris-sub: #94a3b8;     /* slate-400 */
    --auth-borde: #e2e8f0;        /* slate-200 */
    --auth-campo-bg: #f8fafc;     /* slate-50 */
    --auth-azul-enlace: #2563eb;  /* blue-600 */
}

.auth {
    min-height: 100vh;
    display: flex;
}

/* ── Panel visual izquierdo (imagen) ── */
.auth__visual {
    display: none;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #0a1929 0%, #102a43 35%, #1a3a54 60%, #0d2137 100%);
}
.auth__visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.auth__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(10,25,41,0.72) 0%, rgba(16,42,67,0.35) 45%, rgba(16,42,67,0.10) 100%);
}
.auth__copyright {
    position: absolute;
    bottom: 24px; left: 32px;
    z-index: 2;
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* ── Panel de acceso derecho ── */
.auth__panel {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;   /* login arriba */
    align-items: center;
    background: #fff;
    padding: 64px 24px 40px;
    overflow-y: auto;
}

/* Split imagen 70% / login 30% (flex: 0 0 fija el ancho sin que el contenido
   lo altere; la regla va DESPUÉS de las bases para ganar la cascada). */
@media (min-width: 1024px) {
    .auth__visual {
        display: block;
        flex: 0 0 70%;
        max-width: 70%;
    }
    .auth__panel {
        flex: 0 0 30%;
        max-width: 30%;
        padding-top: 72px;
    }
}
.auth__caja {
    width: 100%;
    max-width: 384px;   /* max-w-sm */
    padding: 0 8px;
}
.auth__logo {
    display: block;
    height: 80px;        /* h-20 */
    width: auto;
    max-width: 260px;
    margin: 0 auto 32px;
    object-fit: contain;
}
.auth__logo-texto {
    display: block;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--auth-tinta);
    margin-bottom: 32px;
    letter-spacing: 1px;
}
.auth__titulo {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--auth-tinta);
    letter-spacing: -0.02em;
    margin: 0;
}
.auth__subtitulo {
    text-align: center;
    color: var(--auth-gris-sub);
    font-size: 0.875rem;
    margin: 6px 0 32px;
}
.auth__campo { margin-bottom: 20px; }
.auth__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--auth-gris-label);
    margin-bottom: 8px;
}
.auth__label-fila {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.auth__label-fila .auth__label { margin-bottom: 0; }
.auth__input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--auth-borde);
    border-radius: 8px;
    background: var(--auth-campo-bg);
    color: var(--auth-tinta);
    font-size: 0.9rem;
    transition: border-color .2s, box-shadow .2s;
}
.auth__input::placeholder { color: #cbd5e1; }
.auth__input:focus {
    outline: none;
    border-color: #94a3b8;
    box-shadow: 0 0 0 3px #f1f5f9;
    background: #fff;
}
.auth__campo-clave { position: relative; }
.auth__campo-clave .auth__input { padding-right: 44px; }
.auth__ver {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--auth-gris-sub);
    font-size: 1.1rem;
    line-height: 1;
    padding: 4px;
}
.auth__ver:hover { color: var(--auth-gris-label); }
.auth__enlace {
    color: var(--auth-azul-enlace);
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
}
.auth__enlace:hover { text-decoration: underline; }
.auth__recordar {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #64748b;
    font-size: 0.875rem;
    cursor: pointer;
    margin-bottom: 20px;
    user-select: none;
}
.auth__recordar input { width: 16px; height: 16px; accent-color: var(--auth-tinta); }
.auth__boton {
    width: 100%;
    padding: 14px 24px;
    background: var(--auth-tinta);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    transition: background .2s, box-shadow .2s, transform .1s;
}
.auth__boton:hover { background: var(--auth-tinta-hover); box-shadow: 0 4px 10px rgba(0,0,0,0.12); }
.auth__boton:active { transform: scale(0.98); }
.auth__secundario {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: #64748b;
}
.auth__pie {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}
.auth__pie-tagline { font-weight: 700; color: var(--auth-tinta); font-size: 0.95rem; margin: 0 0 4px; }
.auth__pie-copy { color: #cbd5e1; font-size: 0.75rem; margin: 0; }

/* Mensajes */
.auth__error, .auth__ok {
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    text-align: left;
}
.auth__error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.auth__ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }

/* Stepper (login del asociado en 2 pasos) */
.auth__stepper {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
    font-size: 0.82rem;
}
.auth__paso { color: var(--auth-gris-sub); }
.auth__paso--activo { color: var(--auth-tinta); font-weight: 700; }
