/* public/assets/css/forgot-password.css */

/* Import du CSS de base */
@import url('app.css');
@import url('login.css');

/* Styles spécifiques à la demande de mot de passe oublié */

.help-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid rgba(255, 255, 255, 0.3);
    line-height: 1.5;
}

/* Adaptation RTL pour le texte d'aide */
[dir="rtl"] .help-text {
    text-align: right;
    border-left: none;
    border-right: 3px solid rgba(255, 255, 255, 0.3);
    font-family: 'Alarabiya', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.help-text i {
    color: rgba(255, 255, 255, 0.7);
    margin-right: 0.5rem;
}

[dir="rtl"] .help-text i {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* Styles pour les alertes de flash */
.alert {
    background: rgba(255, 82, 82, 0.2);
    border: 1px solid rgba(255, 82, 82, 0.4);
    color: #ff5252;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    animation: shake 0.5s ease-in-out;
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #ff5252;
}

[dir="rtl"] .alert::before {
    left: auto;
    right: 0;
}

.alert-success {
    background: rgba(46, 213, 115, 0.2);
    border: 1px solid rgba(46, 213, 115, 0.4);
    color: #2ed573;
}

.alert-success::before {
    background: #2ed573;
}

.alert-info {
    background: rgba(79, 128, 255, 0.2);
    border: 1px solid rgba(79, 128, 255, 0.4);
    color: #4f80ff;
}

.alert-info::before {
    background: #4f80ff;
}

.alert-warning {
    background: rgba(255, 165, 2, 0.2);
    border: 1px solid rgba(255, 165, 2, 0.4);
    color: #ffa502;
}

.alert-warning::before {
    background: #ffa502;
}

/* Adaptation RTL pour les icônes dans les alertes */
[dir="rtl"] .alert i {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* Email validation feedback */
.email-validation {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.email-validation.valid {
    background: rgba(46, 213, 115, 0.1);
    border: 1px solid rgba(46, 213, 115, 0.3);
    color: #2ed573;
}

.email-validation.invalid {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: #ff4757;
}

/* Loading state pour le bouton */
.mybtn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.mybtn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Instructions supplémentaires */
.forgot-instructions {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}

.forgot-instructions h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.forgot-instructions p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.forgot-instructions .step {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    text-align: left;
}

[dir="rtl"] .forgot-instructions .step {
    text-align: right;
}

.forgot-instructions .step-number {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #4f80ff, #03ceff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    margin-right: 0.8rem;
    flex-shrink: 0;
}

[dir="rtl"] .forgot-instructions .step-number {
    margin-right: 0;
    margin-left: 0.8rem;
}

.forgot-instructions .step-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

/* Conseils de sécurité */
.security-tips {
    background: linear-gradient(135deg, rgba(79, 128, 255, 0.1), rgba(3, 206, 255, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.security-tips h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.security-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.security-tips li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    padding-left: 1.5rem;
    position: relative;
}

[dir="rtl"] .security-tips li {
    padding-left: 0;
    padding-right: 1.5rem;
}

.security-tips li::before {
    content: '🔒';
    position: absolute;
    left: 0;
    top: 0;
}

[dir="rtl"] .security-tips li::before {
    left: auto;
    right: 0;
}

/* Responsive pour la page de mot de passe oublié */
@media (max-width: 768px) {
    .forgot-instructions {
        padding: 1rem;
    }

    .forgot-instructions .step {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    [dir="rtl"] .forgot-instructions .step {
        text-align: center;
    }

    .security-tips {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .help-text {
        padding: 0.8rem;
        font-size: 0.85rem;
    }

    .forgot-instructions h4 {
        font-size: 1rem;
    }

    .security-tips h4 {
        font-size: 1rem;
    }
}