/**
 * ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 * AUTH MDAT - Estilos para Autenticación
 * ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 *
 * Estilo: App Móvil tipo Uber
 * Características:
 * - Full-screen layout
 * - Edge-to-edge design
 * - Espaciado generoso (24-32px)
 * - Inputs grandes (56px height)
 * - Tipografía clara (16px+)
 * - Micro-interacciones suaves
 *
 * Paleta:
 * - Verde Neón: #00ff9d
 * - Negro: #0a0a0a
 * - Blanco: #ffffff
 *
 * ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   🎨 VARIABLES CSS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

:root {
    /* 🟢 Verde Neón - Primary */
    --auth-primary: #00ff9d;
    --auth-primary-dark: #00cc7d;
    --auth-primary-light: #33ffb3;
    --auth-primary-rgb: 0, 255, 157;

    /* ⚫ Negro */
    --auth-black: #0a0a0a;
    --auth-black-soft: #1a1a1a;
    --auth-black-light: #2a2a2a;

    /* ⚪ Blanco */
    --auth-white: #ffffff;
    --auth-white-off: #f8f9fa;

    /* 🩶 Grises */
    --auth-gray-50: #f9fafb;
    --auth-gray-100: #f3f4f6;
    --auth-gray-200: #e5e7eb;
    --auth-gray-300: #d1d5db;
    --auth-gray-400: #9ca3af;
    --auth-gray-500: #6c757d;
    --auth-gray-600: #4b5563;
    --auth-gray-700: #374151;
    --auth-gray-800: #1f2937;
    --auth-gray-900: #111827;

    /* 🔴 Estados */
    --auth-error: #ef4444;
    --auth-success: #10b981;
    --auth-warning: #f59e0b;
    --auth-info: #3b82f6;

    /* 📏 Espaciado */
    --auth-spacing-xs: 8px;
    --auth-spacing-sm: 12px;
    --auth-spacing-md: 16px;
    --auth-spacing-lg: 24px;
    --auth-spacing-xl: 32px;
    --auth-spacing-2xl: 48px;

    /* 🔤 Tipografía */
    --auth-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --auth-font-size-xs: 12px;
    --auth-font-size-sm: 14px;
    --auth-font-size-base: 16px;
    --auth-font-size-lg: 18px;
    --auth-font-size-xl: 20px;
    --auth-font-size-2xl: 24px;
    --auth-font-size-3xl: 32px;

    /* 🎭 Sombras */
    --auth-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --auth-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --auth-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --auth-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --auth-shadow-glow: 0 0 20px rgba(var(--auth-primary-rgb), 0.3);

    /* 🌐 Border Radius */
    --auth-radius-sm: 8px;
    --auth-radius-md: 12px;
    --auth-radius-lg: 16px;
    --auth-radius-xl: 24px;
    --auth-radius-full: 9999px;

    /* ⚡ Transiciones */
    --auth-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --auth-transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --auth-transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* 📱 Dimensiones Mobile */
    --auth-input-height: 56px;
    --auth-button-height: 56px;
    --auth-logo-height: 40px;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   🏗️ LAYOUT PRINCIPAL
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.auth-wrapper {
    min-height: 100vh;
    min-height: -webkit-fill-available; /* Fallback iOS sin bloquear scroll */
    display: flex;
    flex-direction: column;
    background: var(--auth-white);
    padding: var(--auth-spacing-md);
    overflow-x: hidden;
    /* SIN overflow-y: auto → el body/documento scrollea naturalmente.
       Con overflow-y en el wrapper, el mousewheel en desktop va al documento
       primero (que no puede scrollear) y la rueda del mouse no funciona. */
}

/* Logo Container */
.auth-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--auth-spacing-lg) 0;
    flex-shrink: 0;
}

/* Logo Container con espacio reducido */
.auth-logo-reduced {
    padding: var(--auth-spacing-sm) 0;
}

.auth-logo-link {
    display: inline-block;
    transition: transform var(--auth-transition-base);
}

.auth-logo-link:hover {
    transform: scale(1.05);
}

.auth-logo-img {
    height: var(--auth-logo-height);
    width: auto;
    display: block;
}

/* Content Area */
.auth-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding-bottom: var(--auth-spacing-xl);
}

