/**
 * Password Strength Meter Styles
 *
 * @package HTMembership
 */

/* Password Requirements */
.htm-password-requirements {
    margin: 10px 0;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 13px;
}

.htm-password-requirements strong {
    display: block;
    margin-bottom: 8px;
    color: #495057;
}

.htm-password-requirements ul {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
}

.htm-password-requirements li {
    margin: 4px 0;
    color: #6c757d;
}

/* Password Strength Meter */
.htm-password-strength-meter {
    margin: 10px 0;
    padding: 0;
}

.htm-strength-bar {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.htm-strength-progress {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.htm-strength-text {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

/* Password Feedback */
.htm-strength-feedback {
    font-size: 12px;
    margin-top: 8px;
}

.htm-feedback-warning {
    color: #dc3545;
    font-weight: 600;
    margin-bottom: 6px;
}

.htm-feedback-suggestions {
    margin: 0;
    padding-left: 18px;
    list-style: disc;
}

.htm-feedback-suggestions li {
    color: #6c757d;
    margin: 3px 0;
}

/* Password Match Indicator */
.htm-password-match {
    margin: 8px 0;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.htm-password-match.match {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.htm-password-match.no-match {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.htm-match-icon {
    font-weight: bold;
    font-size: 16px;
}

.htm-match-text {
    flex: 1;
}

/* Responsive Design */
@media (max-width: 576px) {
    .htm-password-requirements {
        font-size: 12px;
        padding: 10px;
    }
    
    .htm-strength-text {
        font-size: 12px;
    }
    
    .htm-strength-feedback {
        font-size: 11px;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    .htm-password-requirements {
        background: #343a40;
        border-color: #495057;
    }
    
    .htm-password-requirements strong {
        color: #f8f9fa;
    }
    
    .htm-password-requirements li {
        color: #adb5bd;
    }
    
    .htm-strength-bar {
        background: #495057;
    }
    
    .htm-feedback-suggestions li {
        color: #adb5bd;
    }
}

/* Integration with HTMembership Forms */
.htm-form .htm-form-field .htm-password-requirements,
.htm-form .htm-form-field .htm-password-strength-meter,
.htm-form .htm-form-field .htm-password-match {
    margin-left: 0;
    margin-right: 0;
}

/* Animation for meter appearance */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.htm-password-strength-meter {
    animation: slideDown 0.2s ease-out;
}
