.form-mdp {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 10vh !important;
    margin-top: 5vh;
}

#mail, #nv_mdp1, #nv_mdp2 {
    width: 100%;
    min-width: 350px;
    max-width: 500px;
    font-size: clamp(14px, 1.2vw, 16px);
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: clamp(14px, 1.2vw, 16px);
    color: #1b4f4e; 
}


.button_login {
    display: inline-block;
    padding: clamp(10px, 1.5vw, 14px);
    background-color: #388e7d;
    color: rgba(255, 255, 255, 0.90);
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    font-size: clamp(14px, 1.4vw, 16px);
    box-sizing: border-box;
    border: solid black 2px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
    font-family: Arial, sans-serif;
    width: 100%;
    max-width: 500px;
    transition: transform 0.2s ease-in-out;
}

.button_login:hover {
    background-color: #2d7163;
    transform: scale(1.02);
}

.button_annuler {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: clamp(10px, 2vh, 15px);
    width: 100%;
    max-width: 500px;
    padding: clamp(12px, 2vh, 16px);
    background-color: #a0b5b8;
    color: rgba(255, 255, 255, 0.90);
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: clamp(14px, 1.4vw, 16px);
    border: solid black 2px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
    font-family: Arial, sans-serif;
    transition: transform 0.2s ease-in-out;
    box-sizing: border-box;
}

.button_annuler:hover {
    background-color: #819496;
    transform: scale(1.02);
}




/* Styles pour les messages d'erreur */
.error-message {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 20px;
    border-radius: 8px;
    margin: 5vh auto 0 auto;
    max-width: 800px;
    width: 90%;
    font-weight: bold;
    font-family: Arial, sans-serif;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.success-message {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 20px;
    border-radius: 8px;
    margin: 5vh auto 0 auto;
    max-width: 800px;
    width: 90%;
    font-weight: bold;
    font-family: Arial, sans-serif;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.button-error-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
    /* 👇 correspond à .error-message */
    max-width: 800px;
    width: 90%;
    box-sizing: border-box;
}


.button_error {
    flex: 1;
    width: 100%;
    min-width: 200px;
    padding: clamp(12px, 2vh, 16px);
    background-color: #a0b5b8;
    color: #1d2b2e;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: clamp(14px, 1.4vw, 16px);
    border: solid black 2px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
    font-family: Arial, sans-serif;
    transition: transform 0.2s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.button_error:hover {
    background-color: #819496;
    transform: scale(1.02);
}




#nv_mdp1, #nv_mdp2 {
    width: 100%;
    max-width: 500px;
    font-size: clamp(14px, 1.2vw, 16px);
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: clamp(14px, 1.2vw, 16px);
    color: #1b4f4e; 
}

#nv_mdp1::placeholder,
#nv_mdp2::placeholder {
    color: #1b4f4e; /* un vert foncé élégant */
    opacity: 0.8; /* pour un peu de transparence si tu veux un effet adouci */
    font-style: italic; /* optionnel : pour une touche de distinction */
    text-align: center;
}