/* Footer */
.auth-footer {
    flex-shrink: 0;
    text-align: center;
    padding: var(--auth-spacing-lg) 0;
    border-top: 1px solid var(--auth-gray-200);
    margin-top: auto;
}

.auth-footer-text {
    font-size: var(--auth-font-size-sm);
    color: var(--auth-gray-500);
    margin-bottom: var(--auth-spacing-xs);
}

.auth-footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--auth-spacing-sm);
}

.auth-footer-link {
    font-size: var(--auth-font-size-sm);
    color: var(--auth-gray-600);
    text-decoration: none;
    transition: color var(--auth-transition-fast);
}

.auth-footer-link:hover {
    color: var(--auth-primary);
    text-decoration: none;
}

.auth-footer-divider {
    color: var(--auth-gray-400);
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   📦 CARD & CONTAINERS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.auth-card {
    background: var(--auth-white);
    border-radius: var(--auth-radius-lg);
    box-shadow: var(--auth-shadow-lg);
    padding: var(--auth-spacing-xl);
    margin-bottom: var(--auth-spacing-lg);
    border: 1px solid var(--auth-gray-100);
    transition: transform var(--auth-transition-base),
                box-shadow var(--auth-transition-base);
}

.auth-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--auth-shadow-xl);
}

/* Header dentro del card */
.auth-header {
    text-align: center;
    margin-bottom: var(--auth-spacing-xl);
}

.auth-header-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--auth-spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--auth-primary-light), var(--auth-primary));
    border-radius: var(--auth-radius-lg);
    color: var(--auth-white);
    font-size: 32px;
    animation: pulseGlow 2s ease-in-out infinite;
}

.auth-header-title {
    font-size: var(--auth-font-size-2xl);
    font-weight: 700;
    color: var(--auth-black);
    margin-bottom: var(--auth-spacing-sm);
    line-height: 1.2;
}

.auth-header-subtitle {
    font-size: var(--auth-font-size-base);
    color: var(--auth-gray-600);
    line-height: 1.5;
    margin-bottom: 0;
}

/* Link de "Volver" */
.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--auth-spacing-xs);
    font-size: var(--auth-font-size-base);
    color: var(--auth-gray-600);
    text-decoration: none;
    margin-bottom: var(--auth-spacing-lg);
    transition: color var(--auth-transition-fast),
                transform var(--auth-transition-fast);
}

.auth-back-link:hover {
    color: var(--auth-black);
    transform: translateX(-4px);
    text-decoration: none;
}

.auth-back-link i {
    font-size: 18px;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   📝 FORMULARIOS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Form Group */
.auth-form-group {
    margin-bottom: var(--auth-spacing-lg);
}

.auth-form-group:last-child {
    margin-bottom: 0;
}

/* Labels */
.auth-form-label,
.form-label {
    display: flex;
    align-items: center;
    gap: var(--auth-spacing-xs);
    font-size: var(--auth-font-size-base);
    font-weight: 600;
    color: var(--auth-black);
    margin-bottom: var(--auth-spacing-sm);
}

.auth-form-label i {
    color: var(--auth-primary);
    font-size: 18px;
}

/* Inputs */
.auth-input,
.form-control {
    width: 100%;
    height: var(--auth-input-height);
    padding: 0 var(--auth-spacing-md);
    font-size: var(--auth-font-size-base);
    font-family: var(--auth-font-family);
    color: var(--auth-black);
    background: var(--auth-white);
    border: 2px solid var(--auth-gray-200);
    border-radius: var(--auth-radius-md);
    outline: none;
    transition: border-color var(--auth-transition-fast),
                box-shadow var(--auth-transition-fast),
                transform var(--auth-transition-fast);
    -webkit-appearance: none;
    appearance: none;
}

.auth-input::placeholder,
.form-control::placeholder {
    color: var(--auth-gray-400);
    font-size: var(--auth-font-size-base);
}

.auth-input:focus,
.form-control:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px rgba(var(--auth-primary-rgb), 0.1);
    transform: translateY(-1px);
}

.auth-input:hover,
.form-control:hover {
    border-color: var(--auth-gray-300);
}

/* Input con icono */
.auth-input-group {
    position: relative;
}

