.password-validator {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    font-size: 14px;
}

.password-validator.hidden {
    display: none;
}

.validator-title {
    font-weight: 600;
    color: #495057;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.password-requirements {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.password-requirements li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    transition: all 0.2s ease;
}

.requirement-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.requirement-icon.invalid {
    background-color: #dc3545;
    color: white;
}

.requirement-icon.invalid::before {
    content: "✕";
}

.requirement-icon.valid {
    background-color: #28a745;
    color: white;
}

.requirement-icon.valid::before {
    content: "✓";
}

.requirement-text {
    color: #6c757d;
    transition: color 0.2s ease;
}

.password-requirements li.valid .requirement-text {
    color: #28a745;
    font-weight: 500;
}

.password-requirements li.invalid .requirement-text {
    color: #dc3545;
}

.password-strength {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}

.strength-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

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

.strength-fill.weak {
    background-color: #dc3545;
    width: 25%;
}

.strength-fill.fair {
    background-color: #fd7e14;
    width: 50%;
}

.strength-fill.good {
    background-color: #ffc107;
    width: 75%;
}

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

.strength-text {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

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

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

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

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

.password-validator.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .form-control {
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: #495057;
}

.password-toggle:focus {
    outline: none;
    color: #667eea;
}

.password-toggle .eye-icon {
    display: block;
}

.password-toggle .eye-closed {
    display: none;
}

@media (max-width: 768px) {
    .password-validator {
        padding: 12px;
        margin: 12px 0;
        font-size: 13px;
    }
    
    .requirement-icon {
        width: 14px;
        height: 14px;
        font-size: 9px;
    }
    
    .password-requirements {
        gap: 6px;
    }
    
    .password-toggle {
        right: 8px;
        padding: 6px;
    }
    
    .password-toggle .eye-icon {
        width: 18px;
        height: 18px;
    }
}

.password-match {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}

.password-mismatch {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}