Auth Split
Split sign-in screen: form on the left (email, password with reveal, remember me, error alert) and an always-dark brand panel with indigo glow, grid, customer quote and three stats on large screens.
minimal/layout/auth-splitSource
"use client";
import { useId, useState, type FormEvent } from "react";
import { Eye, EyeOff } from "lucide-react";
import { cn } from "@/lib/utils";
export interface AuthSplitProps {
brand?: string;
title?: string;
subtitle?: string;
/** Called on submit; throw to show an error. */
onSubmit?: (values: { email: string; password: string }) => void | Promise<void>;
quote?: { text: string; author: string; role: string };
stats?: { value: string; label: string }[];
signupHref?: string;
forgotHref?: string;
className?: string;
}
/** Split sign-in screen: form on the left (email, password with reveal, remember me), dark brand panel with a customer quote and stats on the right. */
export function AuthSplit({
brand = "Tracewise",
title = "Welcome back",
subtitle = "Sign in to your workspace",
onSubmit,
quote = {
text: "We cut our pages by 70% in the first month. On-call finally feels like a normal week.",
author: "Priya Raman",
role: "VP Engineering, Northwind",
},
stats = [
{ value: "2,400+", label: "teams" },
{ value: "99.99%", label: "delivery SLA" },
{ value: "4.2 min", label: "median MTTA" },
],
signupHref = "#signup",
forgotHref = "#forgot",
className,
}: AuthSplitProps) {
const id = useId();
const [show, setShow] = useState(false);
const [pending, setPending] = useState(false);
const [error, setError] = useState("");
const submit = async (e: FormEvent<HTMLFormElement>) => {
e.preventDefault();
const data = new FormData(e.currentTarget);
setPending(true);
setError("");
try {
await onSubmit?.({ email: String(data.get("email")), password: String(data.get("password")) });
} catch {
setError("Incorrect email or password.");
} finally {
setPending(false);
}
};
const field =
"da-focus da-transition h-10 w-full rounded-da-md border border-da-border bg-da-input px-3 text-sm placeholder:text-da-muted-fg hover:border-da-border-strong";
return (
<div className={cn("grid min-h-dvh bg-da-bg text-da-fg lg:grid-cols-2", className)}>
<main className="flex flex-col px-6 py-8 sm:px-12">
<p className="flex items-center gap-2 text-[15px] font-semibold">
<span aria-hidden className="grid size-6 place-items-center rounded-da-sm bg-da-primary text-[11px] font-bold text-da-primary-fg">
{brand[0]}
</span>
{brand}
</p>
<div className="mx-auto my-auto w-full max-w-sm py-12">
<h1 className="text-2xl font-semibold tracking-da-display">{title}</h1>
<p className="mt-1.5 text-sm text-da-muted-fg">{subtitle}</p>
<form onSubmit={submit} className="mt-8 grid gap-4" aria-describedby={error ? `${id}-err` : undefined}>
<div className="grid gap-1.5">
<label htmlFor={`${id}-email`} className="text-[13px] font-medium">
Work email
</label>
<input id={`${id}-email`} name="email" type="email" required autoComplete="email" placeholder="maya@acme.io" className={field} />
</div>
<div className="grid gap-1.5">
<div className="flex items-center justify-between">
<label htmlFor={`${id}-pw`} className="text-[13px] font-medium">
Password
</label>
<a href={forgotHref} className="da-focus rounded-da-sm text-[12px] text-da-muted-fg hover:text-da-fg">
Forgot password?
</a>
</div>
<div className="relative">
<input
id={`${id}-pw`}
name="password"
type={show ? "text" : "password"}
required
autoComplete="current-password"
className={cn(field, "pr-10")}
/>
<button
type="button"
onClick={() => setShow((s) => !s)}
aria-label={show ? "Hide password" : "Show password"}
aria-pressed={show}
className="da-focus absolute top-1/2 right-1.5 grid size-7 -translate-y-1/2 place-items-center rounded-da-sm text-da-muted-fg hover:text-da-fg"
>
{show ? <EyeOff aria-hidden className="size-4" /> : <Eye aria-hidden className="size-4" />}
</button>
</div>
</div>
<label className="flex items-center gap-2 text-[13px] text-da-muted-fg">
<input type="checkbox" name="remember" defaultChecked className="size-4 accent-(--da-primary)" />
Keep me signed in for 30 days
</label>
{error && (
<p id={`${id}-err`} role="alert" className="rounded-da-md bg-da-danger/10 px-3 py-2 text-[13px] text-da-danger">
{error}
</p>
)}
<button
type="submit"
disabled={pending}
className="da-focus da-transition h-10 rounded-da-md bg-da-fg text-sm font-medium text-da-bg hover:bg-da-fg/85 disabled:opacity-60"
>
{pending ? "Signing in…" : "Sign in"}
</button>
</form>
<p className="mt-6 text-center text-[13px] text-da-muted-fg">
New to {brand}?{" "}
<a href={signupHref} className="da-focus rounded-da-sm font-medium text-da-fg hover:underline">
Create a workspace
</a>
</p>
</div>
</main>
<aside className="relative hidden overflow-hidden bg-[#0b0c0f] p-12 text-white lg:flex lg:flex-col lg:justify-end">
<div aria-hidden className="absolute -top-32 -right-32 size-[520px] rounded-full bg-da-primary/40 blur-[120px]" />
<div
aria-hidden
className="absolute inset-0 opacity-[0.08] [background-image:linear-gradient(white_1px,transparent_1px),linear-gradient(90deg,white_1px,transparent_1px)] [background-size:48px_48px] [mask-image:linear-gradient(to_bottom,black,transparent)]"
/>
<figure className="relative max-w-md">
<blockquote className="text-2xl leading-snug font-medium tracking-da-display">“{quote.text}”</blockquote>
<figcaption className="mt-5 text-sm text-white/70">
<span className="font-medium text-white">{quote.author}</span> · {quote.role}
</figcaption>
</figure>
<dl className="relative mt-12 grid grid-cols-3 gap-6 border-t border-white/15 pt-6">
{stats.map((s) => (
<div key={s.label}>
<dt className="text-[12px] text-white/65">{s.label}</dt>
<dd className="mt-1 font-da-mono text-lg">{s.value}</dd>
</div>
))}
</dl>
</aside>
</div>
);
}
export default AuthSplit;
modules/minimal/layout/auth-split/index.tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| brand / title / subtitle | string | — | Texts. |
| onSubmit | ({ email, password }) => void | Promise<void> | — | Throw to show the error. |
| quote | { text, author, role } | — | Panel quote. |
| stats | { value, label }[] | — | Panel stats. |
| signupHref / forgotHref | string | — | Links. |
| className | string | — | Classes. |
Other auth screen variants in Minimal
Auth Screen
Centered passwordless login in three steps: provider choice (Google, email, SAML SSO) → email form → "check your email" confirmation. Faint indigo glow on top, legal footer.
Auth Sso
SSO-first sign-in card on a tinted page: key icon, Google / GitHub / Microsoft buttons, an ‘or use SAML SSO’ divider and work-email discovery with inline arrow submit, legal links below.
Auth Verify
Email verification screen: mail icon, six single-digit mono boxes (split 3 + 3) with auto-advance, paste, arrow/backspace navigation, auto-submit, error and success states and a resend countdown.
Auth screen in other art directions
Auth Card
Centered login card on a dotted paper background: tilted wordmark sticker, ink title band, GitHub button, email + password with forgot link, error slot and a big pressable yellow submit.
Auth Magic Link
Passwordless login split screen: blue product panel with staggered pipeline cards (desktop), huge uppercase headline, single email field and yellow send button, then a 'Check your inbox' state with open-mail and retry actions.
Auth Screen
Split sign-in / sign-up page: form column with GitHub & Google buttons, email + password (show/hide), remember-me, error slot and pending state; yellow grid panel with a big customer quote on desktop.
Auth Signup Steps
Three-step signup wizard: ruled step tabs (done in ink, current in yellow) fused to a card with account fields, team size and use-case tile choices, Back/Continue and a success state.
Auth Floating
Sign-up screen: centered glass card (Google button, divider, email magic-link form with success state) surrounded on desktop by floating, bobbing glass preview cards and a gradient orb.
Auth Onboarding
Three-step onboarding glass card: workspace name with URL preview, role radio chips, calendar connection buttons; gradient progress bar, back/continue and a finish screen.
Auth Passkey
Passkey sign-in glass card: glowing gradient fingerprint orb, account email, ‘Sign in with passkey’ with waiting / success / error states and email-link or password fallbacks.
Auth Screen
Centered 40px-blur glass panel over the mesh and two soft orbs: gradient logo, Google/Microsoft buttons, email + password (show/hide), forgot link, error slot, gradient pill submit. Sign-in and sign-up modes.
Auth Centered
Minimal centered sign-in with lots of air: logo, small title, two hairline-boxed fields stacked edge to edge, ink button, “or continue with” text links and a mono legal line at the very bottom.
Auth Magic
Passwordless: a huge “Enter your email” prompt with a single oversized underline input and ↵ button; after submit, a large confirmation with the address and a mono resend link.
Auth Screen
Split sign-in: the left half is an ink panel with a large statement and mono footer; the right half holds a minimal underline form (email, password), an ink button and text links. Panel hides on mobile.
Auth Steps
Three-step sign-up with an index header “01 / 03 — Your account” and segmented hairline progress; underline fields per step, Back text link and ink Continue; final step shows the site address preview.
Auth Screen
Centered sign-in card on a surface-2 page: logo, Google + SSO buttons, “or” divider, email/password (show/hide toggle, forgot link), remember me, blue submit, sign-up link and legal footer.
Auth Split
Split sign-up page: form on the left (name, work email, company, password with live strength checklist), blue gradient panel on the right with benefits, a customer quote and compliance badges (panel hidden below lg).
Auth Sso
Enterprise SSO sign-in: email-first step that detects the domain; SSO domains show the org + identity provider and a “Continue with Okta” button, others fall back to a password field.
Auth Verify
Two-factor verification screen: shield icon, 6 separate digit boxes (auto-advance, backspace, paste support), error/success states, resend with 30s countdown and “use a recovery code” link.
Auth Magic
Passwordless sign-in: one rounded email field and “Send me a link”, then a gentle sent state with an open-envelope in a sage circle, the address, resend and change-email links.
Auth Onboarding
Post-signup onboarding: two gentle steps (industry as pill radio cards, goals as check cards) with a leaf progress bar, back/continue pills and a warm “all set” finish.
Auth Screen
Centered sign-in on cream with two soft blobs behind a rounded card: serif welcome, filled inputs, password reveal, sage pill submit, Google alternative and a sign-up link.
Auth Split
Split sign-up: form on cream (name, email, company, team-size pills) and an arch-topped landscape illustration panel with sun and hills plus a quote card (hidden below lg).
Auth Magic
“Check your inbox” screen: flat envelope with a gently bobbing letter, email in bold, Gmail/Outlook shortcut pills, resend with countdown and change-email link.
Auth Screen
Centered friendly sign-in: big rounded white card among pastel shapes, shape logo, Google button, rounded divider, soft email/password fields with reveal, error alert and periwinkle pill.
Auth Split
Sign-up split: lavender panel with a flat illustration of tilted task cards and perk list on large screens, roomy name + email form with a success message on the other side.
Auth Welcome
First-run profile setup: big live avatar preview, grid of pastel emoji avatars (native radios), display-name field with preview chip and a “Let’s go” button enabled once named.