.auth-input-group i {
    position: absolute;
    left: var(--auth-spacing-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--auth-gray-400);
    font-size: 20px;
    pointer-events: none;
    transition: color var(--auth-transition-fast);
}

.auth-input-group input {
    padding-left: 48px;
}

.auth-input-group input:focus ~ i {
    color: var(--auth-primary);
}

/* Select */
.form-select {
    height: var(--auth-input-height);
    padding: 0 var(--auth-spacing-md);
    font-size: var(--auth-font-size-base);
    color: var(--auth-black);
    background: var(--auth-white);
    border: 2px solid var(--auth-gray-200);
    border-radius: var(--auth-radius-md);
    outline: none;
    transition: border-color var(--auth-transition-fast),
                box-shadow var(--auth-transition-fast);
}

.form-select:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px rgba(var(--auth-primary-rgb), 0.1);
}

/* Texto de ayuda */
.auth-help-text,
.form-text {
    display: flex;
    align-items: center;
    gap: var(--auth-spacing-xs);
    font-size: var(--auth-font-size-sm);
    color: var(--auth-gray-500);
    margin-top: var(--auth-spacing-xs);
    line-height: 1.4;
}

.auth-help-text i {
    color: var(--auth-primary);
    font-size: 14px;
    flex-shrink: 0;
}

/* Estados de validación */
.is-invalid {
    border-color: var(--auth-error) !important;
    animation: shake 0.3s ease-in-out;
}

.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
}

.is-valid {
    border-color: var(--auth-success) !important;
}

.is-valid:focus {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1) !important;
}

.invalid-feedback,
.valid-feedback {
    display: flex;
    align-items: center;
    gap: var(--auth-spacing-xs);
    font-size: var(--auth-font-size-sm);
    margin-top: var(--auth-spacing-xs);
}

.invalid-feedback {
    color: var(--auth-error);
}

.valid-feedback {
    color: var(--auth-success);
}

/* Checkbox */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: var(--auth-spacing-sm);
    padding: 0;
}

.form-check-input {
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
    border: 2px solid var(--auth-gray-300);
    border-radius: 6px;
    background-color: var(--auth-white);
    cursor: pointer;
    transition: all var(--auth-transition-fast);
}

.form-check-input:checked {
    background-color: var(--auth-primary);
    border-color: var(--auth-primary);
}

.form-check-input:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px rgba(var(--auth-primary-rgb), 0.1);
}

.form-check-label {
    font-size: var(--auth-font-size-base);
    color: var(--auth-gray-700);
    line-height: 1.5;
    cursor: pointer;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   🔘 BOTONES
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.auth-btn,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--auth-spacing-sm);
    height: var(--auth-button-height);
    padding: 0 var(--auth-spacing-xl);
    font-size: var(--auth-font-size-lg);
    font-weight: 600;
    font-family: var(--auth-font-family);
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    border: none;
    border-radius: var(--auth-radius-md);
    cursor: pointer;
    outline: none;
    transition: all var(--auth-transition-fast);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

/* Primary Button */
.auth-btn-primary,
.btn-primary {
    background: var(--auth-primary);
    color: var(--auth-black);
    box-shadow: 0 4px 12px rgba(var(--auth-primary-rgb), 0.3);
}

.auth-btn-primary:hover,
.btn-primary:hover {
    background: var(--auth-primary-dark);
    color: var(--auth-black);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--auth-primary-rgb), 0.4);
}

.auth-btn-primary:active,
.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(var(--auth-primary-rgb), 0.3);
}

/* Secondary Button */
.auth-btn-secondary,
.btn-secondary {
    background: var(--auth-white);
    color: var(--auth-black);
    border: 2px solid var(--auth-gray-300);
}

.auth-btn-secondary:hover,
.btn-secondary:hover {
    background: var(--auth-gray-50);
    border-color: var(--auth-gray-400);
    color: var(--auth-black);
}

/* Button Loading State */
.auth-btn.loading,
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

.auth-btn.loading::after,
.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Button Full Width */
.auth-btn-block,
.btn-block,
.d-grid .btn {
    width: 100%;
}

