/* ========================================
   PASSWORD VALIDATOR STYLES
   ======================================== */

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
}

/* Toggle Password Visibility Button */
.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    z-index: 10;
    padding: 5px;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #84c529;
}

/* B2B Theme - Gold color on hover */
.b2b-register-container .toggle-password:hover {
    color: #ffc107;
}

/* Password Requirements Box */
.password-requirements {
    margin-top: 12px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 3px solid #e0e0e0;
    display: block;
}

/* Individual Requirement Item */
.requirement {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    color: #666;
    transition: all 0.3s ease;
}

.requirement i {
    font-size: 14px;
    transition: all 0.3s ease;
}

/* Valid Requirement State */
.requirement.valid {
    color: #28a745;
}

.requirement.valid i {
    color: #28a745;
}

.requirement.valid i.fa-circle-o::before {
    content: "\f058"; /* fa-check-circle */
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 12px;
}

/* Strength Bar Container */
.strength-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

/* Strength Bar Fill */
.strength-bar-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 10px;
}

/* Strength Levels */
.strength-bar-fill.weak {
    width: 25%;
    background: #dc3545;
}

.strength-bar-fill.fair {
    width: 50%;
    background: #ffc107;
}

.strength-bar-fill.good {
    width: 75%;
    background: #17a2b8;
}

.strength-bar-fill.strong {
    width: 100%;
    background: #28a745;
}

/* Strength Text */
.strength-text {
    font-size: 13px;
    font-weight: 600;
}

.strength-text.weak {
    color: #dc3545;
}

.strength-text.fair {
    color: #ffc107;
}

.strength-text.good {
    color: #17a2b8;
}

.strength-text.strong {
    color: #28a745;
}

/* Password Match Feedback */
.password-match-feedback {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    display: none;
    align-items: center;
    gap: 8px;
}

/* Match State */
.password-match-feedback.match {
    display: flex;
    background: #d4edda;
    color: #155724;
    border-left: 3px solid #28a745;
}

/* No Match State */
.password-match-feedback.no-match {
    display: flex;
    background: #f8d7da;
    color: #721c24;
    border-left: 3px solid #dc3545;
}

/* Responsive Design */
@media (max-width: 768px) {
    .password-requirements {
        padding: 12px;
    }
    
    .requirement {
        font-size: 12px;
        padding: 5px 0;
    }
    
    .password-match-feedback {
        font-size: 12px;
        padding: 8px 10px;
    }
}
