Skip to content

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-clean/layout/auth-screen
Open ↗

Source

"use client";

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

export interface AuthScreenProps {
  brand?: string;
  brandHref?: string;
  statement?: string;
  onSubmit?: (data: { email: string; password: string }) => void;
  className?: string;
}

function FrameMark({ className }: { className?: string }) {
  return (
    <svg aria-hidden viewBox="0 0 24 24" className={cn("size-6 shrink-0", className)}>
      <rect x="1" y="1" width="22" height="22" fill="none" stroke="currentColor" strokeWidth="2" />
      <path d="M7 1v22M1 7h22" stroke="currentColor" strokeWidth="2" />
      <rect x="15" y="15" width="4" height="4" fill="var(--da-accent)" />
    </svg>
  );
}

/** 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. */
export function AuthScreen({ brand = "Frame", brandHref = "/", statement = "Your work, framed.", onSubmit, className }: AuthScreenProps) {
  const id = useId();
  const submit = (e: FormEvent<HTMLFormElement>) => {
    e.preventDefault();
    const f = new FormData(e.currentTarget);
    onSubmit?.({ email: String(f.get("email")), password: String(f.get("password")) });
  };
  const field = "h-11 w-full border-b border-da-border-strong/40 bg-transparent text-lg outline-none focus:border-da-fg focus:shadow-[0_1px_0_0_var(--da-fg)]";
  const label = "font-da-mono text-[11px] tracking-da-label text-da-muted-fg uppercase";
  return (
    <main className={cn("grid min-h-dvh bg-da-bg text-da-fg lg:grid-cols-2", className)}>
      <aside className="hidden flex-col justify-between bg-da-fg p-10 text-da-bg lg:flex">
        <span className="font-da-display text-lg font-semibold tracking-da-display">{brand}</span>
        <p className="font-da-display text-[clamp(3rem,6vw,6rem)] leading-[0.9] font-medium tracking-da-display">{statement}</p>
        <p className="font-da-mono text-[11px] tracking-da-label uppercase opacity-70">3,400 studios · Amsterdam</p>
      </aside>
      <div className="flex flex-col px-6 py-8 sm:px-12">
        <a
          href={brandHref}
          className="da-focus flex w-fit items-center gap-2.5 rounded-da-sm font-da-display text-lg font-semibold tracking-da-display lg:hidden"
        >
          <FrameMark />
          {brand}
        </a>
        <div className="mx-auto my-auto w-full max-w-sm py-12">
          <h1 className="font-da-display text-4xl font-medium tracking-da-display">Log in</h1>
          <form onSubmit={submit} className="mt-10 grid gap-7">
            <div className="grid gap-1">
              <label htmlFor={`${id}-e`} className={label}>
                Email
              </label>
              <input id={`${id}-e`} name="email" type="email" required autoComplete="email" className={field} />
            </div>
            <div className="grid gap-1">
              <div className="flex justify-between">
                <label htmlFor={`${id}-p`} className={label}>
                  Password
                </label>
                <a href="#forgot" className="da-focus rounded-da-sm font-da-mono text-[11px] tracking-da-label uppercase hover:underline">
                  Forgot?
                </a>
              </div>
              <input id={`${id}-p`} name="password" type="password" required autoComplete="current-password" className={field} />
            </div>
            <button type="submit" className="da-focus mt-2 h-12 rounded-da-sm bg-da-primary font-medium text-da-primary-fg hover:opacity-85">
              Log in
            </button>
          </form>
          <p className="mt-8 text-sm text-da-muted-fg">
            New to {brand}?{" "}
            <a href="#signup" className="da-focus rounded-da-sm text-da-fg underline decoration-da-accent decoration-2 underline-offset-4">
              Create an account
            </a>
          </p>
        </div>
      </div>
    </main>
  );
}

export default AuthScreen;

modules/mono-clean/layout/auth-screen/index.tsx

Props

PropTypeDefaultDescription
brandstring—Brand name.
brandHrefstring—Brand link target.
statementstring—Statement.
onSubmit(data: { email: string; password: string }) => void—Callback.
classNamestring—Extra classes on the root.

Other auth screen variants in Mono Clean

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

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.

Soft FlatAuth screen

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.

Soft FlatAuth screen

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 FlatAuth screen

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.

Soft FlatAuth screen