/**
 * Password Strength Meter Styles
 * SOC2 Item #11 - Password Policy UX Hints
 */

.password-strength-container {
    margin-top: 10px;
    margin-bottom: 15px;
}

/* Strength Bar */
.password-strength-bar {
    margin-bottom: 15px;
}

.strength-bar-container {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

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

/* Strength Colors */
.strength-bar-fill.strength-gray {
    background-color: #9e9e9e;
    width: 0%;
}

.strength-bar-fill.strength-red {
    background-color: #f44336;
}

.strength-bar-fill.strength-orange {
    background-color: #ff9800;
}

.strength-bar-fill.strength-yellow {
    background-color: #ffc107;
}

.strength-bar-fill.strength-green {
    background-color: #4caf50;
}

/* Strength Text */
.strength-text {
    font-size: 14px;
    color: #666;
}

.strength-label {
    font-weight: bold;
    transition: color 0.3s ease;
}

.strength-label.strength-gray {
    color: #9e9e9e;
}

.strength-label.strength-red {
    color: #f44336;
}

.strength-label.strength-orange {
    color: #ff9800;
}

.strength-label.strength-yellow {
    color: #f57f17;
}

.strength-label.strength-green {
    color: #4caf50;
}

/* Requirements List */
.password-requirements {
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
    margin-top: 10px;
}

.requirement-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirements-list li {
    padding: 6px 0;
    font-size: 14px;
    color: #666;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.requirement-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    margin-right: 10px;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.requirements-list li .requirement-icon {
    background-color: #e0e0e0;
    color: #999;
}

.requirements-list li.met {
    color: #4caf50;
}

.requirements-list li.met .requirement-icon {
    background-color: #4caf50;
    color: white;
}

.requirements-list li.unmet {
    color: #666;
}

.requirements-list li.unmet .requirement-icon {
    background-color: #e0e0e0;
    color: #999;
}

/* Responsive */
@media (max-width: 600px) {
    .password-requirements {
        padding: 10px;
    }

    .requirements-list li {
        font-size: 13px;
    }

    .requirement-title {
        font-size: 13px;
    }
}

/* Animation for requirement met */
@keyframes checkmark {
    0% {
        transform: scale(0.8);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.requirements-list li.met .requirement-icon {
    animation: checkmark 0.3s ease;
}
