/**
 * Password Strength Indicator Styles
 * 
 * @package YOOPixel Management
 * @since 2.3.0
 */

/* Password Strength Indicator */
.password-strength-indicator {
    margin-top: 8px;
    font-size: 13px;
    min-height: 25px;
    display: block;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background-color: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 2px;
}

/* Strength Levels */
.password-strength-indicator.very-weak .strength-fill,
.strength-fill.strength-very-weak {
    width: 20%;
    background-color: #ef4444;
}

.password-strength-indicator.weak .strength-fill,
.strength-fill.strength-weak {
    width: 40%;
    background-color: #f59e0b;
}

.password-strength-indicator.fair .strength-fill,
.strength-fill.strength-fair {
    width: 60%;
    background-color: #eab308;
}

.password-strength-indicator.good .strength-fill,
.strength-fill.strength-good {
    width: 80%;
    background-color: #3b82f6;
}

.password-strength-indicator.strong .strength-fill,
.strength-fill.strength-strong {
    width: 100%;
    background-color: #10b981;
}

.strength-label {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #64748b;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.password-strength-indicator.very-weak .strength-label {
    color: #ef4444;
}

.password-strength-indicator.weak .strength-label {
    color: #f59e0b;
}

.password-strength-indicator.fair .strength-label {
    color: #eab308;
}

.password-strength-indicator.good .strength-label {
    color: #3b82f6;
}

.password-strength-indicator.strong .strength-label {
    color: #10b981;
}

.strength-feedback {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

/* Password Match Indicator */
.password-match-indicator {
    margin-top: 6px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.password-match-indicator.match {
    color: #10b981;
}

.password-match-indicator.match .dashicons {
    color: #10b981;
}

.password-match-indicator.mismatch {
    color: #ef4444;
}

.password-match-indicator.mismatch .dashicons {
    color: #ef4444;
}

/* Password Field States */
input.password-match {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.1) !important;
}

input.password-mismatch {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.1) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .password-strength-indicator {
        font-size: 12px;
    }
    
    .strength-label {
        font-size: 11px;
    }
    
    .strength-feedback {
        font-size: 10px;
    }
}

