body {
    margin: 0;
    font-family: 'Arial', sans-serif; /* O tu fuente preferida */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(to right, #7e1d87 0%, #ee008f 100%); /* Degradado morado/azul */
    color: #333;
    overflow: hidden; /* Evitar scrollbar durante la transición */
}

.hidden {
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff; /* Fondo blanco para la pantalla de carga */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Asegura que esté encima de otros elementos */
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

#splash-screen img {
    max-width: 150px; /* Ajusta el tamaño del logo si es necesario */
    margin-bottom: 20px;
    animation: pulse 2s infinite; /* Animación sutil para el logo */
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}


#splash-screen p {
    font-size: 1.2em;
    color: #555;
}

#login-form {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    position: relative; /* Necesario para transiciones */
    opacity: 0; /* Inicialmente oculto y transparente */
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

#login-form.visible { /* Clase para mostrar el formulario */
    opacity: 1;
    visibility: visible;
}


#login-form h2 {
    margin-top: 0;
    color: #333;
    margin-bottom: 30px;
}

#login-form input[type="email"],
#login-form input[type="password"] {
    width: calc(100% - 20px); /* Ajustar padding */
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

#login-button {
    width: 100%;
    padding: 12px;
 background: linear-gradient(to right, #7e1d87 0%, #ee008f 100%); /* Degradado para el botón */
 color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

#login-button:hover {
 background: linear-gradient(to right, #6e1c7b 0%, #dd007f 100%); /* Degradado en hover */
    transform: translateY(-2px);
}

#login-button:active {
     transform: translateY(0);
}


#msg {
    margin-top: 20px;
    font-size: 0.9em;
    color: #e74c3c; /* Color de error inicial */
    min-height: 1em;
    font-weight: 500;
    text-align: center;
}

.register-link {
    margin-top: 25px;
    font-size: 1em;
    color: #555;
}

.register-link a {
    color: #6a11cb; /* Color del enlace */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.register-link a:hover {
    color: #2575fc; /* Color en hover */
    text-decoration: underline;
}
