Skip to content

itisrajeevsingh/advanced-html-auth-forms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔐 Advanced HTML Auth Forms

A modern and responsive authentication system built using HTML, CSS, and Vanilla JavaScript.
This project demonstrates real-world form validation, UI state management, and clean DOM manipulation.


🚀 Live Features

✨ Login & Sign Up Tabs
✨ Client-side Form Validation
✨ Strong Password Validation Rules
✨ Show / Hide Password Toggle
✨ Forgot Password Screen
✨ Responsive Mobile Layout
✨ Clean Modular JavaScript Logic


🛠 Tech Stack

  • HTML5
  • CSS3 (Flexbox + Responsive Design)
  • Vanilla JavaScript (DOM Manipulation & Validation)

📸 Project Preview

🔐 Login Screen

Login

📝 Sign Up Screen

Signup

📱 Mobile Login

Login Mobile

📱 Mobile Sign Up

Signup Mobile


🧠 Validation Logic Implemented

✅ Login Validation

  • Valid Email Format Check
  • Minimum Password Length Check

✅ Sign Up Validation

  • Full Name Required
  • Valid Email Pattern
  • Minimum 8 Characters Password
  • At Least One Uppercase Letter
  • At Least One Number
  • Confirm Password Match Check

🔎 Client vs Server Validation

Client-Side Validation Server-Side Validation
Runs in browser Runs on backend
Faster feedback More secure
Improves UX Prevents data tampering

This project demonstrates client-side validation logic using JavaScript.


advanced-html-auth-forms/ │ ├── index.html ├── style.css ├── script.js └── output/ ├── html-form-login.png ├── html-form-signup.png ├── html-form-login-mobile.png └── html-form-signup-mobile.png

📂 Project Structure


💼 Interview Talking Points

If asked:

How did you implement validation?

Using regular expressions, conditional checks, and controlled form submission using event.preventDefault().

How do you prevent invalid submissions?

By blocking submission until all validation rules pass and displaying contextual error messages.

Why use client-side validation?

To enhance user experience and reduce unnecessary server requests.


🎯 What This Project Demonstrates

  • Clean UI Design
  • Responsive Layout Strategy
  • Form State Handling
  • DOM Manipulation
  • Event Handling Best Practices
  • Practical Real-World Authentication UI

📌 Future Improvements

  • Backend Integration (Node.js / Express)
  • JWT Authentication
  • Database Integration
  • Toast Notifications
  • Accessibility Improvements

👨‍💻 Author

Rajeev Ranjan Singh
Frontend Developer


⭐ If you found this project useful, consider giving it a star!

About

Responsive authentication forms with validation, password toggle, and forgot password flow built using HTML, CSS, and JavaScript.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors