Skip to content

Auth Glow

Centered sign-in on the dark canvas: glowing brand orb, title, Google/GitHub buttons, divider, email + magic-link form with a light submit pill and sign-up link, floating over the Nocturne glow.

nocturne/layout/auth-glow
Open ↗

Source

import { ArrowRight } from "lucide-react";
import { cn } from "@/lib/utils";

export interface AuthGlowProps {
  brand?: string;
  title?: string;
  description?: string;
  action?: string;
  providers?: ("google" | "github")[];
  footer?: { text: string; linkLabel: string; href: string };
  className?: string;
}

function ProviderIcon({ provider }: { provider: "google" | "github" }) {
  // Brand marks keep their official colors (decorative data).
  return provider === "google" ? (
    <svg aria-hidden viewBox="0 0 24 24" className="size-4">
      <path fill="#4285F4" d="M22.5 12.3c0-.8-.1-1.5-.2-2.2H12v4.2h5.9a5 5 0 0 1-2.2 3.3v2.7h3.6c2-1.9 3.2-4.7 3.2-8z" />
      <path fill="#34A853" d="M12 23c3 0 5.5-1 7.3-2.7l-3.6-2.7c-1 .7-2.2 1.1-3.7 1.1-2.9 0-5.3-1.9-6.2-4.5H2.1v2.8A11 11 0 0 0 12 23z" />
      <path fill="#FBBC05" d="M5.8 14.2a6.6 6.6 0 0 1 0-4.3V7.1H2.1a11 11 0 0 0 0 9.9z" />
      <path fill="#EA4335" d="M12 5.4c1.6 0 3.1.6 4.2 1.7l3.2-3.2A11 11 0 0 0 2.1 7.1l3.7 2.8C6.7 7.3 9.1 5.4 12 5.4z" />
    </svg>
  ) : (
    <svg aria-hidden viewBox="0 0 24 24" className="size-4 fill-current">
      <path d="M12 1.5a10.5 10.5 0 0 0-3.3 20.5c.5.1.7-.2.7-.5v-1.8c-2.9.6-3.5-1.4-3.5-1.4-.5-1.2-1.2-1.5-1.2-1.5-1-.7 0-.7 0-.7 1 .1 1.6 1.1 1.6 1.1.9 1.6 2.5 1.1 3.1.9.1-.7.4-1.1.7-1.4-2.3-.3-4.8-1.2-4.8-5.2 0-1.1.4-2 1.1-2.8-.1-.3-.5-1.4.1-2.8 0 0 .9-.3 2.9 1.1a10 10 0 0 1 5.2 0c2-1.4 2.9-1.1 2.9-1.1.6 1.4.2 2.5.1 2.8.7.8 1.1 1.7 1.1 2.8 0 4-2.5 4.9-4.8 5.2.4.3.7 1 .7 1.9v2.9c0 .3.2.6.7.5A10.5 10.5 0 0 0 12 1.5z" />
    </svg>
  );
}

/** Centered sign-in on the dark canvas: glowing brand mark, social providers, email + magic-link form, all floating over the Nocturne glow. */
export function AuthGlow({
  brand = "Nova",
  title = "Welcome back",
  description = "Sign in to pick up your conversations where you left them.",
  action = "#magic-link",
  providers = ["google", "github"],
  footer = { text: "New to Nova?", linkLabel: "Create an account", href: "#signup" },
  className,
}: AuthGlowProps) {
  return (
    <main className={cn("relative isolate grid min-h-dvh place-items-center overflow-hidden px-4 py-12", className)}>
      <div aria-hidden className="absolute inset-x-0 bottom-0 -z-10 h-2/3 bg-(image:--nocturne-glow)" />
      <div className="w-full max-w-sm">
        <div className="flex flex-col items-center text-center">
          <span role="img" aria-label={brand} className="grid size-12 place-items-center rounded-full bg-gradient-to-br from-da-primary to-da-accent shadow-[0_0_48px_-8px_var(--da-primary)]">
            <span className="size-4 rounded-full bg-da-bg" />
          </span>
          <h1 className="mt-6 font-da-display text-2xl font-semibold tracking-da-display">{title}</h1>
          <p className="mt-2 text-sm text-da-muted-fg">{description}</p>
        </div>

        <div className="da-stroke mt-8 rounded-da-lg bg-da-surface p-5 shadow-da-lg">
          <div className="grid gap-2">
            {providers.map((p) => (
              <a
                key={p}
                href={`#oauth-${p}`}
                className="da-focus da-transition da-stroke flex h-11 items-center justify-center gap-2.5 rounded-da-pill bg-da-surface-2 text-sm font-medium hover:border-da-border-strong"
              >
                <ProviderIcon provider={p} />
                Continue with {p === "google" ? "Google" : "GitHub"}
              </a>
            ))}
          </div>
          <div className="my-5 flex items-center gap-3 text-xs text-da-muted-fg">
            <span className="h-px flex-1 bg-da-border" />
            or
            <span className="h-px flex-1 bg-da-border" />
          </div>
          <form action={action} className="grid gap-3">
            <label className="grid gap-1.5 text-sm">
              <span className="font-medium">Work email</span>
              <input
                type="email"
                name="email"
                required
                autoComplete="email"
                placeholder="chloe@parcel.app"
                className="da-focus da-stroke h-11 rounded-da-md bg-da-input px-3.5 text-[15px] text-da-fg outline-none placeholder:text-da-muted-fg focus:border-da-border-strong"
              />
            </label>
            <button type="submit" className="da-focus da-transition inline-flex h-11 items-center justify-center gap-2 rounded-da-pill bg-da-fg text-sm font-semibold text-da-bg hover:bg-da-fg/90">
              Email me a sign-in link
              <ArrowRight aria-hidden className="size-4" />
            </button>
          </form>
        </div>

        <p className="mt-6 text-center text-sm text-da-muted-fg">
          {footer.text}{" "}
          <a href={footer.href} className="da-focus rounded-da-sm font-medium text-da-primary hover:underline">
            {footer.linkLabel}
          </a>
        </p>
      </div>
    </main>
  );
}

export default AuthGlow;

modules/nocturne/layout/auth-glow/index.tsx

Props

PropTypeDefaultDescription
brand / title / descriptionstring—Copy.
actionstring—Magic-link form action.
providers("google" | "github")[]—OAuth buttons.
footer{ text, linkLabel, href }—Sign-up line.

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

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