/* Existing CSS (keep all of this) */
@import url('https://fonts.googleapis.com/css2?family=Alata&family=Bebas+Neue&family=Gabarito&display=swap');

body {
    font-family: 'Alata', sans-serif; /* Police principale */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background: radial-gradient(circle at center, #074382, #051039);
}

.form-container {
    margin-top: 30px;
    margin-bottom: 30px;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px; /* This is the target width */
    text-align: center; /* Centre le contenu du formulaire */
}

.form-container a{
    color: #0056b3;
}

input[type="email"],
input[type="text"],
input[type="password"] {
    font-family: 'Alata', sans-serif;
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

input[type="submit"] {
    font-family: 'Alata', sans-serif;
    width: 100%;
    padding: 10px;
    background-color: #051039;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
    background-color: #2C3658;
}

p[style="color:red;"] {
    margin-top: 10px; /* Ajoute une marge au-dessus du message d'erreur */
    margin-bottom: 15px;
}

/* Styles pour l'en-tête (à copier depuis index.css si nécessaire) */
.header-container {
    margin-top: 20px;
    margin-bottom: 15px;
    padding: 12px 10px; /* Réduction du padding horizontal */
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-family: 'Alata', sans-serif;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.header-title {
    flex-grow: 1;
    text-align: center;
    font-size: 17px;
    font-weight: bold;
    margin: 0;
}

/* Add some basic styling for the password requirements hint */
.password-hint {
    font-size: 0.85em;
    color: #666;
    margin-top: -10px;
    margin-bottom: 10px;
    text-align: left;
    padding-left: 5px;
}
.password-hint ul {
    list-style: none;
    padding: 0;
    margin: 5px 0;
}
.password-hint ul li {
    margin-bottom: 3px;
}
.password-hint ul li.valid {
    color: green;
}
.password-hint ul li.invalid {
    color: red;
}

.g-recaptcha {
    margin-bottom: 10px;
}

.toast-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    background-color: #4CAF50;
    color: white;
    padding: 1px 15px; /* Adjusted: Smaller vertical padding, fixed horizontal padding */
    width: 355px; /* NEW: Fixed width to match the form-container */
    box-sizing: border-box; /* Ensures padding is included in the width */
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out, visibility 0.5s ease-out;
    font-family: 'Alata', sans-serif;
    text-align: center; /* NEW: Center the text horizontally */
    /* Removed: white-space: nowrap; - not needed with fixed width */
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

/* --- Media Queries pour les écrans de petite taille (téléphones) --- */
@media (max-width: 768px) { /* Applique ces styles pour les écrans jusqu'à 768px de large */
    .form-container {
        width: calc(100% - 40px); /* Prend 100% de la largeur moins 20px de marge de chaque côté */
        margin: 20px auto; /* Centre le formulaire horizontalement et ajoute une marge verticale */
        padding: 20px; /* Réduit un peu le padding pour les petits écrans */
    }

    .toast-notification {
        width: calc(100% - 40px); /* Ajuste la largeur du toast pour correspondre au formulaire */
        padding: 10px 15px; /* Ajuste le padding du toast */
    }
}