body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    color: #fff;
    overflow-x: hidden;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
}

.header {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    display: flex;
    gap: 15px;
}

.content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #f7e4bc;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    opacity: 0;
    animation: fadeInUp 1.5s ease-out forwards;
}

.subtitle {
    font-size: 1.3rem;
    margin-bottom: 50px;
    color: #f0e6d2;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeInUp 1.8s ease-out forwards;
    animation-delay: 0.3s;
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 350px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInUp 2s ease-out forwards;
    animation-delay: 0.6s;
}

.menu-button {
    display: block;
    padding: 18px 30px;
    background: transparent;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    border: 2px solid #ffffff;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
    text-align: center;
}

.menu-button:hover {
    opacity: 0.8;
    transform: translateY(-5px);
}

.login-button {
    display: inline-block;
    padding: 10px 20px;
    background: transparent;
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.login-button:hover {
    opacity: 0.8;
    transform: translateY(-3px);
}

.login-form {
    max-width: 400px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInUp 2s ease-out forwards;
    animation-delay: 0.6s;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #f0e6d2;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #ffffff;
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #f7e4bc;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 5px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-check-input {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #ffffff;
    border-radius: 4px;
}

.form-check-label {
    font-size: 1rem;
    color: #f0e6d2;
}

.link {
    display: inline-block;
    color: #f7e4bc;
    text-decoration: none;
    font-size: 1rem;
    margin-top: 15px;
    transition: color 0.3s ease;
}

.link:hover {
    color: #ffffff;
}

.button-group {
    display: flex;
    gap: 15px; /* Espaciado uniforme entre botones */
    align-items: center;
    margin-bottom: 10px;
}

.button-group .menu-button {
    flex: 1; /* Hace que los botones ocupen espacio proporcional */
    max-width: 180px; /* Límite máximo de ancho basado en tu diseño */
    text-align: center;
    padding: 12px 20px; /* Ajuste para consistencia con otros botones */
}

.button-group .link {
    margin-top: 10px; /* Espaciado vertical para el enlace "¿Olvidaste tu contraseña?" */
    display: block; /* Asegura que el enlace ocupe su propio espacio */
}

/* Media query para pantallas pequeñas */
@media (max-width: 768px) {
    .title {
        font-size: 2.8rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .menu-button {
        font-size: 1.1rem;
        padding: 15px 25px;
    }

    .login-button {
        font-size: 0.9rem;
        padding: 8px 15px;
    }

    .header {
        top: 10px;
        right: 10px;
    }

    .login-form {
        max-width: 300px;
    }

    .form-control {
        padding: 10px;
        font-size: 0.9rem;
    }

    .button-group {
        flex-direction: column;
        gap: 10px; /* Reduce el espaciado en móviles */
    }

    .button-group .menu-button {
        max-width: 100%; /* Botones ocupan todo el ancho en móviles */
    }

    .button-group .link {
        margin-top: 5px;
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }

    
}

/* ====== VIDEO DE FONDO UNIVERSAL ====== */
.video-background {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;          /* ← clave: dynamic vh */
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

#background-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Fallback para browsers viejos (aunque ya casi no hace falta) */
@supports not (height: 100dvh) {
    #background-video,
    .video-background {
        height: 100vh;
    }
}

/* OVERLAY SI LO USAS */
.video-background .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1;
}


