﻿/* COMMUN */
.card {
    max-width: 400px;
    margin: 0 auto;
}

.text-danger {
    color: var(--color1);
    font-size: var(--tailleTexteDanger);
    text-align: center;
}

.form-actions {
    text-align: right;
    margin-top: 10px;
}

/* Login */
.login_page {
    max-width: 400px;
}

.login_page .field {
    margin-bottom: 12px;
}

.login_page .form-actions {
    display: flex;
    align-items: center;
    gap: 12px; /* espace entre bouton et lien */
    margin-top: 12px;
}

    .login_page .form-actions .forgot {
        margin-left: auto; /* pousse le lien à droite */
        font-size: 16px;
        text-decoration: underline;
        color: var(--fg);
    }

        .login_page .form-actions .forgot:hover {
            color: var(--color1);
        }

/* Option responsive: empile sur petits écrans */
@media (max-width: 420px) {
    .login_page .form-actions {
        flex-wrap: wrap;
        gap: 8px;
    }

        .login_page .form-actions .forgot {
            margin-left: 0;
            margin-top: 6px;
        }
}

/* Register */
.register_page {
    max-width: 400px;
}

.register_page .field {
    margin-bottom: 12px;
}

.register_page .form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

    .register_page .form-actions .forgot {
        margin-left: auto;
        font-size: 16px;
        text-decoration: underline;
        color: var(--fg);
    }

        .register_page .form-actions .forgot:hover {
            color: var(--color1);
        }

/* Register link on login page */
.register-link {
    margin-top: 20px;
    text-align: center;
    font-size: 15px;
}

    .register-link a {
        margin-left: 6px;
        text-decoration: underline;
        color: var(--color1);
    }

        .register-link a:hover {
            opacity: 0.8;
        }

/* Forgot password */
.forgot_page .form {
    max-width: 500px;
    margin: auto;
}

/* Change password */
.changePassword_page p {
    color: var(--color1);
}

.changePassword_page label {
    display: flex;
    align-items: center;
    margin-top: 30px;
}

/* Change password success */
.changePasswordSuccess_page p {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.card_wide {
    max-width: none; /* laisse page_wide gérer */
}

/* Reset password */
.resetPasswordInvalid_page .text {
    color: var(--color1);
    text-align: center;
}

.resetPasswordInvalid_page .action-right {
    text-align: center;
}