/* Button Icon */
.auth-btn i,
.btn i {
    font-size: 20px;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   🔗 LINKS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.auth-link {
    color: var(--auth-gray-700);
    text-decoration: none;
    transition: color var(--auth-transition-fast);
    position: relative;
}

.auth-link:hover {
    color: var(--auth-black);
    text-decoration: none;
}

.auth-link-primary {
    color: var(--auth-primary);
    font-weight: 600;
    position: relative;
    text-decoration: none;
}

.auth-link-primary::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--auth-primary);
    transition: width var(--auth-transition-base);
}

.auth-link-primary:hover {
    color: var(--auth-primary-dark);
    text-decoration: none;
}

.auth-link-primary:hover::after {
    width: 100%;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   🎬 ANIMACIONES
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(var(--auth-primary-rgb), 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(var(--auth-primary-rgb), 0.6);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

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

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   🍞 TOASTS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.auth-toast-popup {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid var(--auth-gray-200);
    box-shadow: var(--auth-shadow-xl);
    border-radius: var(--auth-radius-md);
}

.auth-toast-title {
    font-size: var(--auth-font-size-base);
    font-weight: 600;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   💬 UTILIDADES
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Text Utilities */
.auth-text-center {
    text-align: center;
}

.auth-text-muted {
    color: var(--auth-gray-500);
}

.auth-text-primary {
    color: var(--auth-primary);
}

.auth-text-error {
    color: var(--auth-error);
}

.auth-text-success {
    color: var(--auth-success);
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: var(--auth-spacing-xl) 0;
    gap: var(--auth-spacing-md);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--auth-gray-200);
}

.auth-divider span {
    color: var(--auth-gray-500);
    font-size: var(--auth-font-size-sm);
    font-weight: 500;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   📱 RESPONSIVE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Mobile Small (< 375px) */
@media (max-width: 374px) {
    :root {
        --auth-input-height: 52px;
        --auth-button-height: 52px;
        --auth-logo-height: 32px;
    }

    .auth-card {
        padding: var(--auth-spacing-lg);
    }

    .auth-header-title {
        font-size: var(--auth-font-size-xl);
    }
}

/* Mobile (375px - 767px) */
@media (min-width: 375px) and (max-width: 767px) {
    .auth-content {
        max-width: 100%;
    }

    .auth-card {
        padding: var(--auth-spacing-xl);
    }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) {
    :root {
        --auth-logo-height: 48px;
    }

    .auth-wrapper {
        padding: var(--auth-spacing-lg);
    }

    .auth-content {
        max-width: 480px;
    }

    .auth-card {
        padding: var(--auth-spacing-2xl);
    }

    .auth-header-title {
        font-size: var(--auth-font-size-3xl);
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .auth-content {
        max-width: 500px;
    }

    .auth-card:hover {
        transform: translateY(-4px);
    }
}

/* Landscape Mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .auth-logo-container {
        padding: var(--auth-spacing-sm) 0;
    }

    .auth-card {
        padding: var(--auth-spacing-lg);
    }

    .auth-form-group {
        margin-bottom: var(--auth-spacing-md);
    }
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   🌙 DARK MODE (Opcional - para futuro)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@media (prefers-color-scheme: dark) {
    /* Puedes descomentar esto cuando quieras dark mode */
    /*
    :root {
        --auth-white: #0a0a0a;
        --auth-black: #ffffff;
        --auth-gray-200: #2a2a2a;
        --auth-gray-300: #3a3a3a;
    }
    */
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   🛡️ ACCESIBILIDAD
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Focus visible para teclado */
*:focus-visible {
    outline: 3px solid var(--auth-primary);
    outline-offset: 2px;
}

/* Reducir motion para usuarios con preferencias */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .auth-card {
        border: 2px solid var(--auth-black);
    }

    .auth-input,
    .form-control {
        border-width: 2px;
    }
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   🚀 OPTIMIZACIONES DE SCROLL
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Prevenir lag en scroll inicial */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
    overflow-y: auto;
}

/* Mejorar performance de AOS */
[data-aos] {
    pointer-events: auto;
    will-change: transform, opacity;
}

[data-aos].aos-animate {
    will-change: auto;
}

/* Optimización para elementos con animación */
.auth-card,
.auth-form-group,
.auth-header-logo {
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Asegurar scroll suave sin lag */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Fix para scroll en iOS: min-height (no height fija) para no bloquear scroll */
@supports (-webkit-touch-callout: none) {
    .auth-wrapper {
        min-height: -webkit-fill-available;
    }
}
