/* Styles pour la fenêtre modale et le bouton de connexion – Respect des styles du thème blocksy-child */

/* Modal overlay et contenu */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    position: relative;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Bouton de fermeture */
.close-modal {
    position: absolute;
    top: -10px;
    right: -10px;
    background: red;
    color: #fff;
    border-radius: 50%;
    font-size: 24px;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    cursor: pointer;
}

/* Bouton dans la modal : héritage complet des couleurs du thème */
.modal-content button {
    display: block;               /* Permet de centrer le bouton */
    margin: 10px auto;            /* Centre horizontalement avec marge verticale */
    min-width: 150px;             /* Largeur minimale de 150px */
    max-width: 300px;             /* Largeur maximale de 300px */
    width: auto;                  /* S'adapte au contenu */
    padding: 8px 16px;            /* Espacement interne */
    font-size: 16px;
    border: 1px solid currentColor; /* Bordure qui utilise la couleur héritée du texte */
    border-radius: 4px;
    cursor: pointer;
    background: transparent !important; /* Pas de couleur de fond imposée */
    color: inherit !important;          /* Le texte hérite de la couleur du thème */
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.modal-content button:hover {
    background-color: rgba(0, 0, 0, 0.05) !important; /* Effet léger au survol */
}

/* Messages d'alerte et de succès */
.login-security-alert {
    padding: 10px;
    background-color: #f2dede;
    border: 1px solid #ebccd1;
    color: #a94442;
    margin: 15px 0;
    border-radius: 4px;
}

.login-security-success {
    padding: 10px;
    background-color: #dff0d8;
    border: 1px solid #d6e9c6;
    color: #3c763d;
    margin: 15px 0;
    border-radius: 4px;
}