/* Container principal pour centrer le formulaire */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 20px;
}

/* Carte du formulaire avec effet glassmorphism discret */
.form-card {
    background-color: #1a1a1a;
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid #2c2c2c;
}

.auth-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 10px;
    color: #fff;
}

.auth-subtitle {
    text-align: center;
    color: #888;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

/* Style des champs de saisie */
.auth-form .input-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.auth-form label {
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ccc;
}

.auth-form input {
    background-color: #242424;
    border: 1px solid #333;
    padding: 12px 15px;
    border-radius: 6px;
    color: #fff; /* Force le texte en blanc contrairement à votre all-page.css */
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.auth-form select {
    background-color: #242424;
    border: 1px solid #333;
    padding: 12px 15px;
    border-radius: 6px;
    color: #fff; /* Force le texte en blanc contrairement à votre all-page.css */
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.auth-form textarea {
    background-color: #242424;
    border: 1px solid #333;
    padding: 12px 15px;
    border-radius: 6px;
    color: #fff; /* Force le texte en blanc contrairement à votre all-page.css */
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    min-width: 100%;
    max-width: 100%;
    min-height: 100px;
    max-height: 100px;
    resize: none;
}

.auth-form input:focus {
    outline: none;
    border-color: #2ecc71; /* Vert matchant votre accueil */
    box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.2);
}

/* Bouton d'inscription */
.btn-submit {
    width: 100%;
    padding: 14px;
    background-color: #2ecc71; /* Vert de l'accueil */
    color: #121212 !important; /* Texte sombre pour lisibilité */
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: transform 0.2s, background-color 0.3s;
}

.btn-submit:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
}

.success-banner {
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #2ecc71;
    margin-bottom: 20px;
    text-align: center;
}

/* Message d'erreur */
.error-banner {
    background-color: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #e74c3c;
    margin-bottom: 20px;
    font-size: 0.85rem;
    text-align: center;
}

.auth-footer {
    margin-top: 25px;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

.auth-footer a {
    color: #2ecc71;
    font-weight: bold;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.input-password {
    width: 100%;
}

.password-field-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-field-container input {
    width: 100%;
    padding-right: 45px !important;
    margin-top: 0;
}

.password-toggle-btn {
    position: absolute;
    right: 8px;
    color: white !important;
    background: transparent !important;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.password-toggle-btn:hover {
    color: #2ecc71 !important; /* Utilisation du vert de ton projet */
}

/* Mot de passe correcte*/
.pwd-conditions {
    padding-top: 15px;
    padding-left: 10px;
}

.pwd-conditions p {
    padding-bottom: 15px;
}

.pwd-confirm-check {
    padding-top: 15px;
    padding-left: 10px;
}

.pwd-conditions li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pwd-conditions .invalid {
    color: #e15f50;
}

.pwd-conditions .valid {
    color: #2ecc71;
}