/* =========================================================
   NUEVO DISEÑO DE LOGIN: INMERSIVO CON GLASSMORPHISM
   ========================================================= */

/* 1. Preparación del Body para centrado absoluto */
body, html {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    overflow: hidden; 
    /* Eliminamos el background-color: #000; para que no tape nada */
}

/* 2. Video de Fondo (Simplificado y con índice positivo) */
.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 0; /* Ahora es la capa base (positiva) */
}

/* 3. Capa Oscura */
.bg-overlay {
    position: fixed;
    inset: 0; 
    background: rgba(0, 0, 0, 0.45); 
    z-index: 1; /* Se coloca encima del video */
}

/* 4. Contenedor Principal (Efecto Glassmorphism) */
.login-container {
    position: relative;
    z-index: 2; /* Se coloca encima de la capa oscura */
    width: 90%;
    max-width: 420px;
    padding: 50px 40px;
    background: rgba(15, 23, 36, 0.65); 
    backdrop-filter: blur(16px); 
    -webkit-backdrop-filter: blur(16px); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-top: 4px solid #00b259; 
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6); 
    text-align: center;
    color: #ffffff;
    animation: slideUpFade 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}
/* Animación de entrada fluida */
@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 5. Elementos Internos del Login */
.login-logo {
    max-width: 220px;
    margin-bottom: 20px;
    filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.5));
}

.login-container h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
}

.login-container p {
    font-size: 0.95rem;
    color: #aebfd1;
    margin: 0 0 30px 0;
    line-height: 1.6;
    font-weight: 300;
}

/* 6. Botón de Google centrado */
.google-btn-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    width: 100%;
}

/* 7. Mensaje de Error estético */
.error-message {
    display: none;
    background: rgba(255, 77, 77, 0.15);
    border: 1px solid rgba(255, 77, 77, 0.5);
    color: #ff6b6b;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}