
                      const strengthText = document.getElementById('strength-text');

                      if (password) {
                        meterContainer.style.display = 'block'; // Show the meter when typing
                        const result = zxcvbn(password);
                        const score = result.score; // Score ranges from 0 to 4

                        // Set meter width and color based on score
                        meter.style.width = (score + 1) * 20 + '%'; // Convert score to