/* =============================================================================
 * ANTI-GRAVITY UI — GRUPO NEGREIROS ERP
 * Transportes y Encomiendas — Portal de Acceso Corporativo
 *
 * Tipografía: Roboto
 * Paleta: Azul (#1d4ed8), Verde (#059669), Blanco
 * Estilo: Relieve Alto Profesional (Glassmorphism de Alta Densidad y Contraste)
 * Centrado vertical absoluto simétrico
 * ============================================================================= */

:root {
    --gn-sans: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Paleta Corporativa */
    --accent-blue: #1d4ed8;
    --accent-blue-light: #3b82f6;
    --accent-blue-dark: #1e3a5f;
    --accent-green: #059669;
    --accent-green-light: #10b981;
    --accent-green-dark: #047857;

    /* Botón Relieve Alto */
    --btn-top: #2563eb;
    --btn-mid: #1d4ed8;
    --btn-base: #172554;

    /* Glass Material Alta Visibilidad */
    --glass-fill: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(248, 250, 252, 0.80) 45%, rgba(240, 249, 255, 0.85) 100%);
    --glass-blur: 26px;
    --glass-saturate: 180%;

    /* Tipografía y Contraste WCAG AAA */
    --text-headline: #0f172a;
    --text-title: #0f172a;
    --text-body: #1e293b;
    --text-muted: #334155;
    --text-dim: #64748b;

    /* Inputs */
    --input-bg: rgba(255, 255, 255, 0.90);
    --input-border: rgba(203, 213, 225, 0.95);
    --input-text: #0f172a;
    --input-placeholder: #64748b;
}

/* -----------------------------------------------------------------------------
 * 1. Reset Estricto 100vh
 * ----------------------------------------------------------------------------- */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: var(--gn-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* -----------------------------------------------------------------------------
 * 2. Viewport y Caustics
 * ----------------------------------------------------------------------------- */
.antigravity-viewport {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.antigravity-caustic-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: 
        radial-gradient(circle at 70% 40%, rgba(37, 99, 235, 0.05) 0%, transparent 60%),
        radial-gradient(circle at 30% 65%, rgba(16, 185, 129, 0.04) 0%, transparent 50%);
}

/* -----------------------------------------------------------------------------
 * 3. Barra Superior Minimalista (Sin Switcher, Solo Espaciador para Simetría)
 * ----------------------------------------------------------------------------- */
.antigravity-top-bar {
    width: 100%;
    height: 56px;
    padding: 0 2.5rem;
    position: relative;
    z-index: 30;
    flex-shrink: 0;
}

/* -----------------------------------------------------------------------------
 * 4. Barra Inferior (Solo Texto Puro sin Pill, Administrable con Año)
 * ----------------------------------------------------------------------------- */
.antigravity-bottom-bar {
    width: 100%;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 30;
    flex-shrink: 0;
    padding: 0 1.5rem;
}

.antigravity-bottom-text {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.025em;
    color: #0f172a;
    margin: 0;
    text-align: center;
    text-shadow: 
        0 1px 2px rgba(255, 255, 255, 0.95),
        0 2px 8px rgba(15, 23, 42, 0.12);
}

/* -----------------------------------------------------------------------------
 * 5. Escenario Central (Perfectamente Centrado Verticalmente)
 * ----------------------------------------------------------------------------- */
.antigravity-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    padding: 0 1.5rem;
    min-height: 0;
}

.antigravity-composer {
    width: 100%;
    max-width: 1160px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform-origin: center center;
}

/* Escalado suave para pantallas de altura reducida */
@media (max-height: 850px) and (min-width: 1041px) {
    .antigravity-composer {
        transform: scale(0.92);
    }
}
@media (max-height: 760px) and (min-width: 1041px) {
    .antigravity-composer {
        transform: scale(0.84);
    }
}
@media (max-height: 680px) and (min-width: 1041px) {
    .antigravity-composer {
        transform: scale(0.76);
    }
}

/* -----------------------------------------------------------------------------
 * 6. Monolito de Vidrio Continuo y Simétrico (Relieve Alto)
 * ----------------------------------------------------------------------------- */
.antigravity-monolith {
    position: relative;
    width: 1160px;
    height: 560px;
    margin: 0 auto;
    filter: 
        drop-shadow(0 25px 50px rgba(15, 23, 42, 0.22)) 
        drop-shadow(0 10px 20px rgba(15, 23, 42, 0.12));
}

