/* login.css */

/* Style pour le conteneur du logo */
.logo-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 20px; /* Espacement entre le logo et le bloc formulaire */
}

.logo-container-mobile {
    display: none;
}

/* Style pour le logo */
.login-logo {
    max-width: 300px; /* Ajuster la taille du logo selon vos besoins */
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #06071d; /* gris foncé */
    color: #ffffff; /* texte blanc */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    width: 100%;
    max-width: 400px;
    background-color: #2A2B38; /* gris très foncé */
    border-radius: 35px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2); /* Ombre plus douce et étendue */
}

.form-container {
    text-align: center;
}

form {
    padding: 10px 40px 10px 40px;
    border-radius: 0 0 15px 15px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre les champs */
}

h2 {
    margin: 45px 30px 30px 10px;
    color: #ffffff;
}

label {
    display: block; /* Assurez-vous que les labels sont des blocs */
    margin: 10px 0 5px; /* Espace entre le label et l'input */
    text-align: left; /* Aligne le texte du label à gauche */
    width: 100%; /* Assurez-vous que le label prend toute la largeur du conteneur */
    font-weight: bold; /* Optionnel : mettre le texte du label en gras */
}

.required {
    color: red;
    margin-left: 5px; /* Optionnel : espace entre le texte et l'astérisque */
}

/* Style pour le conteneur des inputs avec icônes */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 290px;
    border: 1px solid #4d4d4d; /* Bordure de 1px */
    border-radius: 7px; /* Coins arrondis */
    padding: 5px; /* Espacement interne */
    margin: 6px 0px 6px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1); /* Ombre légère */
    background-color: #2A2B38;
}

.input-icon {
    margin-right: 8px; /* Espacement entre l'icône et l'input */
    fill: #666; /* Couleur de l'icône */
    width: 20px; /* Largeur de l'icône */
    height: 20px; /* Hauteur de l'icône */
}

.input-wrapper input {
    border: none; /* Supprime la bordure par défaut de l'input */
    outline: none; /* Supprime le contour par défaut de l'input */
    flex: 1; /* Permet à l'input de prendre toute la place disponible */
    padding: 8px; /* Espacement interne */
    color: #ffffff; /* Couleur du texte en blanc */
    background-color: #2A2B38;
}


/* Placeholder styles */
input::placeholder {
    color: #b0b0b0; /* Couleur du placeholder */
    opacity: 1; /* Assurez-vous que le placeholder est bien visible */
}

/* Couleur du texte dans l'input reste #b0b0b0 lorsque l'input est en focus mais vide */
input:focus::placeholder {
    color: #b0b0b0; /* Le placeholder reste de cette couleur lors du focus */
}

/* Quand l'input est rempli (après sélection), le texte devient blanc */
input:focus:not(:placeholder-shown) {
    color: #ffffff; /* Couleur du texte rempli */
}

/* Gérer les couleurs après autofill dans les navigateurs WebKit (Chrome, Safari) */
input:-webkit-autofill {
    -webkit-text-fill-color: #ffffff !important; /* Texte blanc après autofill */
    transition: background-color 5000s ease-in-out 0s; /* Empêche la couleur de fond de changer */
}

button {
    width: 100%;
    max-width: 300px; /* Largeur maximale pour mieux centrer le bouton */
    padding: 11px;
    margin-top: 10px;
    border: none;
    border-radius: 7px;
    background: linear-gradient(45deg, #FF41C7, #FFCA25); /* Dégradé */
    color: #000000; /* texte noir */
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: bold; /* Texte en gras */
}

button:hover {
    background: linear-gradient(45deg, #E639AB, #E6B823); /* Dégradé légèrement plus foncé */
}

.terms {
    display: flex;
    align-items: center;
    justify-content: left;
    margin: 10px 0;
    width: 100%;
}


.forgot-password {
    text-align: left; /* Aligner le texte à gauche */
    width: 100%; /* Assurez-vous que l'élément prend toute la largeur disponible */
    box-sizing: border-box; /* Inclut les bordures et les padding dans la largeur totale */
    margin: 6px 0; /* Ajustez les marges pour un bon espacement vertical */
    padding-left: 10px; /* Ajoute du padding à gauche pour aligner avec les champs */
    color: #b0b0b0; /* Couleur du texte */
    font-size: 0.7rem; /* Taille du texte */
    cursor: pointer; /* Curseur de pointeur */
}


.switch-form {
    margin-top: 7px;
    margin-bottom: 30px;
    color: #bbbbbb;
    font-size: 0.9rem;
}

.switch-form a {
    color: #ffffff;
    text-decoration: none;
}

.switch-form a:hover {
    text-decoration: underline;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    left: 50%; /* Centre horizontalement par rapport à l'écran */
    transform: translateX(-50%); /* Ajuste pour centrer parfaitement */
    background-color: #4caf50; /* vert pour succès */
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 1000; /* Assure que la notification est devant tout le reste */
}

.notification.show {
    opacity: 1;
    transform: translate(-50%, 20px); /* Fait glisser la notification vers le bas */
}

.notification.error {
    background-color: #f44336; /* rouge pour erreur */
}

#register-terms {
    font-size: 11px;
    color: #989898;
    margin: 30px;
}




.separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
    width: 100%;
    text-align: center;
    color: #bbb;
    font-size: 14px;
    font-weight: bold;
    position: relative;
}

.separator::before,
.separator::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #666;
    margin: 0 10px;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a2b38;
    color: #ffffff;
    border: 1px solid #ddd;
    padding: 10px;
    font-size: 14px;
    width: 100%;
    max-width: 300px; /* ✅ Pour éviter que le bouton ne soit trop large */
    cursor: pointer;
    border-radius: 5px;
    margin: 14px auto; /* ✅ Centre horizontalement */
}

.google-btn:hover {
    color: #373737;
}

.google-btn img {
    width: 20px;
    margin-right: 10px;
}



/* Media queries pour rendre la page responsive */
@media (max-width: 768px) {
    /* Ajuster la hauteur pour prendre toute la page sur mobile */
    body {
        height: 100vh;
        margin: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .container {
        width: 100%; /* Utiliser 100% de la largeur de l'écran sur mobile */
        height: 100%; /* Utiliser 100% de la hauteur de l'écran sur mobile */
        max-width: none; /* Supprimer la largeur maximale */
        margin: 0; /* Supprimer la marge */
        background-color: #06071d; 
        border-radius: 0; /* Supprimer les coins arrondis */
        box-shadow: none; /* Supprimer l'ombre */
    }

    /* Afficher le logo mobile sur les petits écrans */
    .logo-container-mobile {
        display: flex;
        justify-content: center;
        margin-bottom: 10px;
    }

    .account-form {
        margin-top: 0px;
    }

    .form-container {
        padding: 25px; /* Ajouter du padding interne pour éviter le débordement */
    }

    form {
        padding: 0; /* Réduire le padding pour les petits écrans */
    }

    .input-wrapper {
        max-width: 97%;
        background-color: #06071d; 
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    button {
        max-width: 100%;
        background-color: #06071d; 
    }

    /* Ajuster le logo pour les petits écrans */
    .logo-container {
        margin-bottom: 10px;
    }

    .login-logo {
        max-width: 270px;
    }

    .forgot-password {
        padding-left: 0px;
    }

    .google-btn {
        width: 100%;
        max-width: none;
    }
}
