/* Fondo */
body,
html {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
    /* Evita scroll */
}

/* Estilos del video de fondo */
.background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -2; /* Aseguramos que el video esté detrás de otros contenidos */
    opacity: 0; /* Se inicia con opacidad 0 */
    transition: opacity 1s ease-in-out; /* Transición suave */
    transition: transform 0.5s ease-in-out; /* Añadimos la transición suave para el escalado */
}

/* Parallax en el video (cuando el mouse entra) */
body:hover .background-video {
    transform: scale(1.1);
}

/* Cuando el video está listo, se hace visible */
.background-video.loaded {
    opacity: 1;
}

/* Imagen de respaldo */
.background-image-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* Aseguramos que la imagen de respaldo se muestre de inmediato */
    z-index: -1; /* La imagen está detrás del contenido pero por encima del video */
    opacity: 1; /* Hacerla completamente visible desde el principio */
    transition: none; /* Eliminamos cualquier transición para que no haya retrasos */
}

/* Contenedor principal del login */
.login-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px 50px;
    padding-top: 10px; /* Reducir el padding superior */
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(12px);
    max-width: 550px;
    width: 100%;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.4);
    animation: fadeIn 1s ease-out, floatingGlow 4s infinite alternate;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

/* Efecto de resplandor sutil y movimiento */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatingGlow {
    from {
        box-shadow: 0px 0px 15px rgba(0, 200, 255, 0.5), 0px 0px 30px rgba(0, 255, 255, 0.3);
    }

    to {
        box-shadow: 0px 0px 25px rgba(0, 200, 255, 0.8), 0px 0px 50px rgba(0, 255, 255, 0.5);
    }
}

/* Efecto tipo máquina de escribir para el título */
.login-container h1 {
    font-size: 26px;
    margin-bottom: 10px;
    color: #00eaff;
    text-shadow: 0px 0px 10px rgba(0, 200, 255, 0.8);
    animation: typing 2s steps(20) 1s forwards, glowText 1.5s ease-in-out infinite alternate;
}

/* Efecto máquina de escribir */
@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* Brillo y sombra del texto */
@keyframes glowText {
    from {
        text-shadow: 0px 0px 15px rgba(0, 200, 255, 0.5);
    }

    to {
        text-shadow: 0px 0px 25px rgba(0, 200, 255, 1);
    }
}

.login-container p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    animation: fadeIn 2s ease-out forwards;
}

/* Centrado de la imagen y ajuste del margen superior */
.bottom-image {
    width: 100%;
    max-width: 150px;
    /* Mantén el tamaño máximo que quieras */
    margin-top: 1px;
    /* Reduce el margen superior */
    margin-left: auto;
    margin-right: auto;
    /* Centra la imagen */
    display: block;
    /* Asegura que se comporte como un bloque */
    border-radius: 5px;
}

/* Estilos para los inputs */
.input-field {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 12px;
    margin: 12px 0;
    width: 90%;
    border-radius: 5px;
    color: white;
    outline: none;
    box-shadow: inset 0px 0px 5px rgba(0, 200, 255, 0.6);
    transition: box-shadow 0.3s, transform 0.3s;
}

.input-field:focus {
    box-shadow: 0px 0px 10px rgba(0, 200, 255, 0.9), inset 0px 0px 5px rgba(0, 200, 255, 0.6);
    transform: scale(1.02);
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Botón de login */
.login-btn {
    background-color: rgba(0, 200, 255, 0.8);
    border: none;
    color: white;
    padding: 12px 0;
    width: 100%;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 15px;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0px 4px 8px rgba(0, 200, 255, 0.3);
}

.login-btn:hover {
    background-color: rgba(0, 180, 255, 1);
    transform: scale(1.05);
    box-shadow: 0px 8px 15px rgba(0, 200, 255, 0.5);
}

/* Estilos de las opciones extras */
.options {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin: 15px 0;
}

.options a {
    color: #00eaff;
    text-decoration: none;
    transition: color 0.3s;
}

.options a:hover {
    color: #00aaff;
    text-shadow: 0px 0px 5px rgba(0, 200, 255, 0.8);
}

/* Checkbox personalizado */
.styled-checkbox {
    display: none;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-size: 16px;
    cursor: pointer;
}

.checkbox-label::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid #00eaff;
    border-radius: 50%;
    transition: background-color 0.3s, border-color 0.3s;
}

.styled-checkbox:checked+.checkbox-label::before {
    background-color: #00eaff;
    border-color: #00eaff;
    content: "✔";
    font-size: 12px;
    color: white;
    text-align: center;
    line-height: 18px;
}

/* Botones de redes sociales */
.social-login {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    animation: fadeIn 3s ease-out forwards;
}

.social-btn {
    background: rgba(0, 0, 0, 0.1);
    /* color: #00eaff; */
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(0, 0, 0, 0.4);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/* Icono de FontAwesome en los botones */
.social-btn i {
    font-size: 16px;
}

/* Hover y efectos de transición en botones de redes sociales */
.social-btn:hover {
    background-color: rgba(0, 200, 255, 0.3);
    color: white;
    transform: scale(1.1);
    box-shadow: 0px 6px 15px rgba(0, 200, 255, 0.5);
}

/* Estilo específico para cada botón si quieres diferenciar los colores */
.social-btn.google {
    color: #DB4437;
    border-color: #3b5998;
}

.social-btn.github {
    color: #ffffff;
    border-color: #3b5998;
}

/* Hover específico para cada red social */
.social-btn.google:hover {
    background-color: rgba(0, 0, 0, 0.3);
    color: #DB4437;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
}

.social-btn.github:hover {
    background-color: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.5);
}