.glass-monolith-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    clip-path: path('M 24 180 L 650 180 C 675 180 700 155 700 130 L 700 32 C 700 14.3 714.3 0 732 0 L 1128 0 C 1145.7 0 1160 14.3 1160 32 L 1160 528 C 1160 545.7 1145.7 560 1128 560 L 732 560 C 714.3 560 700 545.7 700 528 L 700 430 C 700 405 675 380 650 380 L 24 380 C 10.7 380 0 369.3 0 356 L 0 204 C 0 190.7 10.7 180 24 180 Z');
    background: var(--glass-fill);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    z-index: 1;
}

.glass-monolith-outline {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.glass-monolith-content {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: auto;
}

/* -----------------------------------------------------------------------------
 * 7. Ribbon de Métricas Ordenado (Icono Arriba, Métrica en Medio, Texto Abajo)
 * ----------------------------------------------------------------------------- */
.monolith-ribbon {
    position: absolute;
    left: 0;
    top: 180px;
    width: 700px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 1.5rem;
}

.metric-cell {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem 0.5rem;
    gap: 0.45rem;
}

/* Orbe de icono con relieve alto */
.metric-icon-orb {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(235, 245, 255, 0.6) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 6px 14px -2px rgba(29, 78, 216, 0.16),
        inset 0 1px 2px rgba(255, 255, 255, 0.95),
        inset 0 -1.5px 2px rgba(15, 23, 42, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    transition: all 0.25s ease;
}

.metric-icon-orb svg {
    width: 20px;
    height: 20px;
}

.metric-num-accent {
    font-family: var(--gn-sans);
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-light) 50%, var(--accent-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.7));
}

.metric-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-title);
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.metric-hairline-sep {
    width: 1.5px;
    height: 70px;
    background: linear-gradient(to bottom, transparent, rgba(203, 213, 225, 0.75), transparent);
}

/* -----------------------------------------------------------------------------
 * 8. Tarjeta Vertical de Login (Logo Más Arriba y Grande, Espaciado Generoso)
 * ----------------------------------------------------------------------------- */
.monolith-card {
    position: absolute;
    left: 700px;
    top: 0;
    width: 460px;
    height: 560px;
    padding: 1.6rem 2.8rem 1.4rem 2.8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Contenedor del Logo: Más arriba y con holgura */
.card-brand-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    margin-bottom: 1.35rem; /* Separación holgada con el título */
}

/* Logo más grande y elegante */
.card-brand-logo {
    height: 56px;
    width: auto;
    max-width: 275px;
    object-fit: contain;
    filter: none;
    transition: transform 0.25s ease;
}

.card-brand-logo:hover {
    transform: scale(1.02);
}

/* Título con espaciado respetado y holgado hacia el subtítulo */
.card-hero-title {
    font-family: var(--gn-sans);
    font-size: 27px;
    font-weight: 800;
    color: var(--text-title);
    margin: 0 0 0.65rem 0; /* Espacio holgado y limpio */
    letter-spacing: -0.02em;
    text-align: center;
    line-height: 1.2;
}

/* Subtítulo con espaciado holgado hacia los campos */
.card-hero-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 auto 1.45rem auto; /* Espacio limpio hacia el input */
    line-height: 1.45;
    font-weight: 400;
    white-space: nowrap;
    text-align: center;
}

/* -----------------------------------------------------------------------------
 * 9. Inputs con Relieve Alto y Contraste Total
 * ----------------------------------------------------------------------------- */
.glass-field-group {
    margin-bottom: 0.95rem;
}

.glass-field-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-body);
    margin-bottom: 0.35rem;
}

.glass-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.35rem;
}

.glass-forgot-link {
    font-size: 11.5px;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
}

.glass-forgot-link:hover {
    color: var(--accent-blue-dark);
    text-decoration: underline;
}

