/* ==========================================================================
 * auth-modal.css
 * Estilos de los modales de autenticacion (login / registro) usados en
 * tfb.php. Se muestran sobre el formulario cuando un usuario sin sesion
 * selecciona "Pago Recurrente", para que pueda autenticarse SIN salir de la
 * pagina y sin perder los datos ya escritos.
 *
 * Depende de las variables (--radius, --muted, --danger, etc.) definidas en
 * formulario-style2.css, que debe cargarse en la misma pagina.
 * ========================================================================== */

.auth-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 10000;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 40px 16px;
}
.auth-modal.open { display: flex; }
.auth-modal-box {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 32px;
    max-width: 480px;
    width: 100%;
    position: relative;
    margin: auto;
}
.auth-modal-box h2 { margin-top: 0; }
.auth-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    border: none;
    background: none;
    font-size: 26px;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
}
.auth-modal-alert {
    display: none;
    background: #fdecea;
    border: 1px solid var(--danger);
    color: var(--danger);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 18px;
    font-weight: 600;
}
.auth-modal-foot { margin-top: 16px; font-size: 14px; text-align: center; }
.auth-modal-foot a { cursor: pointer; }
