* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root{
    --color-primario: #CED4DA;
    --color-secundario: #ADB5BD;
    --color-secundario-opaco: #adb5bd7a;
    --oscuro-primario: #212529;
    --oscuro-secundairo: #495057;
    --color-boton-hover: #1B2A41;
    --color-boton-sin-hover: #324A5F;
    --color-letra-claro: #F8F9FA;
    --color-letra-oscuro: #212529;
}


body, html {
    height: 100%;
    margin: 0;
    font-family: 'Instrument Sans', sans-serif;
}

/* Video de fondo */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    background: #000;
    z-index: -1;
}

/* Contenedor del formulario con animación de entrada */
.login-container {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 1.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos del formulario */
.login-form {
    background-color: rgba(255, 255, 255, 0.6); /* Fondo casi blanco y transparente */
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 350px;
    transform: scale(0.9); /* Inicia más pequeño */
    animation: scaleIn 0.5s forwards 1.5s ease; /* Efecto de zoom */
}

@keyframes scaleIn {
    to {
        transform: scale(1);
    }
}

/* Títulos y entradas con animación */
.login-form h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
    animation: slideIn 1s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.login-form label {
    font-size: 14px;
    margin-bottom: 5px;
    color: #555;
    font-weight: bold;
}

.login-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    display: block;
}

.login-form input:focus {
    border-color: #66afe9;
    box-shadow: 0 0 5px rgba(102, 175, 233, 0.5);
}

.login-form a {
    font-size: 12px;
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-form a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Botón con animación */
.login-form button {
    width: 100%;
    padding: 15px;
    background-color: var(--color-boton-sin-hover);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
    animation: fadeInButton 2s ease-in-out;
}

@keyframes fadeInButton {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.login-form button:hover {
    background-color: var(--color-boton-hover);
    color: #000;
}

.login-footer {
    margin-top: 20px;
    font-size: 14px;
    color: #555;
    animation: fadeInFooter 2.5s ease-in-out;
}

@keyframes fadeInFooter {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.login-footer a {
    color: #007bff;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

.error {
    position: absolute;
    right: calc(50% - 145px);
    top: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #c3ff00;
    color: white;
    height: 40px;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: bold;
    animation: quitar_mensaje 10s ease forwards;
}

.registro-melo {
    position: absolute;
    right: calc(50% - 145px);
    top: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #c3ff00;
    color: white;
    height: 40px;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: bold;
    animation: quitar_mensaje 10s ease forwards;
}

@keyframes quitar_mensaje {
    0%{
        opacity: 1;
    }

    95%{
        opacity: 0;
    }

    100%{
        display: none;
        opacity: 0;
    }
}

.login-container .regresar{
    width: 100%;
    padding: 15px;
    background-color: var(--color-boton-sin-hover);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    margin-top: 10px;
    display: block;
    text-align: center  ;
}

.login-container .regresar:hover{
    background-color: var(--color-boton-hover);
    color: #000;
    text-decoration: none;
}