.glass-input-plane {
    background: var(--input-bg);
    border: 1.5px solid var(--input-border);
    border-radius: 12px;
    height: 46px;
    display: flex;
    align-items: center;
    padding: 0 0.85rem;
    box-shadow: 
        inset 0 2px 4px rgba(15, 23, 42, 0.05),
        0 1px 2px rgba(255, 255, 255, 0.7);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.glass-input-plane:focus-within {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 
        0 0 0 3.5px rgba(37, 99, 235, 0.18),
        inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.glass-input-icon-lead {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 0.65rem;
}

.lead-accent-icon {
    width: 18px;
    height: 18px;
    color: var(--accent-blue);
}

.glass-input-elem {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: var(--input-text);
    font-size: 13.5px;
    font-family: var(--gn-sans);
    font-weight: 500;
    padding: 0;
}

.glass-input-elem::placeholder {
    color: var(--input-placeholder);
    opacity: 0.9;
}

/* Ojito para Contraseña */
.eye-toggle-btn {
    background: none;
    border: none;
    padding: 0 0.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 0.5rem;
    color: var(--accent-blue);
    font-size: 17px;
    transition: all 0.15s ease;
}

.eye-toggle-btn:hover {
    color: var(--accent-blue-dark);
    transform: scale(1.15);
}

/* Alerta CapsLock */
.glass-caps-alert {
    margin-top: 0.35rem;
    font-size: 11.5px;
    color: #b45309;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Checkbox */
.glass-options-row {
    margin-bottom: 1.1rem;
    display: flex;
    align-items: center;
}

.glass-checkbox-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
    user-select: none;
}

.glass-checkbox-elem {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.glass-checkbox-custom {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1.5px solid rgba(148, 163, 184, 0.8);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.glass-checkbox-elem:checked + .glass-checkbox-custom {
    background: var(--accent-green);
    border-color: var(--accent-green);
}

.glass-checkbox-elem:checked + .glass-checkbox-custom::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-1px, -1px);
}

.glass-checkbox-text {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-body);
}

/* -----------------------------------------------------------------------------
 * 10. Botón de Acción con Relieve Alto y Profundidad Táctil
 * ----------------------------------------------------------------------------- */
.organic-stone-btn {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    background: linear-gradient(180deg, var(--btn-top) 0%, var(--btn-mid) 50%, var(--btn-base) 100%);
    box-shadow: 
        0 12px 24px -4px rgba(29, 78, 216, 0.45),
        0 4px 8px -2px rgba(29, 78, 216, 0.30),
        inset 0 1.5px 1.5px rgba(255, 255, 255, 0.40),
        inset 0 -2px 4px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.btn-engraved-text {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.015em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.btn-engraved-arrow {
    font-size: 17px;
    color: #ffffff;
    transition: transform 0.2s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.organic-stone-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 16px 30px -4px rgba(29, 78, 216, 0.58),
        0 6px 12px -2px rgba(29, 78, 216, 0.35),
        inset 0 1.5px 2px rgba(255, 255, 255, 0.50),
        inset 0 -2px 4px rgba(0, 0, 0, 0.25);
    filter: brightness(1.08);
}

.organic-stone-btn:hover .btn-engraved-arrow {
    transform: translateX(4px);
}

.organic-stone-btn:active {
    transform: translateY(1px);
    box-shadow: 
        0 6px 14px -2px rgba(29, 78, 216, 0.5),
        inset 0 2px 3px rgba(0, 0, 0, 0.4);
}

.organic-stone-btn.is-loading {
    pointer-events: none;
    opacity: 0.85;
}

.organic-stone-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(0.35);
    box-shadow:
        0 6px 14px -4px rgba(29, 78, 216, 0.2),
        0 2px 4px -2px rgba(29, 78, 216, 0.12),
        inset 0 1px 1px rgba(255, 255, 255, 0.25),
        inset 0 -1px 3px rgba(0, 0, 0, 0.2);
    transform: none;
}

.erp-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: erpSpin 0.7s linear infinite;
}

@keyframes erpSpin {
    to { transform: rotate(360deg); }
}

/* Nota de Seguridad */
.card-security-note {
    margin-top: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--text-muted);
    text-align: center;
    white-space: nowrap;
}

.note-shield-icon {
    width: 14px;
    height: 14px;
    color: var(--accent-green);
    flex-shrink: 0;
}

/* -----------------------------------------------------------------------------
 * 11. Toast Notifications Flotantes de Alto Relieve (Sin alterar la tarjeta)
 * ----------------------------------------------------------------------------- */
.antigravity-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 440px;
    width: calc(100vw - 48px);
}

.antigravity-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 14px;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 
        0 20px 40px -8px rgba(15, 23, 42, 0.28),
        0 8px 16px -4px rgba(15, 23, 42, 0.15),
        inset 0 1.5px 1px rgba(255, 255, 255, 0.95);
    animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: all 0.25s ease;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.antigravity-toast-danger {
    background: rgba(255, 255, 255, 0.96);
    border: 1.5px solid rgba(239, 68, 68, 0.65);
    border-left: 5px solid #dc2626;
}

.antigravity-toast-success {
    background: rgba(255, 255, 255, 0.96);
    border: 1.5px solid rgba(16, 185, 129, 0.65);
    border-left: 5px solid #059669;
}

