/* /assets/css/auth.css */
/* Layout centré pour les pages de connexion/inscription */
.auth-page-body {
    height: 100%;
    overflow: hidden;
    background-color: #f4f7f9;
    display: flex;
    flex-direction: column;
}
.auth-page-body footer { display: none !important; }
.auth-page-body main {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 15px;
}

/* Boîte d'authentification */
.auth-box {
    width: 100%;
    max-width: 400px;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
}

/* Groupes de formulaire */
.auth-form-group {
    margin-bottom: 1rem;
    text-align: left;
}
.auth-form-group label {
    font-weight: 600;
    color: #475569;
    display: block;
    margin-bottom: 5px;
}
.auth-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-top: 5px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Affichage mot de passe */
.password-group {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 5px;
}
.password-group .auth-input {
    padding-right: 40px;
    margin-top: 0;
}
.toggle-password {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    font-size: 1.2rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}
.toggle-password:hover { color: #667eea; }

/* Messages d'alerte */
.auth-message {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.auth-message.success { background-color: #d1fae5; color: #047857; }
.auth-message.error { background-color: #fee2e2; color: #b91c1c; }

/* Layout centré pour les pages de connexion/inscription */
body.auth-page,
body:has(.auth-box) {
    height: 100vh;
    overflow: hidden;
    background-color: #f4f7f9;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

body.auth-page footer,
body:has(.auth-box) footer {
    display: none !important;
}

body.auth-page main,
body:has(.auth-box) main {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
}

/* Boîte d'authentification */
.auth-box {
    width: 100%;
    max-width: 400px;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
    margin: auto; /* Centrage vertical garanti */
}

/* =========================================================================
   STYLES SPÉCIFIQUES À L'INSCRIPTION (register.php)
========================================================================= */
.auth-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-honeypot { display: none; opacity: 0; position: absolute; left: -9999px; }
.ergo-fields {
    display: none;
    margin-top: 1rem;
    background: #f0f9ff;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #bae6fd;
}
.ergo-fields label { color: #0369a1; font-weight: bold; display: block; margin-bottom: 5px; }

/* =========================================================================
   STYLES SPÉCIFIQUES AU PAIEMENT RÉUSSI (success_payment.php)
========================================================================= */
.success-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 2px solid #10b981;
    text-align: center;
    max-width: 600px;
    width: 90%;
}
.success-icon { font-size: 5rem; margin-bottom: 20px; animation: bounce 1s infinite alternate; }
@keyframes bounce { 0% { transform: translateY(0); } 100% { transform: translateY(-15px); } }