/* Configuration de la vidéo de fond */
#myVideo {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: -1;
    object-fit: cover;
}

/* Style du conteneur de la modal */
.modal-content {
    background-color: #fefefe; /* Couleur opaque */
    border: 1px solid #888;
    width: 90%;
    max-width: 400px; /* Taille maximale pour limiter la largeur sur les grands écrans */
    padding: 16px;
    margin: auto;
}

/* Centre la modal */
.modal {
    display: flex; /* Utilise Flexbox pour le centrage vertical et horizontal */
    align-items: center;
    justify-content: center;
    height: 100vh; /* Prend toute la hauteur de l'écran */
    padding: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Ajoute un fond semi-transparent autour de la modal */
}

/* Ajustements pour les petits écrans */
@media (max-width: 576px) {
    .modal-content {
        width: 100%;
        padding: 20px;
        border-radius: 0;
    }

    #myVideo {
        min-width: 100vw;
        min-height: 100vh;
    }
}

button, input[type=text], input[type=password] {
    width: 100%; /* S'assure que les champs prennent toute la largeur disponible */
    padding: 12px 20px;
    margin: 8px 0;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

/* Affiche le titre au centre */
.modal-header {
    display: flex;
    justify-content: center;
}