.antigravity-toast-info {
    background: rgba(255, 255, 255, 0.96);
    border: 1.5px solid rgba(2, 132, 199, 0.65);
    border-left: 5px solid #0284c7;
}

.toast-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.antigravity-toast-danger .toast-icon-wrap {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.antigravity-toast-success .toast-icon-wrap {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.antigravity-toast-info .toast-icon-wrap {
    background: rgba(2, 132, 199, 0.12);
    color: #0284c7;
}

.toast-body-wrap {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 2px;
}

.toast-desc {
    font-size: 12.5px;
    font-weight: 500;
    color: #475569;
    line-height: 1.4;
}

.toast-close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    line-height: 1;
    transition: color 0.15s ease;
    margin-top: 3px;
}

.toast-close-btn:hover {
    color: #0f172a;
}

/* -----------------------------------------------------------------------------
 * 12. Tarjeta Auth Independiente (Forgot Password, Reset Password)
 *    Reutiliza inputs, botones y toasts del sistema anti-gravity
 * ----------------------------------------------------------------------------- */
.antigravity-auth-card {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: 2.5rem 2.8rem 2rem 2.8rem;
    background: var(--glass-fill);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    border-radius: 24px;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    box-shadow:
        0 25px 50px rgba(15, 23, 42, 0.22),
        0 10px 20px rgba(15, 23, 42, 0.12),
        inset 0 1.5px 1px rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.antigravity-auth-card .card-brand-logo-wrap {
    margin-bottom: 1.5rem;
}

.antigravity-auth-card .card-hero-title {
    font-size: 24px;
    margin-bottom: 0.5rem;
}

.antigravity-auth-card .card-hero-subtitle {
    margin-bottom: 1.6rem;
    white-space: normal;
}

/* -----------------------------------------------------------------------------
 * 13. Modo Responsivo para Dispositivos Móviles y Tablets
 * ----------------------------------------------------------------------------- */
@media (max-width: 1180px) {
    .antigravity-composer {
        transform: scale(0.88);
    }
}

@media (max-width: 1040px) {
    .antigravity-viewport {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }
    .antigravity-top-bar {
        padding: 0 1.25rem;
    }
    .antigravity-stage {
        padding: 1.5rem 1rem 2rem 1rem;
    }
    .antigravity-composer {
        align-items: center;
        margin-top: 0;
        transform: none !important;
    }
    .antigravity-monolith {
        width: 100%;
        max-width: 480px;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }
    .glass-monolith-backdrop,
    .glass-monolith-outline {
        display: none;
    }
    .glass-monolith-content {
        position: static;
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
        width: 100%;
    }
    .monolith-ribbon {
        position: static;
        width: 100%;
        height: auto;
        border-radius: 20px;
        border: 1.5px solid rgba(255, 255, 255, 0.8);
        background: var(--glass-fill);
        backdrop-filter: blur(var(--glass-blur));
        flex-direction: column;
        padding: 1.25rem 1rem;
    }
    .metric-hairline-sep {
        width: 85%;
        height: 1px;
        margin: 0.5rem auto;
    }
    .monolith-card {
        position: static;
        width: 100%;
        height: auto;
        border-radius: 24px;
        border: 1.5px solid rgba(255, 255, 255, 0.8);
        background: var(--glass-fill);
        backdrop-filter: blur(var(--glass-blur));
        padding: 2rem 1.5rem;
    }
    .antigravity-auth-card {
        max-width: 100%;
        padding: 2rem 1.25rem;
        border-radius: 20px;
    }
}


/* -----------------------------------------------------------------------------
 * Fondos del login: fundido entre imágenes con un acercamiento lento (administrables
 * en Marca y app). Con "reducir movimiento" la primera queda fija.
 * ----------------------------------------------------------------------------- */
.auth-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #1f2937;
}

.auth-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.8s ease-in-out;
    will-change: opacity, transform;
}

.auth-slide.is-active {
    opacity: 1;
    animation: auth-slide-zoom var(--slide-ms, 9800ms) linear forwards;
}

/* La que sale se desvanece desde donde quedó su acercamiento, sin saltos */
.auth-slide.is-leaving {
    opacity: 0;
    transform: scale(1.07);
}

@keyframes auth-slide-zoom {
    from { transform: scale(1); }
    to   { transform: scale(1.07); }
}

@media (prefers-reduced-motion: reduce) {
    .auth-slide { transition: none; }
    .auth-slide.is-active { animation: none; }
}
