/* Container principal pour centrer le formulaire */
.inscription-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 20px;
}

/* La carte blanche contenant le formulaire */
.form-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 650px; /* Largeur maximale pour ne pas être trop étiré */
    margin: auto;
}

/* Titre du formulaire */
.form-title {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
    font-size: 1.8rem;
    font-weight: 600;
}

/* Groupes de champs (Label + Input) */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}

/* Stylisation des champs input générés par Django */
.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* Important pour que le padding ne dépasse pas */
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #0056b3;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 86, 179, 0.2);
}

/* Textes d'aide (help_text) */
.help-text {
    display: block;
    color: #6c757d;
    font-size: 0.85em;
    margin-top: 5px;
}

/* Messages d'erreur par champ */
.error-text {
    color: #dc3545;
    font-size: 0.9em;
    margin-top: 5px;
    font-weight: 500;
}

/* Alertes globales (erreurs générales) */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Bouton d'inscription */
.btn-submit {
    width: 100%;
    padding: 12px;
    background-color: #0056b3; /* Bleu standard, à adapter selon votre charte */
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #004494;
}

/* Lien de retour à la connexion */
.login-link {
    text-align: center;
    margin-top: 25px;
    font-size: 0.95rem;
}

.login-link a {
    color: #0056b3;
    text-decoration: none;
    font-weight: 500;
}

.login-link a:hover {
    text-decoration: underline;
}