@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');
/* pour la  structure globale du formulaire */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Verdana, Geneva, Tahoma, sans-serif;
    background-color: white;
    min-height: 100vh;
    padding-top: 80px; /* espace sous menu fixe */
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background-color: rgb(255, 255, 255);
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); 
}

/*  le conteneur du formulaire */
.form-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px 80px;
    box-sizing: border-box;
}

/*  la boîte du formulaire */
.form-login {
    width: 100%;
    max-width: 600px;
    background-color: #fff;
    border-radius: 6px;
    /* box-shadow: 0 2px 6px rgba(0,0,0,0.05); */
    border: 1px solid rgb(0, 80, 0);
    overflow: hidden;
}

/* le titre  */
.form-login h2 {
    background-color: rgb(0, 118, 0);
    color: #fff;
    padding: 24px;
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

/* le corps du formulaire */
.form-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
}

.form-content label {
    align-self: flex-start;
    width: 80%;
    margin-top: 12px;
    margin-bottom: 4px;
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

.input-login {
    width: 80%;
    padding: 10px;
    margin-bottom: 16px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 14px;
}

/* le Bouton */
.button-login {
    background-color: rgb(0, 118, 0);
    color: white;
    font-weight: 600;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    padding: 10px 20px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.button-login:hover {
    background-color: rgb(19, 152, 38);
}

/* le message du succès */
.success-message {
    background-color: #e0ffe0;
    color: #006400;
    padding: 12px 20px;
    margin: 12px auto;
    border-radius: 4px;
    width: 80%;
    font-weight: bold;
    text-align: center;
}

/* les liens */
.form-bottom-links {
    text-align: center;
    padding: 0 24px;
    margin-top: 24px;
    font-size: 14px;
}

.link-login {
    color: rgb(0, 118, 0); 
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.link-login:hover {
    color: rgb(50, 168, 82);
    text-decoration: underline;
}

.link-separator {
    margin: 0 8px;
    color: #888;
}

/* la responsiv */
@media screen and (max-width: 768px) {
    .form-login {
        max-width: 90%;
    }

    .form-content label,
    .input-login,
    .button-login {
        width: 100%;
    }

    .form-bottom-links {
        padding: 0 12px;
        font-size: 13px;
    }
}

@media screen and (max-width: 480px) {
    .form-login h2 {
        font-size: 18px;
        padding: 16px;
    }

    .input-login {
        font-size: 13px;
        padding: 8px;
    }

    .button-login {
        font-size: 14px;
        padding: 10px;
    }

    .form-bottom-links {
        font-size: 12px;
    }
}
