* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: hidden;
    /* Empêcher le scroll horizontal */
}

body {
    font-family: 'Inter', sans-serif;
    width: 100%;
}

.page1 {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../images/background.webp);
    background-position: center center;
    background-size: cover;
    overflow: hidden;
    gap: 1rem;
}

main {
    padding: 2rem;
    border-radius: 15px;
    max-width: 800px;
    margin: 20px auto;
}

/* Conteneur de formulaire */
.form-container {
    padding: 25px;
    background-color: #FFF;
}

.haut {
    margin-bottom: 1.5rem;
}

/* Titre du formulaire */
.haut h2 {
    margin-bottom: 0.5rem;
    font-size: 1.6rem;
    font-weight: 600;
}

.haut p {
    font-size: 1rem;
}

/* Lien de connexion */
.haut p a {
    color: black;
    text-decoration: underline;
    transition: color 0.3s ease;
}


/* Champs de saisie */
label {
    font-weight: bold;
    font-size: 0.85rem;
    margin-top: 1rem;
}

input,
select {
    margin-bottom: 1rem;
    padding-bottom: 10px;
    border: none;
    border-bottom: #f4f4f4 2px solid;
    width: 100%;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
select:focus {
    border-color: #000;
    outline: none;
}

/* Messages d'erreur */
.message {
    color: #FF6B6B;
    font-weight: bold;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 1rem;
    padding: 0.5rem;
    border: 1px solid #FF6B6B;
    border-radius: 8px;
    background-color: rgba(255, 107, 107, 0.1);
}

.form-container label {
    display: flex;
    flex-direction: column;
}

/* Bouton d'inscription */
button[type="submit"] {
    background: linear-gradient(60deg, #c98853, #d5b763 80%, #c98853);
    color: #FFF;
    border: none;
    padding-block: 16px;
    font-size: 1rem;
    font-weight: bold;
    margin-top: 1.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

button[type="submit"]:hover {
    background: #000;
}

/* Ajustement des marges pour correspondre au style global */
.form-container {
    margin-top: 1.5rem;
}

/* Mot de passe oublié */
.forgot-password {
    text-align: start;
    font-size: 1rem;
}

.forgot-password a {
    text-decoration: none;
    color: #000;
    font-size: 12px;
    text-decoration: underline;
}



@media screen and (min-width: 768px) {

    main {
        padding: 3rem;
        border-radius: 15px;
        max-width: 600px;
        margin: 30px auto;
    }

    .form-container {
        padding: 2rem;
    }

    .haut h2 {
        font-weight: 600;
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .haut p {
        font-size: 1rem;
    }

    input,
    select {
        font-size: 1rem;
    }

    button[type="submit"] {
        margin-top: 2rem;
    }


    .forgot-password {
        margin-top: 15px;
        font-size: 1rem;
    }

}


@media screen and (min-width: 1024px) {

    /* Section principale */
    .page1 {
        min-height: 100vh;
        padding: 4rem 2rem;
    }

    main {
        width: 900px;
        padding: 4rem;
        border-radius: 20px;
    }

    .form-container {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2rem;
    }

    #loginFormContainer {
        width: 100%;
    }

    .forgot-password {
        font-size: 1rem;
        text-align: start;
    }


}