Skip to content

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.

soft-flat/layout/auth-split
Open ↗

Source

"use client";

import { useId, useState, type FormEvent } from "react";
import { Check } from "lucide-react";
import { cn } from "@/lib/utils";

export interface AuthSplitProps {
  title?: string;
  subtitle?: string;
  perks?: string[];
  onSubmit?: (v: { name: string; email: string }) => void | Promise<void>;
  className?: string;
}

/** Sign-up split: a lavender panel with a flat illustration of floating task cards and perks on one side, a roomy name + email form on the other. */
export function AuthSplit({
  title = "Create your free account",
  subtitle = "Free forever for teams up to 5. No credit card.",
  perks = ["Unlimited tasks", "Weekly planner", "Friendly reminders"],
  onSubmit,
  className,
}: AuthSplitProps) {
  const id = useId();
  const [done, setDone] = useState("");
  const submit = async (e: FormEvent<HTMLFormElement>) => {
    e.preventDefault();
    const d = new FormData(e.currentTarget);
    await onSubmit?.({ name: String(d.get("name")), email: String(d.get("email")) });
    setDone(String(d.get("email")));
  };
  const field = "da-focus h-12 w-full rounded-da-md bg-da-surface-2 px-4 text-[15px] placeholder:text-da-muted-fg focus:bg-da-input";

  return (
    <div className={cn("grid min-h-dvh bg-da-bg text-da-fg lg:grid-cols-2", className)}>
      <aside className="relative hidden overflow-hidden bg-da-primary/12 p-12 lg:flex lg:flex-col lg:justify-center">
        <div aria-hidden className="relative mx-auto h-72 w-full max-w-sm">
          <div className="absolute top-0 left-4 w-60 -rotate-6 rounded-da-lg bg-da-surface p-4 shadow-da-md">
            <p className="text-xs font-semibold text-da-muted-fg">Today</p>
            <p className="mt-1 font-da-display font-extrabold">Plan team retreat 🏕️</p>
          </div>
          <div className="absolute top-24 right-0 w-56 rotate-3 rounded-da-lg bg-da-accent p-4 text-da-accent-fg shadow-da-md">
            <p className="font-da-display font-extrabold">Write newsletter ✍️</p>
            <p className="text-xs">Due Thursday</p>
          </div>
          <div className="absolute bottom-0 left-10 flex w-52 items-center gap-2 rounded-da-lg bg-da-secondary p-4 text-da-secondary-fg shadow-da-md">
            <span className="grid size-6 place-items-center rounded-full bg-da-secondary-fg text-da-secondary">
              <Check className="size-3.5" strokeWidth={3} />
            </span>
            <span className="font-semibold">Book venue</span>
          </div>
        </div>
        <ul className="mx-auto mt-10 space-y-2">
          {perks.map((p) => (
            <li key={p} className="flex items-center gap-2 font-semibold">
              <span aria-hidden className="grid size-6 place-items-center rounded-full bg-da-surface">
                <Check className="size-3.5 text-da-primary" strokeWidth={3} />
              </span>
              {p}
            </li>
          ))}
        </ul>
      </aside>
      <main className="flex items-center justify-center px-6 py-12">
        <div className="w-full max-w-sm">
          <h1 className="font-da-display text-3xl font-extrabold tracking-da-display">{title}</h1>
          <p className="mt-2 text-da-muted-fg">{subtitle}</p>
          {done ? (
            <p role="status" className="mt-8 rounded-da-lg bg-da-secondary p-5 text-da-secondary-fg">
              <span className="font-da-display text-lg font-extrabold">Almost there! 💌</span>
              <span className="mt-1 block">We sent a confirmation link to {done}.</span>
            </p>
          ) : (
            <form onSubmit={submit} className="mt-8 grid gap-4">
              <div className="grid gap-1.5">
                <label htmlFor={`${id}-n`} className="text-sm font-semibold">
                  Your name
                </label>
                <input id={`${id}-n`} name="name" required autoComplete="name" placeholder="Ana Souza" className={field} />
              </div>
              <div className="grid gap-1.5">
                <label htmlFor={`${id}-e`} className="text-sm font-semibold">
                  Work email
                </label>
                <input id={`${id}-e`} name="email" type="email" required autoComplete="email" placeholder="ana@bright.co" className={field} />
              </div>
              <button
                type="submit"
                className="da-focus da-transition mt-2 h-12 rounded-da-pill bg-da-primary font-semibold text-da-primary-fg shadow-da-sm hover:-translate-y-0.5"
              >
                Create account
              </button>
              <p className="text-center text-xs text-da-muted-fg">
                By signing up you agree to our{" "}
                <a href="#terms" className="da-focus rounded-da-sm underline">
                  Terms
                </a>
                .
              </p>
            </form>
          )}
        </div>
      </main>
    </div>
  );
}

export default AuthSplit;

modules/soft-flat/layout/auth-split/index.tsx

Props

PropTypeDefaultDescription
title / subtitlestring—Texts.
perksstring[]—Perks.
onSubmit({ name, email }) => void | Promise<void>—Handler.

Other auth screen variants in Soft Flat

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.

BrutalistAuth screen

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.

BrutalistAuth screen

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.

BrutalistAuth screen

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.

BrutalistAuth screen

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.

GlassAuth screen

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.

GlassAuth 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.

GlassAuth screen

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.

GlassAuth screen

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.

MinimalAuth screen

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.

MinimalAuth screen

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.

MinimalAuth screen

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.

MinimalAuth screen

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.

Mono CleanAuth screen

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.

Mono CleanAuth screen

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.

Mono CleanAuth screen

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.

Mono CleanAuth screen

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.

Neo CorporateAuth screen

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).

Neo CorporateAuth screen

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.

Neo CorporateAuth screen

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.

Neo CorporateAuth screen

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.

Organic SoftAuth screen

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.

Organic SoftAuth screen

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.

Organic SoftAuth screen

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).

Organic SoftAuth screen