/**
 * Estilos para páginas de autenticación (Login y Registro)
 * Extraído de vistas inline para mejor mantenibilidad
 */

/* Evitar barra de scroll horizontal cuando .auth-hero usa 100vw */
body:has(.auth-hero) {
    overflow-x: hidden;
}

/* Hero Background - Login y Registro */
.auth-hero {
    min-height: 100vh;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    box-sizing: border-box;
    background-image: url('../../images/Background.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
    border-bottom: 4px solid rgba(212, 175, 55, 0.95);
    box-shadow: 0 8px 20px -12px rgba(212, 175, 55, 0.45);
    padding-top: 180px;
    padding-bottom: 2rem;
}

/* Responsive: fondo a ancho completo y más espacio bajo el navbar */
@media (max-width: 991.98px) {
    .auth-hero {
        min-height: 0 !important;
        display: block !important;
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
        overflow-x: hidden;
        overflow-y: visible;
        padding-top: 150px;
        padding-bottom: 2rem;
        visibility: visible !important;
    }
    .auth-hero .container,
    .auth-hero .container-fluid {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .auth-hero .row {
        justify-content: center;
    }
    /* Forzar card y formulario visibles (evita animación que deja opacity:0 al inicio en móvil) */
    .auth-hero .auth-card-modern {
        position: relative;
        z-index: 2;
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        visibility: visible !important;
    }
}

/* Efectos de iluminación */
.auth-hero::before {
    content: "";
    position: absolute;
    inset: -10% -10% auto -10%;
    height: 60vh;
    background: radial-gradient(ellipse at top left, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
    filter: blur(40px);
    pointer-events: none;
}

.auth-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.18);
    pointer-events: none;
}

/* Tarjeta de autenticación */
.auth-card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(212, 175, 55, 0.85);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25),
                0 0 32px rgba(212, 175, 55, 0.25),
                0 0 80px rgba(212, 175, 55, 0.12);
    position: relative;
    z-index: 1;
    animation: fadeUp 600ms ease-out both;
}

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

/* Forzar labels y texto a blanco para contraste */
.auth-card label,
.auth-card .form-label,
.auth-card .text-white-75,
.auth-card .text-white,
.auth-card .text-white-50,
.auth-card .text-dark-gray {
    color: #ffffff !important;
}

.auth-card a,
.auth-card .text-decoration-line-bottom {
    color: #fff !important;
}

/* Botones dorados */
.btn-gold {
    background: linear-gradient(135deg, #e6c27a 0%, #d4af37 100%);
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(212, 175, 55, 0.18);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.btn-gold:hover {
    background: #b9902b;
    box-shadow: 0 10px 26px rgba(185, 140, 40, 0.26);
    transform: translateY(-1px);
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.btn-gold:disabled {
    opacity: .85;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

/* Asegurar texto blanco en todos los botones dentro de auth-card */
.auth-card .btn,
.auth-card button,
.auth-card .btn *,
.auth-card button * {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.auth-card .btn:hover,
.auth-card a.btn:hover,
.auth-card button:hover,
.auth-card .btn:focus,
.auth-card .btn:active {
    color: #fff !important;
}

/* Spinner para botones de carga */
.btn-gold .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    display: inline-block;
    vertical-align: -3px;
    margin-right: 8px;
    animation: spin 1s linear infinite;
}

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

