  /* Estilos generales del cuerpo */
  body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    background: #000; /* Fondo negro para el video */
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Barra de navegación */
header {
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Contenedor del video */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    padding-top: 80px; /* Espacio para la barra de navegación */
    padding-bottom: 60px; /* Espacio para el pie de página */
}

/* Video de fondo */
.video-container {
    position: absolute;
    top: 93px;
    left: 0px;
    width: 90%;
    height: 104%;
    overflow: hidden;
}
.background-video {
    width: 80%;
    height: 80%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1; 
}

/* Contenedor del formulario */
.container {
    width: 360px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 2; /* Asegura que el formulario esté sobre el video */
    margin-top: 40px; /* Separación del video */
    margin-bottom: 40px; /* Separación del pie de página */
    left: 700px;
}

/* Encabezado del formulario */
.header {
    background: #ffffff;
    color: #000000;
    padding: 15px;
    font-size: 1.5em;
    font-weight: bold;
}

/* Estilos de los grupos de formulario */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9em;
    color: #333;
}
.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input:focus,
.form-group select:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}

/* Botones */
.button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}
.button:hover {
    background-color: #0056b3;
}

/* Enlaces de alternancia de formularios */
.form-toggle {
    margin-top: 20px;
    font-size: 0.9em;
}
.form-toggle a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}
.form-toggle a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Estilos específicos para el formulario de registro */
#register-form {
    width: 300px; /* Ajusta el ancho del contenedor */
    margin: auto; /* Centra el contenedor horizontalmente */
    padding: 20px; /* Asegura el espacio interno adecuado */
    border-radius: 10px; /* Asegura bordes redondeados */
    background-color: #ffffff; /* Fondo blanco para el contenedor */
    box-shadow: 0 4px 8px rgb(255, 255, 255); /* Sombra para el contenedor */
}

/* Ajusta los estilos para los elementos dentro del contenedor reducido */
#register-form .form-group {
    margin-bottom: 15px; /* Espacio reducido entre los grupos de formulario */
}

#register-form .form-group label {
    font-size: 0.8em; /* Tamaño de fuente reducido para etiquetas */
}

#register-form .form-group input,
#register-form .form-group select {
    font-size: 0.9em; /* Tamaño de fuente reducido para entradas y selectores */
}

/* Ajusta el tamaño del botón dentro del formulario de registro */
#register-form .button {
    padding: 10px; /* Reducir el relleno del botón */
    font-size: 1em; /* Tamaño de fuente reducido */
}

/* Ajusta el espacio entre el botón y los enlaces de alternancia */
#register-form .form-toggle {
    margin-top: 10px; /* Reducir el margen superior */
    font-size: 0.8em; /* Tamaño de fuente reducido */
}

/* Pie de página */
footer {
    background: rgb(255, 255, 255);
    color: #000000;
    padding: 5px;
    text-align: center;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.3);
}

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        width: 80%;
    }
    header img {
        width: 300px;
    }
    .navbar-brand img {
        max-width: 140px;
    }
    .background-video {
        width: 100%;
        height: 100%;
    }
}

/* Teléfonos (480px - 768px) */
@media (max-width: 768px) {
    .container {
        width: 90%;
    }
    header img {
        width: 250px;
    }
    .navbar-brand img {
        max-width: 100px;
    }
    .background-video {
        width: 100%;
        height: 100%;
    }
}

/* Pantallas pequeñas (hasta 480px, como relojes o teléfonos pequeños) */
@media (max-width: 480px) {
    .container {
        width: 95%;
    }
    header img {
        width: 200px;
    }
    .navbar-brand img {
        max-width: 80px;
    }
    .main-content {
        flex-direction: column;
    }
    .video-container {
        height: 80%;
    }
    .background-video {
        width: 100%;
        height: 100%;
    }
}