main {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.auth-page {
    min-height: auto; /* ou supprimer */
    display: block; /* plus de flex centré vertical */
    padding: 3rem 1rem;
}


.auth-page .container {
    width: 100%;
    max-width: 520px;
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

/* ----- Titre ----- */
.auth-page h1 {
    text-align: center;
    margin-bottom: 1.8rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: #222;
}

/* ----- Messages d'erreur ----- */
.errors {
    background: #fde8e8;
    border-left: 4px solid #d02727;
    color: #a10e0e;
    padding: 1rem 1.2rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.errors ul {
    margin: 0;
    padding-left: 1.2rem;
}

/* ----- Formulaire ----- */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

/* Groupes */
.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

/* Inputs */
.form-group input {
    padding: 0.7rem 0.9rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: 0.2s;
    background: #fafafa;
}

.form-group input:focus {
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
    outline: none;
}

/* ----- Bouton ----- */
.btn-primary {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.85rem 1.2rem;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 0.8rem;
}

.btn-primary:hover {
    background: #1e4edc;
}

/* ----- Lien sous le bouton ----- */
.auth-form p {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.95rem;
}

.auth-form p a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

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

/* ----- Responsive ----- */
@media (max-width: 520px) {
    .auth-page .container {
        padding: 1.8rem;
    }

    .auth-page h1 {
        font-size: 1.6rem;
    }
}
