@import url(./variables.css);

* {
    margin: 0;
}

body {
    background-color: var(--background-color);
}

.container {
    width: 1240px;
    margin: 0 auto;
    padding-bottom: 50px;
}

h1 {
    color: white;
    font-family: var(--accent-font);
    font-size: 40px;
    font-style: normal;
    font-weight: 900;
    text-transform: uppercase;
    margin-top: 50px;
}

.flex-row {
    margin-top: 40px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.text-section {
    width: 610px;
}

#subtitle {
    color: white;
    font-family: var(--accent-font);
    font-size: 32px;
    font-style: normal;
    font-weight: 900;
}

#subtitle a {
    color: var(--secondary-color);
    font-family: var(--accent-font);
    font-size: 32px;
    font-style: normal;
    font-weight: 900;
    text-decoration-line: underline;
}

.inputs {
    margin: 45px 0;
    display: flex;
    flex-direction: column;
}

.style-input {
    width: -webkit-fill-available;
    font-size: 16px;
    color: white;
    background-color: #151515;
    border: none;
    font-family: var(--body-font);
}
.style-input:focus {
    outline: none; /* Ajout de cette ligne pour supprimer l'outline par défaut */
}

.space1 {
    margin-bottom: 40px;
}
.space2 {
    margin-bottom: 30px;
}

.flex-space-between {
    display: flex;
    justify-content: space-between;
}

.remember-check {
    display: flex;
    align-items: center;
    gap: 20px;
}

.remember-check label {
    display: block;
    color: white;
    font-family: var(--body-font);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    cursor: pointer;
}

.remember-check input[type="checkbox"] {
    width: 15px;
    height: 15px;
    appearance: none; /* Masque les styles natifs de la case à cocher */
    -webkit-appearance: none;
    border: 1px solid #fff; /* Bordure blanche */
    background-color: transparent; /* Fond transparent */
    outline: none; /* Supprime le contour par défaut */
    cursor: pointer; /* Curseur pointer au survol */
}

.remember-check input[type="checkbox"]:checked::before {
    content: "\2713"; /* Code Unicode pour un check mark (vérifiez si le caractère est correct pour votre police) */
    font-size: 15px; /* Taille de la coche */
    color: #fff; /* Couleur blanche */
    position: relative;
    top: -4px;
    left: 1px;
}

#forgot-password {
    color: var(--secondary-color);
    font-family: var(--body-font);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    text-decoration-line: underline;
    cursor: pointer;
}

#connexion {
    padding: 10px;
    border: unset;
    border-radius: 5px;
    background-color: var(--primary-color);
    cursor: pointer;
    transition: 0.2s linear;
    color: white;
    font-family: var(--body-font);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
}

#connexion:hover {
    background-color: #231649;
}

#illustration {
    object-fit: cover;
    width: 505px;
    height: 505px;
}
/* ... Vos styles existants ... */

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.popup-content {
    background-color: var(--background-color);
    margin: 15% auto;
    padding: 20px;
    position: relative;
    width: 650px;
    border-radius: 5px;
}

.close-popup {
    line-height: 18px;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: white;
}

.flex-popup {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
}

#title-change-password {
    font-family: var(--body-font);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    color: white;
    padding: 10px;
    border: none;
}

.flex-popup button {
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-family: var(--body-font);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    color: white;
    background-color: var(--primary-color);
}

.space2 input {
    position: relative;
}

#toggle-password {
    background-color: transparent;
    border: none;
}

#eye-open {
    display: none;
    width: 14px;
    height: 14px;
    filter: invert();
}
#eye-closed {
    display: block;
    width: 14px;
    height: 14px;
    color: white;
    filter: invert();
}

.error-message {
    color: #ff0000; /* Couleur rouge pour le message d'erreur */
    font-family: var(--body-font);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    margin-top: 10px; /* Marge en haut du message d'erreur */
}

.logo-input {
    width: 17px;
    height: 17px;
}

.flex-logo-input {
    display: flex;
    align-items: center;
    background-color: #151515;
    gap: 10px;
    border: solid 1px #fff;
    border-top-style: none;
    border-right-style: none;
    border-left-style: none;
    width: -webkit-fill-available;
    padding: 10px;
}

@media screen and (max-width: 970px) {
    .container {
        width: calc(100% - 40px);
        margin: 0 20px;
        box-sizing: border-box;
    }

    #illustration {
        display: none;
    }
    .text-section {
        width: 100%;
    }
    .flex-space-between {
        flex-direction: column;
    }
    #forgot-password {
        margin-top: 20px;
    }
    #subtitle {
        font-size: 24px;
    }
    #subtitle a {
        font-size: 24px;
    }
    h1 {
        font-size: 35px;
    }
    .inputs {
        margin: 45px 0 20px 0;
    }
}
