/* =========================================
   RESETEO BÁSICO Y FUENTES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body, html {
    height: 100%;
    overflow: hidden; /* Evita la aparición de barras de scroll provocadas por el video */
}

/* =========================================
   FONDO MULTIMEDIA (VIDEO Y CAPA OSCURA)
   ========================================= */
#bg-video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2; /* Lo mantiene en la capa más profunda */
    transform: translateX(-50%) translateY(-50%); /* Centrado absoluto */
    object-fit: cover; /* Asegura que cubra la pantalla sin deformarse */
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Oscurece el video al 50% para dar contraste */
    z-index: -1;
}

/* =========================================
   CONTENEDOR PRINCIPAL (GLASSMORPHISM)
   ========================================= */
.login-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    padding: 40px;
    
    /* Efecto de Cristal Esmerilado */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px); /* Desenfoque del fondo */
    -webkit-backdrop-filter: blur(15px); /* Soporte para Safari */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Borde sutil brillante */
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3); /* Sombra para separar del fondo */
    
    color: white;
    text-align: center;
}

/* --- Estilos del Logo --- */
.logo-login {
    width: 140px; /* Tamaño del logo (ajústalo según necesites) */
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.4)); /* Sombra para separarlo del fondo de cristal */
}

.login-container h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* =========================================
   MENSAJES DE ERROR (PHP)
   ========================================= */
.error-msg {
    background: rgba(255, 77, 77, 0.2);
    color: #ffb3b3;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 77, 77, 0.3);
    backdrop-filter: blur(5px); /* Leve desenfoque a la alerta */
}

/* =========================================
   ELEMENTOS DEL FORMULARIO
   ========================================= */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

/* Iconos de FontAwesome */
.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

/* Campos de texto */
.input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px; /* Espacio izquierdo para que el texto no pise el icono */
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid transparent;
    outline: none;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Efecto al hacer clic en el input */
.input-group input:focus {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* =========================================
   OPCIONES ADICIONALES (RECORDAR / CLAVE)
   ========================================= */
.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.options label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.options a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.options a:hover {
    color: #e0e0e0;
    text-decoration: underline;
}

/* =========================================
   BOTÓN DE ENVÍO
   ========================================= */
.btn-login {
    width: 100%;
    padding: 15px;
    background: #007BFF; /* Puedes cambiar este color azul al color corporativo de GRUPO TNC */
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-login:hover {
    background: #0056b3;
    transform: translateY(-2px); /* Efecto de flotación */
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

/* =========================================
   RESPONSIVIDAD (PANTALLAS PEQUEÑAS)
   ========================================= */
@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px; /* Reduce el margen interno en móviles */
        width: 95%;
    }
    
    .options {
        flex-direction: column;
        gap: 15px; /* Separa los elementos al apilarse en móvil */
    }
}