fix(auth): resolve UI inconsistencies, password strength bar, and browser reveal button across auth pages#1662
Conversation
|
@nur-hasin is attempting to deploy a commit to the Om Roy's projects Team on Vercel. A member of the Team first needs to authorize it. |
Thanks for creating a PR for your Issue!
|
|
Hi @omroy07, regarding my previous PR (#1661) that was merged, I had requested the addition of the SWoC26 label as I am participating in both ECWoC26 and SWoC26, but it has yet to be added. This new PR is also for both programs. Kindly ensure both ECWoC26 and SWoC26 labels are added during review. Thank you. |
|
🎉 Congrats @nur-hasin on getting your PR merged! 🙌 |
|
Is it possible to add both ECWoC26 and SWoC26 labels to PR? I'd really appreciate it if you'd let me know. Thank you. |
Which issue does this PR close?
Rationale for this change
Several visual, layout, and interaction bugs were present across the authentication pages that created an inconsistent user experience. These fixes ensure the auth pages look and behave correctly across all screen sizes, theme modes, and browsers.
What changes are included in this PR?
Forgot Password - Responsive Centering Fix: In
login.css, the@media (max-width: 768px)block replacedalign-items: flex-startandpadding-top: 20pxwithdisplay: flex,justify-content: centerandalign-items: centerso the form stays vertically centered at all screen sizes.Border Radius Mismatch - All Auth Pages:
overflow: hiddenwas applied to.form-containerin bothlogin.cssandregister.cssso the top green decorative::beforebar is clipped correctly within the container's rounded corners on login, register and forgot-password pages.Login Button Text Color in Light Mode: A
[data-theme="light"]rule targeting.form-container button[type="submit"]setscolor: var(--text-primary)so the button text is dark in light mode, matching the register and forgot-password pages.Register Page Scrollbar - Back Button and Scrollbar: The
.back-buttonblock and its hover/icon styles were removed fromregister.cssas the back button is no longer present inregister.html. The back button element itself was also removed from the HTML. This eliminates unnecessary spacing that was contributing to the vertical scrollbar.Password Strength Bar - Width and Empty Field Reset: In
register.js, thecheckPasswordStrengthfunction now setsstrengthBar.style.widthexplicitly on every keystroke so the bar fills correctly. An early return resets the bar width to0%and clears the label text when the field is empty, fixing the issue where "Weak" lingered after clearing. Apassword.length >= 16bonus ensures sufficiently long passwords reach the "Strong" level.checkPasswordStrengthis now wired directly to the password field's input event at the bottom ofregister.js.Native Browser Password Reveal Button: - All Auth Pages: In
login.cssandregister.css, the native browser password eye icon is hidden using::-ms-reveal,::-ms-clear,::-webkit-contacts-auto-fill-button,::-webkit-credentials-auto-fill-buttonandinput::-webkit-revealso it no longer conflicts with the custom green toggle on login, register and forgot-password pages.Background Image - Forgot Password and Register Pages:
forgot-password.htmlandregister.htmlnow include the background image inline on<body>matching the login page, so all three auth pages share a consistent full-screen background in both light and dark mode.Are these changes tested?
Manually tested across Chrome, Edge and Firefox:
Are there any user-facing changes?
Yes:
Screenshots