/* ===== FONDO Y EFECTOS GLOBALES ===== */
body {
    background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
    height: 100vh;
    margin: 0;
    overflow: hidden;
    font-family: "Segoe UI", sans-serif;
}
/* ===== BURBUJAS / PARTICLES ===== */
.bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    top: 0;
    left: 0;
}
.bubble {
    position: absolute;
    bottom: -50px;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    animation: rise 10s linear infinite;
}
/* Animación de movimiento de burbujas */
@keyframes rise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(-120vh) scale(1.2);
        opacity: 0;
    }
}
/* Tamaño y velocidad variable por burbuja */
.b1 { left: 10%; width: 15px; height: 15px; animation-duration: 12s; }
.b2 { left: 25%; width: 25px; height: 25px; animation-duration: 10s; }
.b3 { left: 40%; width: 10px; height: 10px; animation-duration: 14s; }
.b4 { left: 55%; width: 20px; height: 20px; animation-duration: 11s; }
.b5 { left: 70%; width: 30px; height: 30px; animation-duration: 9s; }
.b6 { left: 85%; width: 12px; height: 12px; animation-duration: 13s; }
.b7 { left: 90%; width: 18px; height: 18px; animation-duration: 10s; }
.b8 { left: 15%; width: 22px; height: 22px; animation-duration: 15s; }
.b9 { left: 50%; width: 26px; height: 26px; animation-duration: 12s; }
.b10 { left: 75%; width: 20px; height: 20px; animation-duration: 11s; }
/* ===== RAYO ===== */
#ray-line {
    position: absolute;
    width: 8px;
    height: 2px;
    background: white;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    opacity: 0;
    animation: rayHorizontal 1.2s forwards;
    z-index: 5;
}
@keyframes rayHorizontal {
    0% {
        left: 0%;
        opacity: 0.1;
        transform: scaleX(0.01);
    }
    40% {
        left: 50%;
        opacity: 1;
        transform: scaleX(1);
    }
    100% {
        left: 50%;
        transform: scale(60);
        opacity: 0;
    }
}
/* ===== LOGIN CONTAINER ===== */
.login-container {
    transform: scale(0.8);
    transition: all 0.8s ease;
    z-index: 10;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.login-container.show {
    opacity: 1;
    transform: scale(1);
}
/* ===== FORMULARIO ===== */
.form-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2rem;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.1);
    z-index: 10;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}
.form-box.show {
    opacity: 1;
    transform: translateY(0);
}
/* ===== TITULO Y DESCRIPCION ===== */
h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(0,162,255,0.6);
    margin-bottom: 0.6rem;
    animation: glowText 2s infinite alternate;
}
@keyframes glowText {
    from { text-shadow: 0 0 10px rgba(0,162,255,0.4), 0 0 20px rgba(0,162,255,0.2); }
    to { text-shadow: 0 0 25px rgba(0,162,255,0.8), 0 0 45px rgba(0,162,255,0.4); }
}
p.description {
    text-align: justify;
    color: #eaeaea;
    max-width: 360px;
    margin: 0 auto 1.8rem;
    font-size: 0.95rem;
    line-height: 1.6;
}
/* ===== ICONO DE HUELLA ===== */
.fingerprint-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.fingerprint {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    animation: pulse 2s infinite;
}
.fingerprint img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: brightness(0) invert(1);
}
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.85;
    }
}
/* ===== INPUTS ===== */
.input-group {
    position: relative;
    margin-bottom: 1.2rem;
}
.input-group i.fa-user,
.input-group i.fa-lock {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: #fff;
    z-index: 2;
}
.input-group input {
    width: 100%;
    padding: 0.7rem 2.5rem 0.7rem 2.5rem;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}
.input-group input::placeholder {
    color: rgba(255,255,255,0.6);
}
.input-group input:focus {
    background: rgba(255,255,255,0.15);
    border-color: #00bfff;
    box-shadow: 0 0 10px rgba(0,191,255,0.5);
    outline: none;
}
/* Ojo para mostrar/ocultar contraseña */
.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    cursor: pointer;
    z-index: 3;
}
/* ===== BOTON DE INGRESO ===== */
button[type="submit"] {
    background: linear-gradient(90deg, #b3e5fc, #81d4fa);
    border: none;
    color: #003c5a;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    padding: 0.7rem;
    width: 100%;
    margin-top: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 12px rgba(179,229,252,0.5);
}
button[type="submit"]:hover {
    background: linear-gradient(90deg, #a5defa, #74cef5);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(179,229,252,0.8);
}