# Gradient Login Form

> A polished sign-in card floating on a full-viewport diagonal gradient, with a brand logo, real-time email and password validation, inline error messaging, a password visibility toggle, and social sign-in buttons — fully token-driven and design-system agnostic.

- Category: Login
- Frameworks: Vanilla, React + CSS, React + Tailwind
- Design system: Sunset Coast
- Dark mode: yes
- Access: premium (Atheros AI Pass)
- Tags: form, validation, authentication
- Page: https://builder.atheros.ai/components/gradient-login-form
- Preview: https://d17nmjscumqk5d.cloudfront.net/builder/templates/tpl_builder_login_form/preview-7a802de003e9.webp

## Features

- Design-system shape mapping includes `--card-hero-radius` | `--cards-radius` | Design-system card corner radius, `--cards-radius` | Login card radius, and `--inputs-radius` | Email and password inputs.
- Full-viewport 135deg gradient hero (purple → violet → blue) composed from design tokens, with a deep-plum dark variant
- White card floating on the gradient with a generous radius and a large soft drop shadow
- Inline brand logo SVG that recolors from the primary token in both themes
- Filled inputs with leading email / lock icons and floating labels that dock onto the card surface when focused or filled
- Real-time validation with inline error messages for email format and password length
- Errors appear only after a field is touched, then re-validate on every keystroke
- Password visibility toggle with eye / eye-off Tabler icons and `aria-pressed` state
- Social sign-in buttons (Google, Apple) with an ARIA live status response
- Submit gated by validation — focus jumps to the first invalid field on failure
- Accessible: ARIA live regions, `aria-invalid`, focus-visible indicators, reduced-motion support
- Responsive: stacks social buttons and footer actions below 480px

## Accessibility

- **Error messaging** — `aria-describedby` per input plus `aria-live="polite"` error elements
- **Invalid state** — `aria-invalid` toggled on inputs as validation runs
- **Status line** — `aria-live="polite"` announces sign-in and social responses
- **Visibility toggle** — `<button>` with `aria-label` and `aria-pressed`
- **Input labels** — `<label for>` association on both fields
- **Focus management** — Focus moves to the first invalid field on failed submit
- **Focus indicators** — `:focus-visible` with `--ring` outline on all interactive elements
- **Reduced motion** — `prefers-reduced-motion: reduce` disables all animations

## Keyboard shortcuts

- `Enter` — Submit the form from any field

## Common questions

**Which frameworks is Gradient Login Form available in?**

Gradient Login Form ships as Vanilla, React + CSS and React + Tailwind — HTML, CSS, JS and React source you can copy, download or clone into Atheros AI Builder.

**Is Gradient Login Form free?**

Gradient Login Form is a premium component. Anyone can preview it; the source, downloads and AI customisation are included with Atheros AI Pass.

**Does Gradient Login Form support dark mode?**

Yes. Gradient Login Form ships light and dark themes, both drawn from the Sunset Coast design system's tokens. Switch the preview to dark mode to compare them.

## Get the code

Preview Gradient Login Form live, then sign in to copy or download the source, apply another design system, or ask the AI assistant to change it: https://builder.atheros.ai/components/gradient-login-form

Every component on https://builder.atheros.ai is also reachable from Claude Code, Cursor and Codex through the Atheros MCP server (paid plans). Component index: https://builder.atheros.ai/llms-components.txt
