/*
 * ===============================================
 * STYLESHEET EXCLUSIVO PARA AUTENTICACIÓN (LOGIN/SIGNUP)
 * Contiene los estilos para la splash screen y los formularios.
 * ===============================================
 */

/* === ESTILOS GENERALES Y FONDO === */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    color: #f0f0f0;
    overflow-x: hidden;
    background-image: url('../images/login.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Evita que el fondo se mueva con el scroll */
}

/* === ESTILOS PARA LA SPLASH SCREEN === */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* MODIFICACIÓN: Fondo blanco sólido, sin imagen */
    background: #ffffff; 
    
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out; /* Transición más simple */
}

/* MODIFICACIÓN: Hacemos la animación de salida de la splash más simple (solo desvanecer) */
#splash-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

#splash-screen.hidden {
    opacity: 0;
    transform: scale(3);
    pointer-events: none;
}

#splash-screen.hidden .splash-logo {
    transform: scale(0.8);
}

/* === CONTENIDO PRINCIPAL Y CENTRADO === */
#main-content {
    opacity: 0;
    transition: opacity 0.5s ease-in 0.5s;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

#main-content.hidden {
    display: none;
}

#main-content.visible {
    opacity: 1;
}

.auth-hero-section {
    /* MODIFICACIÓN: Ajustamos el espaciado para que se vea bien dentro del formulario */
    padding: 0 0 15px 0; 
    text-align: center;
    background: none;
}

.hero-logo {
    max-width: 120px;
    height: auto;
}

.auth-content-section {
    background-color: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    padding: 25px 30px 30px 30px; /* Ajustamos el padding superior */
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
    text-align: center;
}

#main-content.visible .auth-hero-section {
    animation: fadeInDown 1s ease-out 0.2s forwards;
    opacity: 0;
}

#main-content.visible .auth-content-section {
    animation: fadeInUp 1s ease-out 0.4s forwards;
    opacity: 0;
}

h2 {
    margin-top: 0;
    margin-bottom: 25px; /* Añadimos espacio debajo del título */
    font-weight: 600;
    color: #ffffff;
}

/* === BOTONES Y FORMULARIO === */
.btn {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.btn:hover {
    transform: translateY(-2px);
}

.social-login-options {
    margin-bottom: 20px;
}
.btn-social-login {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    color: #333;
    border: 1px solid #ddd;
}
.social-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid #cccccc;
    color: #f0f0f0;
}
.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.email-login-form.hidden {
    display: none;
}

.input-group {
    margin-bottom: 15px;
    text-align: left;
}
.input-group label{
    font-weight: bold;
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
}
input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 12px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid #4a5568;
    border-radius: 8px;
    color: #f0f0f0;
    font-size: 16px;
    box-sizing: border-box;
}
input::placeholder {
    color: #a0aec0;
}

.btn-primary {
    background-color: #f9c74f;
    color: #1a1a1a;
    margin-top: 10px;
}
.btn-primary:hover {
    background-color: #f8b400;
}

/* === ENLACES Y TEXTO === */
a {
    color: #f9c74f;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

.forgot-password-link {
    display: block;
    margin-top: 15px;
    font-size: 14px;
}

.auth-footer-text, .switch-form-alt {
    font-size: 12px;
    color: #d1d5db;
    margin-top: 20px;
}
.switch-form-alt a {
    font-weight: bold;
}

/* === KEYFRAMES DE ANIMACIÓN === */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}