/*
 * Archivo: login.css
 * Objetivo: Estilos asimétricos con login-box corregido y formato de enlaces.
*/

body#initial-body-bg {
    background-color: transparent !important; 
}

/* --- Estructura Principal y Fondo Dinámico --- */
body {
    font-family: 'Roboto', 'Segoe UI', Tahoma, sans-serif;
    margin: 0; 
    padding: 0;
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 

     position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
   
    background-size: cover;
    background-position: center;
    background-image: url('../../src/img/13.jpg');

}

/* Keyframes de fondo (sin cambios)
@keyframes image-slide {
    0% { background-image: url('../../src/img/8.jpg'); opacity: 0.9; }
    5% { opacity: 1; } 
    20% { background-image: url('../../src/img/3.jpg'); opacity: 0.9; }
    20.01% { background-image: url('../../src/img/3.jpg'); }
    25% { opacity: 1; }
    40% { background-image: url('../../src/img/4.jpg'); opacity: 0.9; }
    40.01% { background-image: url('../../src/img/4.jpg'); }
    45% { opacity: 1; }
    60% { background-image: url('../../src/img/5.jpg'); opacity: 0.9; }
    60.01% { background-image: url('../../src/img/5.jpg'); }
    65% { opacity: 1; }
    80% { opacity: 0.9; } 
    85% { opacity: 1; } 
    90% { background-image: url('../../src/img/7.jpg'); opacity: 0.9; }
    90.01% { background-image: url('../../src/img/7.jpg'); }
    100% { background-image: url('../../src/img/2.jpg'); opacity: 0.9; } 
}
 */

/* --- Contenedor Principal --- */
.page-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end; 
    flex-grow: 1; 
    width: 100%;
    max-width: 1400px; 
    margin: 0 auto;
    padding: 30px; 
    box-sizing: border-box;
    position: relative; 
    z-index: 1; 
}

/* --- Contenedor Logo/Título (Superior Izquierda) --- */
.header-logo {
    position: absolute; 
    top: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    padding: 20px;
    background-color: transparent; 
    box-shadow: none; 
}

/* --- Logo: ¡487.5px de ancho (+25% de 390px) --- */
.login-logo {
    width: 487.5px; /* Nuevo tamaño */
    height: auto;           
    margin-bottom: 25px;    
    border-radius: 50%;     
    border: 8px solid var(--naranja-fuerte); /* Borde ajustado al nuevo tamaño */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); 
    transition: transform 0.3s ease-in-out, border-color 0.3s ease, box-shadow 0.3s ease;
}

.login-logo:hover {
    transform: scale(1.05) rotate(3deg); /* Ajuste de animación para el tamaño grande */
    border-color: var(--naranja-suave); 
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.8), 0 0 10px var(--naranja-fuerte); 
}

/* --- Título Principal --- */
.login-title {
    font-size: 2.2em; 
    font-weight: 700;
    color: white; 
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); 
    margin-bottom: 0;
    padding-bottom: 5px; 
    border-bottom: 2px solid var(--naranja-suave);
    align-self: flex-start; 
}


/* --- Caja del Formulario de Login (Derecha y Corregido) --- */
.login-box {
    position: relative;
    width: 100%;

    background-color: rgba(255, 255, 255, 0.98); 
    padding: 20px; 
    border-radius: 20px; 
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--borde-input); 
    border: none;
    text-align: center;
    margin-top: 15vh; 
    margin-left: auto; 
    margin-right: 0;
    animation: fadeInSlideUp 0.6s ease-out;
}

/* --- Título del Formulario --- */
.form-title {
    font-size: 1.2em; 
    font-weight: 600;
    font-family: monospace;
    color: var(--marron-oscuro);
    margin-bottom: 1.0em; 
    padding-bottom: 5px;
    border-bottom: 1px solid var(--arena-medio);
}

/* --- Formulario y Espaciado --- */
#form_login {
    display: flex;
    flex-direction: column;
    gap: 1.2em; 
}

.input-group {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.5em; 
}

#form_login input {
    padding: 10px 12px; 
    font-size: 1em; 
    font-family: monospace;
}

.form-buttons {
    display: flex;
    gap: 0.8em; 
    margin-top: 1.5em; 
    justify-content: center; 
}

/* --- Enlace Olvidó Contraseña --- */
.forgot-password {
    margin-top: 1.5em; 
    font-size: 0.85em; 
    text-align: center; 
    font-weight: 500;
}
.forgot-password a {
    color: var(--naranja-fuerte); 
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}





/* Finalmente 4k */
@media (max-width: 2500.98px) {
    .login-box {
        max-width: 490px;
    }
}
/* Finalmente hd  */
@media (max-width: 1500.98px) {
    .login-box {
        max-width: 290px;
    }
}


 /*   .header-logo {
        background-color: rgba(255, 255, 255, 0.9); 
    }
*/
/*
=====================================================
--- ESTILOS RESPONSIVOS PARA MÓVILES Y TABLETAS ---
=====================================================
*/

/* Para tabletas (un ancho intermedio) */
@media (max-width: 900px) {
    .login-box {
        max-width: 400px; /* Un tamaño razonable para tabletas */
    }
}

/* Para móviles (la vista más pequeña) */
@media (max-width: 767px) {
    .page-container {
        /* Permite que el contenido se centre mejor en la pantalla */
        justify-content: center;
        padding: 5px;
    }

    .login-box {
        max-width: 90%;      /* ¡La clave! Ocupa el 90% del ancho del móvil */
        width: 90%;          /* Asegura que tome el ancho */
        margin-top: 0;       /* Elimina el margen superior para centrarlo mejor */
        padding: 5px 2px;  /* Ajusta el padding interno */
    }
    
    .header-logo {
        /* Oculta el logo grande en móviles para dar más espacio al formulario */
        display: none;
    }
}

footer{
        background: rgba(var(--footer-background-rgb-base), 0.9); 

}