/* Styles pour les erreurs de formulaire */
.field-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.form-input.error,
.form-select.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.error-messages {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.error-messages ul {
    margin: 0;
    padding-left: 1.25rem;
    color: #dc2626;
}

.error-messages li {
    margin-bottom: 0.5rem;
}

.error-messages li:last-child {
    margin-bottom: 0;
}

/* Styles pour l'indicateur de force du mot de passe */
.password-strength {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    min-height: 20px;
}

.strength-bar {
    height: 4px;
    background-color: #e5e7eb;
    border-radius: 2px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.password-strength.weak .strength-bar {
    background-color: #ef4444;
    width: 25px;
}

.password-strength.medium .strength-bar {
    background-color: #f59e0b;
    width: 50px;
}

.password-strength.strong .strength-bar {
    background-color: #10b981;
    width: 75px;
}

.password-strength span {
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.password-strength.weak span {
    color: #ffffff;
}

.password-strength.medium span {
    color: #ffffff;
}

.password-strength.strong span {
    color: #ffffff;
}

/* Style par défaut quand aucune classe n'est appliquée */
.password-strength:not(.weak):not(.medium):not(.strong) .strength-bar {
    background-color: #e5e7eb;
    width: 75px;
}

.password-strength:not(.weak):not(.medium):not(.strong) span {
    color: #6b7280;
}

/* Styles pour la validation de l'email */
.email-input-group {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.email-input-group:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.email-input-group input {
    border: none;
    flex: 1;
    padding: 0.75rem;
    font-size: 1rem;
    background: transparent;
}

.email-input-group input:focus {
    outline: none;
    box-shadow: none;
}

.email-suffix {
    padding: 0.75rem;
    background-color: #f9fafb;
    color: #6b7280;
    font-weight: 500;
    border-left: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
}

.email-suffix i {
    margin-right: 0.5rem;
}

/* Styles pour les champs de mot de passe avec icône eye */
.password-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-group input {
    flex: 1;
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.3s ease;
    z-index: 1;
}

.password-toggle:hover {
    color: #374151;
}

.password-toggle i {
    font-size: 1rem;
}

/* Message de succès */
.success-message {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 2rem;
}

.success-content {
    text-align: center;
    max-width: 500px;
    padding: 3rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.success-content i {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 1.5rem;
}

.success-content h2 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.875rem;
    font-weight: 700;
}

.success-content p {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.success-content .btn {
    margin-top: 1.5rem;
    padding: 0.75rem 2rem;
    font-weight: 600;
}

/* États de chargement */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Styles pour le captcha */
.captcha-container {
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    padding: 1rem;
    background: #f8f9fa;
    margin-bottom: 0.5rem;
}

.captcha-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    text-align: center;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.captcha-question .loading {
    color: #7f8c8d;
    font-style: italic;
}

.captcha-input {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.captcha-input input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    text-align: center;
}

.captcha-input input:focus {
    border-color: #3498db;
    outline: none;
}

.captcha-refresh {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
}

.captcha-refresh:hover {
    background: #2980b9;
}

.captcha-refresh i {
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .success-content {
        padding: 2rem;
        margin: 1rem;
    }
    
    .success-content i {
        font-size: 3rem;
    }
    
    .success-content h2 {
        font-size: 1.5rem;
    }
} 