/* ========================================
   PAGES AUTH — Login / Register
   ======================================== */

.auth-page {
    margin-top: 76px;
    min-height: calc(100vh - 76px - 300px);
    background: #fafbfc;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

/* ==== Card formulaire centrée ==== */
.auth-shell {
    max-width: 460px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 2.25rem 2rem;
}
.auth-head {
    margin-bottom: 1.75rem;
}
.auth-head h1 {
    font-size: 1.6rem;
    font-weight: 800 !important;
    color: #1a1a1a !important;
    letter-spacing: -0.4px;
    margin-bottom: 0.3rem !important;
}
.auth-head p {
    color: #64748b !important;
    font-size: 0.92rem;
    margin: 0;
}

/* Champs */
.auth-field {
    margin-bottom: 1rem;
}
.auth-field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}
.auth-field label .required { color: #dc2626 !important; }
.auth-input {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.auth-input:focus-within {
    border-color: #00C853;
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.1);
}
.auth-input > i {
    width: 44px;
    text-align: center;
    color: #94a3b8 !important;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}
.auth-input:focus-within > i { color: #00C853 !important; }
.auth-input input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 12px 10px 12px 0 !important;
    font-size: 0.92rem !important;
    color: #1a1a1a !important;
    outline: none !important;
    min-width: 0;
}
.auth-input input::placeholder { color: #cbd5e1 !important; }
.auth-toggle-pw {
    width: 44px;
    height: 46px;
    border: none;
    background: transparent;
    color: #94a3b8 !important;
    cursor: pointer;
    transition: color 0.2s ease;
}
.auth-toggle-pw:hover { color: #00C853 !important; }
.auth-hint {
    font-size: 0.76rem;
    color: #64748b !important;
    margin-top: 4px;
    padding-left: 4px;
}

/* Checkbox stylés */
.auth-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #475569 !important;
    cursor: pointer;
}
.auth-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: #00C853;
    cursor: pointer;
    flex-shrink: 0;
}
.auth-check a {
    color: #00C853 !important;
    text-decoration: none !important;
    font-weight: 600;
}
.auth-check a:hover { text-decoration: underline !important; }

/* Bouton submit */
.btn-auth {
    width: 100%;
    background: linear-gradient(135deg, #00C853 0%, #00E676 100%);
    color: white !important;
    border: none;
    padding: 0.95rem 1.5rem;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.98rem;
    letter-spacing: 0.3px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(0, 200, 83, 0.3);
    transition: transform 0.2s ease, box-shadow 0.25s ease;
}
.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 200, 83, 0.45);
    color: white !important;
}
.btn-auth i { color: white !important; }

/* Ligne "mot de passe oublié" sous le form */
.auth-forgot {
    display: block;
    text-align: right;
    font-size: 0.82rem;
    color: #64748b !important;
    text-decoration: none !important;
    margin: -0.4rem 0 1rem;
}
.auth-forgot:hover { color: #00C853 !important; }

/* Séparateur + switch vers l'autre page */
.auth-switch {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
    font-size: 0.88rem;
    color: #64748b !important;
}
.auth-switch a {
    color: #00C853 !important;
    font-weight: 700;
    text-decoration: none !important;
    margin-left: 4px;
}
.auth-switch a:hover { text-decoration: underline !important; }

/* Alertes */
.auth-alert {
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.87rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.auth-alert i { font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.auth-alert.error {
    background: #fef2f2;
    border-left: 3px solid #dc2626;
    color: #991b1b !important;
}
.auth-alert.error i { color: #dc2626 !important; }
.auth-alert.success {
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.08), rgba(0, 230, 118, 0.04));
    border-left: 3px solid #00C853;
    color: #00A042 !important;
}
.auth-alert.success i { color: #00C853 !important; }
.auth-alert ul { margin: 0; padding-left: 1rem; }

/* Forme à 2 colonnes pour nom/prénom sur register */
.auth-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.auth-row .auth-field { min-width: 0; }
.auth-row .auth-input { min-width: 0; }

/* ==== Responsive ==== */
@media (max-width: 576px) {
    .auth-shell { padding: 1.75rem 1.25rem; border-radius: 16px; }
}
@media (max-width: 480px) {
    .auth-row { grid-template-columns: 1fr; }
}
