/* Styles pour toutes les modales d'authentification */
.auth-modal .modal-input {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.auth-modal .modal-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(255, 111, 15, 0.1);
    background: white;
    transform: scale(1.01);
}

.auth-modal .btn-primary-modal {
    background: var(--primary);
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: white;
}

.auth-modal .btn-primary-modal:hover {
    background: #e55a00;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 111, 15, 0.3);
    color: white;
}

.auth-modal .modal-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.auth-modal .modal-link:hover {
    color: #e55a00;
}

.auth-modal .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.auth-modal .modal-error {
    background: #f8d7da;
    color: #721c24;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.auth-modal .modal-success {
    background: #d4edda;
    color: #155724;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.auth-modal .modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.auth-modal .modal-header-custom {
    padding: 2rem 2rem 1rem 2rem;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.auth-modal .modal-header-custom .modal-title {
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.auth-modal .modal-header-custom .brand-text {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.1rem;
    margin: 0;
}

.auth-modal .modal-body-custom {
    padding: 1rem 2rem 2rem 2rem;
    max-height: 70vh;
    overflow-y: auto;
}

.auth-modal .modal-footer-custom {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
}
/* Ajoutez ces règles à votre modals.css existant */
/* Ajoutez à votre modals.css */
#emailLoginModal .modal-input,
#emailLoginModal .btn-primary-modal,
#emailLoginModal .modal-link,
#emailLoginModal .modal-error,
#emailLoginModal .modal-success,
#emailLoginModal .modal-content,
#emailLoginModal .modal-header-custom,
#emailLoginModal .modal-header-custom .modal-title,
#emailLoginModal .modal-header-custom .brand-text,
#emailLoginModal .modal-body-custom,
#emailLoginModal .modal-footer-custom {
    /* Hérite de tous les styles des autres modales */
}

/* CSS pour les indicateurs de mot de passe - À ajouter à modals.css */

.password-requirements {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e9ecef;
}

.password-criteria {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
}

.criterion {
    display: flex;
    align-items: center;
    padding: 0.25rem 0;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.criterion i {
    width: 16px;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.criterion span {
    transition: color 0.3s ease;
}

.criterion.valid i {
    color: #28a745 !important;
}

.criterion.valid span {
    color: #28a745;
    text-decoration: line-through;
    opacity: 0.8;
}

.password-strength {
    margin-top: 0.5rem;
}

.password-strength .progress {
    border-radius: 4px;
    overflow: hidden;
    height: 8px;
}

.password-strength .progress-bar {
    transition: width 0.6s ease, background-color 0.6s ease;
}

/* Styles pour les boutons de visibilité du mot de passe */
.password-toggle {
    cursor: pointer;
    padding: 0.25rem 0.5rem !important;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--primary) !important;
}

.password-toggle:focus {
    outline: none;
    box-shadow: none;
}

/* Animation pour les critères validés */
.criterion i.fa-check {
    animation: checkmark 0.5s ease-in-out;
}

@keyframes checkmark {
    0% { transform: scale(0); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Styles pour le champ de mot de passe */
.password-input:focus, .password-confirm:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 111, 15, 0.1) !important;
}

/* Styles pour l'indicateur de correspondance des mots de passe */
.password-match {
    transition: all 0.3s ease;
}

.password-match.valid {
    color: #28a745 !important;
}

.password-match.valid i {
    color: #28a745 !important;
}

/* Bouton de soumission désactivé */
.btn-primary-modal:disabled {
    background: #6c757d;
    border-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.65;
}

.btn-primary-modal:disabled:hover {
    background: #6c757d;
    border-color: #6c757d;
    transform: none;
    box-shadow: none;
}

/* Responsive pour les critères */
@media (max-width: 768px) {
    .password-requirements .row {
        margin: 0;
    }

    .password-requirements .col-md-6 {
        padding: 0;
    }

    .password-requirements .col-md-6:first-child {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .password-requirements {
        padding: 0.75rem;
    }

    .criterion {
        font-size: 0.8rem;
    }

    .modal-input {
        font-size: 0.9rem;
    }
}

/* CSS pour les conditions d'utilisation */
.terms-link {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.terms-link:hover {
    color: #e55a00;
    text-decoration: underline;
}

.terms-section {
    margin-top: 1rem;
    border-top: 1px solid #e9ecef;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.terms-content {
    padding: 1rem 0;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
    border: 1px solid #e9ecef;
}

.terms-content h6 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
}

.terms-text {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.terms-text h7 {
    display: block;
    font-size: 0.9rem;
    color: var(--dark);
    margin: 1rem 0 0.5rem 0;
}

.terms-text h7:first-child {
    margin-top: 0;
}

.terms-text p {
    margin-bottom: 0.75rem;
    color: #555;
}

.terms-text ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.terms-text li {
    margin-bottom: 0.25rem;
    color: #555;
}

.terms-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.terms-actions .btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Scrollbar personnalisée pour les conditions */
.terms-text::-webkit-scrollbar {
    width: 6px;
}

.terms-text::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.terms-text::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.terms-text::-webkit-scrollbar-thumb:hover {
    background: #e55a00;
}

/* FIX : Affichage des onglets dans la modale de profil */
#profileModal .tab-content {
    display: block;
}

#profileModal .tab-pane {
    display: none;
    opacity: 1;
}

#profileModal .tab-pane.active,
#profileModal .tab-pane.show {
    display: block;
}

/* Responsive pour les conditions */
@media (max-width: 576px) {
    .terms-content {
        padding: 1rem;
    }

    .terms-text {
        max-height: 250px;
        font-size: 0.8rem;
    }

    .terms-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .terms-actions .btn {
        width: 100%;
    }
}