Skip to content

Authentication pages: sign in, sign up, forgot password

Three consistent screens in one card: sign in, sign up with live password criteria, and a reset request.

  • Tailwind
  • React
  • CSS
  • WordPress
Open in a new tab

Description

Visitors move between screens without a page reload, and the e-mail address already typed follows them. Sign in offers a password reveal, Remember me and a warning when Caps Lock is on. Sign up shows three criteria that tick as you type and checks that the confirmation matches. Forgot password always gives the same answer, whether the account exists or not, so it never reveals who is registered. Errors appear under each field on submit and focus moves to the first field to fix; fields carry the right autocomplete attributes for password managers. Accessibility: everything works with the keyboard, each message is tied to its field through aria-describedby and aria-invalid, the reveal button is a toggle (aria-pressed), criteria and Caps Lock are announced by live regions, focus moves to the heading of each new screen, contrast exceeds 4.5:1 in light and dark modes and the animation stops with prefers-reduced-motion. Without JavaScript, the three forms stay usable with browser validation. Plug in your authentication service: atr:submit event in HTML, onSubmit prop in React.

Code

Loading the code…

The code of this component in

Archive contents

pages-authentification-trio-html-tailwind.zip3 files · 9 Ko

  • index.html29 Ko
  • README.md4 Ko
  • LICENSE.md1 Ko

Tags

Updated on December 2, 2026.

Reviews

No reviews yet.

In the same spirit

  • A recruitment form for small businesses: target position, introduction, CV checked in the browser and GDPR consent, with inline errors.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A quote request form whose labels, hints and error messages are full French sentences, still readable at 320 px: nothing overflows, nothing is cut off, and each error is tied to its field.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Visitors pick a package and tick options: the pre-tax total, VAT and total including tax update live, and the summary is sent with the contact form.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A short NPS survey: a 0 to 10 score as radio buttons, then a follow-up question adapted to whether the customer is a detractor, passive or promoter.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component