StealThis .dev

Login Page

Clean, modern login page with email/password fields, remember me, forgot password link, OAuth social buttons, and form validation. Pure HTML/CSS/JS.

Open in Lab
css vanilla-js
Targets: JS HTML

Code

Login Page

A polished authentication login page with email + password fields, “Remember me” checkbox, forgot-password link, Google/GitHub OAuth buttons, and client-side validation with inline error messages.

Features

  • Split layout: decorative left panel + form right panel (collapses to full on mobile)
  • Email and password fields with floating labels
  • Show/hide password toggle
  • “Remember me” checkbox
  • Google and GitHub social sign-in buttons
  • Client-side validation: email format, required fields, empty password check
  • Loading spinner on submit with simulated async delay
  • Redirect to register page link

How it works

  1. Form submit handler prevents default, validates fields, and sets .loading state
  2. Errors render below each field with role="alert" for screen reader announcement
  3. Password toggle changes input type between text and password