/* Styles pour les fonctionnalités de sécurité */

/* Messages de sécurité */
.security-info {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border: 1px solid #f0ad4e;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    color: #8a6d3b;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideDown 0.3s ease-out;
}

.security-info i {
    color: #f0ad4e;
    font-size: 16px;
}

/* Temps d'attente */
.wait-time {
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 4px;
    font-size: 12px;
    color: #721c24;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.wait-time i {
    color: #dc3545;
    animation: pulse 2s infinite;
}

/* Indicateur de force du mot de passe */
.password-strength {
    margin-top: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.strength-bar {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.strength-fill {
    height: 100%;
    border-radius: 3px;
    transition: all 0.3s ease;
    position: relative;
}

.strength-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

.strength-text {
    font-size: 12px;
    font-weight: 600;
    color: #495057;
}

.password-errors {
    margin-top: 8px;
    padding: 0;
    list-style: none;
}

.password-errors li {
    font-size: 11px;
    color: #dc3545;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.password-errors li::before {
    content: '⚠';
    font-size: 10px;
    color: #ffc107;
}

/* États du bouton de connexion */
.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.auth-btn.blocked {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    position: relative;
}

.auth-btn.blocked::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #dc3545, #ffc107, #dc3545);
    border-radius: 12px;
    z-index: -1;
    animation: rotateBorder 3s linear infinite;
}

/* Effets d'animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes rotateBorder {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .security-info,
    .password-strength {
        font-size: 13px;
        padding: 10px 12px;
    }
    
    .wait-time {
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .password-errors li {
        font-size: 10px;
    }
    
    .strength-bar {
        height: 5px;
    }
}

/* Mode sombre (optionnel) */
@media (prefers-color-scheme: dark) {
    .security-info {
        background: linear-gradient(135deg, #2d1810 0%, #4a2c2a 100%);
        border-color: #6c4a00;
        color: #ffc107;
    }
    
    .password-strength {
        background: #2d3436;
        border-color: #636e72;
    }
    
    .strength-text {
        color: #ddd;
    }
    
    .wait-time {
        background: rgba(220, 53, 69, 0.2);
        color: #ff6b7a;
    }
}
