﻿/* --- OPCIÓN 1: EL TÚNEL DE LA GLORIA --- */

:root {
    --tunnel-red: #D6001C;
    --tunnel-gold: #FFD700;
    --tunnel-dark: #0a0a0a;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    overflow: hidden;
    background: black;
}

/* 1. VIDEO BACKGROUND (Fondo Vivo) */
.video-background {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
}

    .video-background video {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100vw;
        height: 100vh;
        transform: translate(-50%, -50%);
        object-fit: cover; /* Asegura que cubra toda la pantalla */
    }

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.9) 90%);
    z-index: 1;
}

/* 2. CONTENEDOR CENTRAL */
.login-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

/* 3. PANEL DE CRISTAL (Glassmorphism Limpio) */
.glass-panel {
    background: rgba(10, 10, 10, 0.65); /* Oscuro translúcido */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 50px 40px;
    width: 400px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* HEADER */
.logo-glow {
    font-size: 3.5rem;
    color: var(--tunnel-gold);
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.login-header h3 {
    font-family: 'Russo One';
    color: white;
    margin: 0;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.login-header p {
    color: #aaa;
    font-size: 0.85rem;
    margin-top: 5px;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

/* 4. INPUTS (Estilo Tech) */
.tunnel-input-group {
    text-align: left;
    margin-bottom: 25px;
}

    .tunnel-input-group label {
        display: block;
        color: var(--tunnel-gold);
        font-size: 0.7rem;
        font-weight: 700;
        margin-bottom: 8px;
        letter-spacing: 1.5px;
    }

.input-box {
    position: relative;
    border-bottom: 2px solid rgba(255,255,255,0.2);
    transition: 0.3s;
}

    .input-box i {
        position: absolute;
        left: 0;
        top: 12px;
        color: #666;
        font-size: 1.1rem;
        transition: 0.3s;
    }

    .input-box input {
        width: 100%;
        background: transparent;
        border: none;
        color: white;
        padding: 10px 10px 10px 30px;
        font-size: 1rem;
        font-weight: 500;
        outline: none;
    }

    /* Efecto al hacer clic en el input */
    .input-box:focus-within {
        border-bottom-color: var(--tunnel-gold); /* Se pone dorado */
    }

        .input-box:focus-within i {
            color: var(--tunnel-gold);
        }

/* Ojito password */
.toggle-pass {
    left: auto !important;
    right: 0;
    cursor: pointer;
}

    .toggle-pass:hover {
        color: white;
    }

/* 5. BOTÓN PULSE (LATIDO) - La Joya de la Corona */
.btn-pulse {
    width: 100%;
    background: var(--tunnel-red);
    color: white;
    font-family: 'Russo One';
    font-size: 1.1rem;
    padding: 15px;
    border: none;
    border-radius: 50px; /* Redondo estilo cápsula */
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 20px;
    box-shadow: 0 0 0 0 rgba(214, 0, 28, 0.7);
    animation: pulse-red 2s infinite; /* El corazón late */
    transition: 0.3s;
}

    .btn-pulse:hover {
        background: white;
        color: var(--tunnel-red);
        animation: none; /* Se detiene el latido al hover */
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(255,255,255,0.4);
    }

@keyframes pulse-red {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(214, 0, 28, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(214, 0, 28, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(214, 0, 28, 0);
    }
}

/* FOOTER */
.tunnel-footer {
    margin-top: 30px;
    font-size: 0.8rem;
}

    .tunnel-footer a {
        color: rgba(255,255,255,0.6);
        text-decoration: none;
        transition: 0.3s;
    }

        .tunnel-footer a:hover {
            color: white;
            text-shadow: 0 0 10px white;
        }

/* ERRORES */
.text-danger {
    font-size: 0.75rem;
    color: #ff5555;
    margin-top: 5px;
    display: block;
}

.validation-summary-tunnel {
    color: #ff5555;
    font-size: 0.85rem;
    margin-bottom: 15px;
    text-align: center;
}
