[BUG] Login form error state layout is visually broken
While testing the login form, I noticed a visual issue with how error messages are displayed. When required fields are left empty and the form is submitted:
The "Required" error message appears outside the input field container, misaligned from the corresponding field. There's an unnecessary gap between the input field and the error message. The "Forgot your password?" link overlaps awkwardly with the Password field. The text spacing and flow break the visual hierarchy and usability.
To Reproduce Steps to reproduce the behavior:
- Open the login form
- Leave both
UsernameandPasswordfields empty - Click the Login button
- Observe the error messages and layout
Expected behavior Error messages should be close to their input fields, and the layout should remain clean and readable, without overlapping or breaking the form's structure.
Screenshots
Device:
- OS: Windows 11
- Browser Chrome, Opera
Sorry @AhmadRaza365 I had to fix this myself because I need to release. The fix is in https://github.com/steveiliop56/tinyauth/commit/f780e81ec2fe5f5e550e5d2525d5cdd9bea47c0a basically the p style from shadcn had a margin if it's not the first child, I don't know why but removing it works.