/* Styles pour la page d'inscription */

main.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 160px); /* Hauteur de la page moins le header et footer */
    padding: 3rem 0; /* Un peu plus de padding vertical pour les formulaires plus longs */
}

.form-page-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

.register-card {
    background: var(--surface-color);
    background-color: var(--bg-color-light);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 480px; /* Un peu plus large pour le formulaire d'inscription */
    border: 1px solid var(--border-color);
}

.register-card h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
}

/* Styles de formulaire partagés avec login.css */
.form-group {
    margin-bottom: 1.25rem; /* Un peu moins d'espace pour un formulaire plus dense */
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.btn {
    width: 100%;
    padding: 0.85rem;
    border: none;
    border-radius: 4px;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1rem; /* Espace au-dessus du bouton */
}

.btn:hover {
    background-color: var(--primary-color-dark);
}

.switch-form-link {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.switch-form-link p {
    margin: 0;
    color: var(--text-color);
}

.switch-form-link a {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
}

.switch-form-link a:hover {
    text-decoration: underline;
}

/* Messages d'erreur */
.error-messages {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    text-align: center;
    background-color: #ffebee;
    border: 1px solid #e57373;
    color: #c62828;
}

.error-messages p {
    margin: 0.25rem 0;
}
