/* Password Strength Meter Styles */
.password-strength-meter {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin: 8px 0;
}

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

.password-strength-bar.very-weak {
    background-color: #dc3545;
}

.password-strength-bar.weak {
    background-color: #fd7e14;
}

.password-strength-bar.fair {
    background-color: #ffc107;
}

.password-strength-bar.good {
    background-color: #20c997;
}

.password-strength-bar.strong {
    background-color: #198754;
}

.password-strength-feedback {
    margin-top: 8px;
    font-size: 0.875rem;
}

.strength-indicator {
    font-weight: 600;
    margin-bottom: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.strength-indicator.very-weak {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.strength-indicator.weak {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.strength-indicator.fair {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.strength-indicator.good {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.strength-indicator.strong {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.strength-feedback {
    list-style: none;
    padding: 0;
    margin: 8px 0;
}

.strength-feedback li {
    padding: 2px 0;
    color: #6c757d;
}

.strength-feedback li:before {
    content: "⚠️ ";
    margin-right: 4px;
}

/* Success messages get a different icon */
.strength-feedback li.success-message:before {
    content: "✅ ";
    margin-right: 4px;
}

.strength-suggestions {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 8px;
    margin-top: 8px;
    font-size: 0.8rem;
    color: #495057;
}

/* Animation for strength changes */
.password-strength-bar {
    animation: strengthPulse 0.5s ease-in-out;
}

@keyframes strengthPulse {
    0% { transform: scaleX(0.95); }
    50% { transform: scaleX(1.05); }
    100% { transform: scaleX(1); }
}

/* Password submission error */
.password-submission-error {
    animation: slideIn 0.3s ease-out;
    border-left: 4px solid #dc3545;
}

/* Password mismatch error */
.password-mismatch-error {
    animation: slideIn 0.3s ease-out;
    border-left: 4px solid #ffc107;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

/* Password toggle button */
.password-toggle-btn {
    transition: color 0.2s ease;
    top: 2rem;
    z-index: 10;
    border: none !important;
    background: none !important;

}

.password-toggle-btn:hover {
    color: #495057 !important;
    background: rgba(0,0,0,0.05) !important;
}

.password-toggle-btn:focus {
    outline: none;
    color: #007bff !important;
    box-shadow: none !important;
}

/* Ensure input container has proper positioning */
.input-group, .form-group {
    position: relative;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .password-strength-feedback {
        font-size: 0.8rem;
    }
    
    .strength-suggestions {
        font-size: 0.75rem;
    }
}
