{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "split-sign-up",
  "type": "registry:block",
  "title": "Split Sign-up",
  "description": "A two-panel sign-up: the form validates as you go (live email check, password rules that tick off, a strength bar) beside a product glimpse and rotating customer quotes that fold below on phones.",
  "categories": [
    "block",
    "Auth"
  ],
  "dependencies": [
    "lucide-react",
    "motion"
  ],
  "registryDependencies": [
    "utils",
    "https://coss.com/ui/r/button.json",
    "https://coss.com/ui/r/checkbox.json",
    "https://coss.com/ui/r/input-group.json",
    "https://coss.com/ui/r/spinner.json"
  ],
  "files": [
    {
      "path": "registry/devl/split-sign-up.tsx",
      "type": "registry:component",
      "content": "\"use client\";\n\nimport { ArrowRightIcon, CheckIcon, CircleAlertIcon, EyeIcon, EyeOffIcon, MailCheckIcon, TrendingUpIcon } from \"lucide-react\";\nimport { AnimatePresence, motion, useReducedMotion } from \"motion/react\";\nimport { type FormEvent, type ReactNode, useEffect, useId, useRef, useState } from \"react\";\nimport { Button } from \"@/components/ui/button\";\nimport { Checkbox } from \"@/components/ui/checkbox\";\nimport { InputGroup, InputGroupAddon, InputGroupInput } from \"@/components/ui/input-group\";\nimport { Spinner } from \"@/components/ui/spinner\";\nimport { cn } from \"@/lib/utils\";\n\nexport interface SignUpQuote {\n  quote: string;\n  name: string;\n  role: string;\n  tone?: string;\n}\n\nexport interface SignUpValues {\n  name: string;\n  email: string;\n  password: string;\n}\n\nexport interface SplitSignUpProps {\n  product?: string;\n  title?: string;\n  subtitle?: string;\n  quotes?: SignUpQuote[];\n  showcase?: ReactNode;\n  checkEmail?: (email: string) => Promise<boolean>;\n  onSubmit?: (values: SignUpValues) => Promise<void>;\n  onSignIn?: () => void;\n  className?: string;\n}\n\nconst ease = [0.23, 1, 0.32, 1] as const;\nconst press = \"transition-[box-shadow,scale,background-color] duration-150 active:scale-[0.97]\";\nconst EMAIL = /^[^\\s@]+@[^\\s@]+\\.[^\\s@]{2,}$/;\n\nconst RULES = [\n  { id: \"len\", label: \"8+ characters\", test: (p: string) => p.length >= 8 },\n  { id: \"num\", label: \"A number\", test: (p: string) => /\\d/.test(p) },\n  {\n    id: \"mix\",\n    label: \"Upper & lower case\",\n    test: (p: string) => /[a-z]/.test(p) && /[A-Z]/.test(p),\n  },\n];\n\nconst STRENGTH = [\n  {\n    label: \"Too short\",\n    bar: \"bg-destructive\",\n    text: \"text-destructive-foreground\",\n  },\n  { label: \"Weak\", bar: \"bg-destructive\", text: \"text-destructive-foreground\" },\n  { label: \"Fair\", bar: \"bg-warning\", text: \"text-warning-foreground\" },\n  { label: \"Good\", bar: \"bg-info\", text: \"text-info-foreground\" },\n  { label: \"Strong\", bar: \"bg-success\", text: \"text-success-foreground\" },\n];\n\nfunction strengthOf(p: string) {\n  if (!p) return 0;\n  let s = RULES.filter((r) => r.test(p)).length;\n  if (p.length >= 12 || /[^A-Za-z0-9]/.test(p)) s += 1;\n  return p.length < 8 ? Math.min(s, 1) : Math.max(1, s);\n}\n\nfunction Message({ id, tone = \"error\", children }: { id: string; tone?: \"error\" | \"muted\"; children?: ReactNode }) {\n  return (\n    <AnimatePresence initial={false}>\n      {children && (\n        <motion.div\n          animate={{ height: \"auto\", opacity: 1 }}\n          className=\"overflow-hidden\"\n          exit={{ height: 0, opacity: 0 }}\n          initial={{ height: 0, opacity: 0 }}\n          transition={{ duration: 0.18, ease }}\n        >\n          <p className={cn(\"pt-1.5 text-xs\", tone === \"error\" ? \"text-destructive-foreground\" : \"text-muted-foreground\")} id={id}>\n            {children}\n          </p>\n        </motion.div>\n      )}\n    </AnimatePresence>\n  );\n}\n\nfunction StatusIcon({ state }: { state: \"idle\" | \"checking\" | \"valid\" }) {\n  return (\n    <AnimatePresence initial={false} mode=\"popLayout\">\n      {state !== \"idle\" && (\n        <motion.span\n          animate={{ opacity: 1, scale: 1 }}\n          className=\"flex\"\n          exit={{ opacity: 0, scale: 0.6 }}\n          initial={{ opacity: 0, scale: 0.6 }}\n          key={state}\n          transition={{ duration: 0.16, ease }}\n        >\n          {state === \"checking\" ? (\n            <Spinner className=\"size-4 text-muted-foreground\" />\n          ) : (\n            <span className=\"flex size-4 items-center justify-center rounded-full bg-success text-white\">\n              <CheckIcon className=\"size-2.5\" strokeWidth={3.5} />\n            </span>\n          )}\n        </motion.span>\n      )}\n    </AnimatePresence>\n  );\n}\n\nfunction DefaultShowcase() {\n  const reduce = useReducedMotion();\n  const bars = [38, 52, 44, 61, 58, 72, 84];\n  return (\n    <div className=\"relative mx-auto w-full max-w-[340px]\">\n      <motion.div\n        animate={{ opacity: 1, y: 0 }}\n        className=\"rounded-xl border bg-card p-4 shadow-xs/5\"\n        initial={{ opacity: 0, y: 12 }}\n        transition={reduce ? { duration: 0 } : { duration: 0.4, ease, delay: 0.1 }}\n      >\n        <div className=\"flex items-center justify-between\">\n          <p className=\"font-medium text-xs\">Weekly bookings</p>\n          <span className=\"inline-flex items-center gap-1 rounded-full bg-success/10 px-1.5 py-0.5 font-medium text-[0.6875rem] text-success-foreground tabular-nums\">\n            <TrendingUpIcon className=\"size-3\" />\n            18%\n          </span>\n        </div>\n        <p className=\"mt-1 font-semibold text-xl tabular-nums tracking-tight\">1,284</p>\n        <div aria-hidden className=\"mt-3 flex h-20 items-end gap-1.5\">\n          {bars.map((h, i) => (\n            <motion.span\n              animate={{ scaleY: 1 }}\n              className={cn(\n                \"flex-1 origin-bottom rounded-[calc(var(--radius)*0.3)]\",\n                i === bars.length - 1 ? \"bg-violet-500\" : \"bg-violet-500/25 dark:bg-violet-400/25\",\n              )}\n              initial={{ scaleY: 0.2 }}\n              key={i}\n              style={{ height: `${h}%` }}\n              transition={reduce ? { duration: 0 } : { duration: 0.5, ease, delay: 0.25 + i * 0.04 }}\n            />\n          ))}\n        </div>\n        <div className=\"mt-2 flex justify-between text-[0.6875rem] text-muted-foreground\">\n          <span>Mon</span>\n          <span>Sun</span>\n        </div>\n      </motion.div>\n      <motion.div\n        animate={{ opacity: 1, y: 0 }}\n        className=\"absolute -right-4 -bottom-14 flex items-center gap-2.5 rounded-xl border bg-card py-2 ps-2 pe-3.5 shadow-xs/5 lg:-right-8\"\n        initial={{ opacity: 0, y: 12 }}\n        transition={reduce ? { duration: 0 } : { duration: 0.4, ease, delay: 0.5 }}\n      >\n        <span className=\"flex size-7 items-center justify-center rounded-full bg-emerald-500/15 font-medium text-[0.6875rem] text-emerald-700 dark:text-emerald-300\">\n          JR\n        </span>\n        <span className=\"text-xs\">\n          <span className=\"block font-medium\">Jonah booked a table</span>\n          <span className=\"block text-muted-foreground\">Friday, 7:30 pm · party of 4</span>\n        </span>\n      </motion.div>\n    </div>\n  );\n}\n\nfunction QuoteBody({ item, className, ...rest }: { item: SignUpQuote; className?: string; \"aria-hidden\"?: boolean }) {\n  const initials = item.name\n    .split(\" \")\n    .map((w) => w[0])\n    .join(\"\")\n    .slice(0, 2);\n  return (\n    <div className={cn(\"flex h-full flex-col justify-end\", className)} {...rest}>\n      <blockquote className=\"text-pretty font-medium text-[0.9375rem]/6 tracking-tight md:text-lg/7\">“{item.quote}”</blockquote>\n      <figcaption className=\"mt-4 flex items-center gap-3\">\n        <span\n          className={cn(\n            \"flex size-9 shrink-0 items-center justify-center rounded-full font-medium text-xs\",\n            item.tone ?? \"bg-violet-500/15 text-violet-700 dark:text-violet-300\",\n          )}\n        >\n          {initials}\n        </span>\n        <span className=\"min-w-0 text-sm\">\n          <span className=\"block font-medium\">{item.name}</span>\n          <span className=\"block text-muted-foreground text-xs\">{item.role}</span>\n        </span>\n      </figcaption>\n    </div>\n  );\n}\n\nfunction Quotes({ quotes }: { quotes: SignUpQuote[] }) {\n  const reduce = useReducedMotion();\n  const [index, setIndex] = useState(0);\n  const [paused, setPaused] = useState(false);\n  useEffect(() => {\n    if (paused || quotes.length < 2) return;\n    const t = setTimeout(() => setIndex((i) => (i + 1) % quotes.length), 7000);\n    return () => clearTimeout(t);\n  }, [index, paused, quotes.length]);\n  const q = quotes[index];\n  if (!q) return null;\n  return (\n    <figure\n      className=\"relative\"\n      onBlur={() => setPaused(false)}\n      onFocus={() => setPaused(true)}\n      onPointerEnter={() => setPaused(true)}\n      onPointerLeave={() => setPaused(false)}\n    >\n      <div className=\"grid\">\n        {quotes.map((item) => (\n          <QuoteBody aria-hidden className=\"invisible col-start-1 row-start-1\" item={item} key={item.name} />\n        ))}\n        <AnimatePresence initial={false}>\n          <motion.div\n            animate={{ opacity: 1, filter: \"blur(0px)\", y: 0 }}\n            className=\"col-start-1 row-start-1\"\n            exit={{\n              opacity: 0,\n              filter: reduce ? \"blur(0px)\" : \"blur(4px)\",\n              y: reduce ? 0 : -6,\n            }}\n            initial={{\n              opacity: 0,\n              filter: reduce ? \"blur(0px)\" : \"blur(4px)\",\n              y: reduce ? 0 : 6,\n            }}\n            key={index}\n            transition={{ duration: 0.3, ease }}\n          >\n            <QuoteBody item={q} />\n          </motion.div>\n        </AnimatePresence>\n      </div>\n      {quotes.length > 1 && (\n        <div className=\"absolute right-0 bottom-2.5 flex gap-1\">\n          {quotes.map((item, i) => (\n            <button\n              aria-current={i === index ? \"true\" : undefined}\n              aria-label={`Show quote from ${item.name}`}\n              className=\"group flex size-6 cursor-pointer items-center justify-center rounded-full outline-none focus-visible:ring-2 focus-visible:ring-ring\"\n              key={item.name}\n              onClick={() => setIndex(i)}\n              type=\"button\"\n            >\n              <span\n                className={cn(\n                  \"h-1.5 rounded-full transition-[width,background-color] duration-200 ease-out\",\n                  i === index ? \"w-4 bg-foreground\" : \"w-1.5 bg-foreground/20 group-hover:bg-foreground/40\",\n                )}\n              />\n            </button>\n          ))}\n        </div>\n      )}\n    </figure>\n  );\n}\n\nexport function SplitSignUp({\n  product = \"Tidewell\",\n  title = \"Create your account\",\n  subtitle = \"Start a 14-day trial. No card needed.\",\n  quotes = [],\n  showcase,\n  checkEmail,\n  onSubmit = async () => {},\n  onSignIn,\n  className,\n}: SplitSignUpProps) {\n  const reduce = useReducedMotion();\n  const uid = useId();\n  const [name, setName] = useState(\"\");\n  const [email, setEmail] = useState(\"\");\n  const [password, setPassword] = useState(\"\");\n  const [agree, setAgree] = useState(false);\n  const [showPassword, setShowPassword] = useState(false);\n  const [touched, setTouched] = useState<Record<string, boolean>>({});\n  const [emailTaken, setEmailTaken] = useState(false);\n  const [checking, setChecking] = useState(false);\n  const [submitted, setSubmitted] = useState(false);\n  const [busy, setBusy] = useState(false);\n  const [done, setDone] = useState(false);\n  const checkSeq = useRef(0);\n\n  const strength = strengthOf(password);\n  const passed = RULES.every((r) => r.test(password));\n  const show = (field: string) => touched[field] || submitted;\n\n  const nameError = show(\"name\") && !name.trim() ? \"Tell us what to call you.\" : undefined;\n  const emailFormatError = !email.trim()\n    ? \"Enter your work email.\"\n    : !EMAIL.test(email.trim())\n      ? \"That doesn't look like an email address.\"\n      : undefined;\n  const emailError = show(\"email\") ? emailFormatError : undefined;\n  const passwordError = show(\"password\") && !passed ? \"Your password needs every item below.\" : undefined;\n  const agreeError = submitted && !agree ? \"Please accept the terms to continue.\" : undefined;\n\n  const runEmailCheck = async () => {\n    setTouched((t) => ({ ...t, email: true }));\n    if (!checkEmail || emailFormatError) return;\n    const seq = ++checkSeq.current;\n    setChecking(true);\n    const taken = await checkEmail(email.trim());\n    if (seq !== checkSeq.current) return;\n    setChecking(false);\n    setEmailTaken(taken);\n  };\n\n  const submit = async (event: FormEvent) => {\n    event.preventDefault();\n    setSubmitted(true);\n    if (!name.trim() || emailFormatError || emailTaken || !passed || !agree) return;\n    setBusy(true);\n    await onSubmit({ name: name.trim(), email: email.trim(), password });\n    setBusy(false);\n    setDone(true);\n  };\n\n  const emailState = checking ? \"checking\" : !emailFormatError && touched.email && !emailTaken ? \"valid\" : \"idle\";\n\n  return (\n    <section\n      className={cn(\n        \"mx-auto grid w-full max-w-[1000px] overflow-hidden rounded-2xl border bg-card text-card-foreground shadow-xs/5 md:grid-cols-[1fr_1.05fr]\",\n        className,\n      )}\n    >\n      <div className=\"relative px-5 py-8 sm:px-10 sm:py-10\">\n        <div className=\"flex items-center gap-2\">\n          <span className=\"flex size-7 items-center justify-center rounded-lg bg-primary text-primary-foreground\">\n            <svg\n              aria-hidden\n              className=\"size-4\"\n              fill=\"none\"\n              stroke=\"currentColor\"\n              strokeLinecap=\"round\"\n              strokeWidth=\"2.25\"\n              viewBox=\"0 0 16 16\"\n            >\n              <path d=\"M2 6.5c2-1.6 4-1.6 6 0s4 1.6 6 0M2 10.5c2-1.6 4-1.6 6 0s4 1.6 6 0\" />\n            </svg>\n          </span>\n          <span className=\"font-semibold text-sm tracking-tight\">{product}</span>\n        </div>\n\n        <div className=\"grid\">\n          <motion.form\n            animate={{ opacity: done ? 0 : 1 }}\n            aria-hidden={done || undefined}\n            className=\"col-start-1 row-start-1\"\n            inert={done}\n            initial={false}\n            noValidate\n            onSubmit={submit}\n            transition={{ duration: 0.2, ease }}\n          >\n            <h2 className=\"mt-8 text-balance font-semibold text-2xl tracking-tight\">{title}</h2>\n            <p className=\"mt-1.5 text-pretty text-muted-foreground text-sm\">{subtitle}</p>\n\n            <div className=\"mt-7 space-y-4\">\n              <div>\n                <label className=\"font-medium text-sm\" htmlFor={`${uid}-name`}>\n                  Full name\n                </label>\n                <InputGroup className=\"mt-2\">\n                  <InputGroupInput\n                    aria-describedby={nameError ? `${uid}-name-msg` : undefined}\n                    aria-invalid={nameError ? true : undefined}\n                    autoComplete=\"name\"\n                    id={`${uid}-name`}\n                    onBlur={() => setTouched((t) => ({ ...t, name: true }))}\n                    onChange={(e) => setName(e.target.value)}\n                    placeholder=\"Ada Lindqvist\"\n                    value={name}\n                  />\n                  <InputGroupAddon align=\"inline-end\">\n                    <StatusIcon state={touched.name && name.trim() ? \"valid\" : \"idle\"} />\n                  </InputGroupAddon>\n                </InputGroup>\n                <Message id={`${uid}-name-msg`}>{nameError}</Message>\n              </div>\n\n              <div>\n                <label className=\"font-medium text-sm\" htmlFor={`${uid}-email`}>\n                  Work email\n                </label>\n                <InputGroup className=\"mt-2\">\n                  <InputGroupInput\n                    aria-describedby={emailError || emailTaken ? `${uid}-email-msg` : undefined}\n                    aria-invalid={emailError || emailTaken ? true : undefined}\n                    autoComplete=\"email\"\n                    id={`${uid}-email`}\n                    onBlur={runEmailCheck}\n                    onChange={(e) => {\n                      setEmail(e.target.value);\n                      setEmailTaken(false);\n                      checkSeq.current++;\n                      setChecking(false);\n                    }}\n                    placeholder=\"ada@company.com\"\n                    type=\"email\"\n                    value={email}\n                  />\n                  <InputGroupAddon align=\"inline-end\">\n                    <StatusIcon state={emailState} />\n                  </InputGroupAddon>\n                </InputGroup>\n                <Message id={`${uid}-email-msg`}>\n                  {emailError ??\n                    (emailTaken ? (\n                      <>\n                        There's already an account for this email.{\" \"}\n                        <button\n                          className=\"cursor-pointer rounded font-medium underline underline-offset-2 outline-none focus-visible:ring-2 focus-visible:ring-ring\"\n                          onClick={onSignIn}\n                          type=\"button\"\n                        >\n                          Sign in instead\n                        </button>\n                      </>\n                    ) : undefined)}\n                </Message>\n              </div>\n\n              <div>\n                <div className=\"flex items-center justify-between\">\n                  <label className=\"font-medium text-sm\" htmlFor={`${uid}-password`}>\n                    Password\n                  </label>\n                  <span\n                    aria-live=\"polite\"\n                    className={cn(\n                      \"font-medium text-xs transition-colors duration-200\",\n                      password ? STRENGTH[strength].text : \"text-transparent\",\n                    )}\n                  >\n                    {password ? STRENGTH[strength].label : \"–\"}\n                  </span>\n                </div>\n                <InputGroup className=\"mt-2\">\n                  <InputGroupInput\n                    aria-describedby={`${uid}-rules`}\n                    aria-invalid={passwordError ? true : undefined}\n                    autoComplete=\"new-password\"\n                    id={`${uid}-password`}\n                    onBlur={() => setTouched((t) => ({ ...t, password: true }))}\n                    onChange={(e) => setPassword(e.target.value)}\n                    placeholder=\"Create a password\"\n                    type={showPassword ? \"text\" : \"password\"}\n                    value={password}\n                  />\n                  <InputGroupAddon align=\"inline-end\">\n                    <Button\n                      aria-label={showPassword ? \"Hide password\" : \"Show password\"}\n                      aria-pressed={showPassword}\n                      className=\"text-muted-foreground hover:text-foreground\"\n                      onClick={() => setShowPassword((s) => !s)}\n                      size=\"icon-xs\"\n                      variant=\"ghost\"\n                    >\n                      {showPassword ? <EyeOffIcon /> : <EyeIcon />}\n                    </Button>\n                  </InputGroupAddon>\n                </InputGroup>\n                <div aria-hidden className=\"mt-2.5 grid grid-cols-4 gap-1.5\">\n                  {[1, 2, 3, 4].map((step) => (\n                    <span className=\"h-1 overflow-hidden rounded-full bg-muted\" key={step}>\n                      <motion.span\n                        animate={{ scaleX: strength >= step ? 1 : 0 }}\n                        className={cn(\"block h-full origin-left rounded-full transition-colors duration-200\", STRENGTH[strength].bar)}\n                        initial={false}\n                        transition={reduce ? { duration: 0 } : { duration: 0.24, ease }}\n                      />\n                    </span>\n                  ))}\n                </div>\n                <ul className=\"mt-2.5 flex flex-wrap gap-x-4 gap-y-1.5\" id={`${uid}-rules`}>\n                  {RULES.map((rule) => {\n                    const ok = rule.test(password);\n                    const bad = !ok && show(\"password\");\n                    return (\n                      <li\n                        className={cn(\n                          \"flex items-center gap-1.5 text-xs transition-colors duration-200\",\n                          ok ? \"text-foreground\" : bad ? \"text-destructive-foreground\" : \"text-muted-foreground\",\n                        )}\n                        key={rule.id}\n                      >\n                        <span\n                          className={cn(\n                            \"relative flex size-3.5 items-center justify-center rounded-full border transition-colors duration-200\",\n                            ok ? \"border-success bg-success text-white\" : bad ? \"border-destructive/50\" : \"border-input\",\n                          )}\n                        >\n                          <motion.span\n                            animate={{\n                              scale: ok ? 1 : 0.4,\n                              opacity: ok ? 1 : 0,\n                            }}\n                            className=\"flex\"\n                            initial={false}\n                            transition={\n                              reduce\n                                ? { duration: 0 }\n                                : {\n                                    type: \"spring\",\n                                    stiffness: 600,\n                                    damping: 28,\n                                  }\n                            }\n                          >\n                            <CheckIcon className=\"size-2.5\" strokeWidth={3.5} />\n                          </motion.span>\n                        </span>\n                        <span className=\"sr-only\">{ok ? \"Done: \" : \"Missing: \"}</span>\n                        {rule.label}\n                      </li>\n                    );\n                  })}\n                </ul>\n              </div>\n\n              <div>\n                <label className=\"flex cursor-pointer items-start gap-2.5 text-muted-foreground text-sm\" htmlFor={`${uid}-agree`}>\n                  <Checkbox\n                    aria-invalid={agreeError ? true : undefined}\n                    checked={agree}\n                    className=\"mt-0.5\"\n                    id={`${uid}-agree`}\n                    onCheckedChange={(v) => setAgree(Boolean(v))}\n                  />\n                  <span className=\"text-pretty\">\n                    I agree to the <span className=\"font-medium text-foreground\">Terms</span> and{\" \"}\n                    <span className=\"font-medium text-foreground\">Privacy Policy</span>.\n                  </span>\n                </label>\n                <Message id={`${uid}-agree-msg`}>{agreeError}</Message>\n              </div>\n            </div>\n\n            <AnimatePresence initial={false}>\n              {submitted && (nameError || emailError || emailTaken || passwordError || agreeError) && (\n                <motion.p\n                  animate={{ height: \"auto\", opacity: 1 }}\n                  className=\"overflow-hidden\"\n                  exit={{ height: 0, opacity: 0 }}\n                  initial={{ height: 0, opacity: 0 }}\n                  role=\"alert\"\n                  transition={{ duration: 0.18, ease }}\n                >\n                  <span className=\"mt-5 flex items-center gap-2 text-destructive-foreground text-xs\">\n                    <CircleAlertIcon className=\"size-3.5\" />\n                    Fix the highlighted fields to continue.\n                  </span>\n                </motion.p>\n              )}\n            </AnimatePresence>\n\n            <Button className={cn(\"mt-5 w-full\", press)} loading={busy} size=\"lg\" type=\"submit\">\n              Create account\n              <ArrowRightIcon />\n            </Button>\n            <p className=\"mt-4 text-center text-muted-foreground text-sm\">\n              Already have an account?{\" \"}\n              <button\n                className=\"cursor-pointer rounded font-medium text-foreground underline-offset-4 outline-none hover:underline focus-visible:ring-2 focus-visible:ring-ring\"\n                onClick={onSignIn}\n                type=\"button\"\n              >\n                Sign in\n              </button>\n            </p>\n          </motion.form>\n          <AnimatePresence initial={false}>\n            {done && (\n              <motion.div\n                animate={{ opacity: 1, y: 0 }}\n                className=\"col-start-1 row-start-1 flex flex-col justify-center\"\n                exit={{ opacity: 0, transition: { duration: 0.12 } }}\n                initial={reduce ? { opacity: 0 } : { opacity: 0, y: 10 }}\n                key=\"done\"\n                transition={{ duration: 0.26, ease }}\n              >\n                <motion.span\n                  animate={{ scale: 1, opacity: 1 }}\n                  className=\"flex size-12 items-center justify-center rounded-2xl bg-success/12 text-success-foreground\"\n                  initial={reduce ? false : { scale: 0.8, opacity: 0 }}\n                  transition={{\n                    type: \"spring\",\n                    stiffness: 420,\n                    damping: 22,\n                    delay: 0.08,\n                  }}\n                >\n                  <MailCheckIcon className=\"size-6\" />\n                </motion.span>\n                <h2 className=\"mt-5 text-balance font-semibold text-2xl tracking-tight\">Check your email, {name.trim().split(\" \")[0]}</h2>\n                <p className=\"mt-2 max-w-[38ch] text-pretty text-muted-foreground text-sm\">\n                  We sent a confirmation link to <span className=\"font-medium text-foreground\">{email.trim()}</span>. Open it to finish\n                  setting up your workspace.\n                </p>\n                <Button\n                  className={cn(\"mt-6 self-start\", press)}\n                  onClick={() => {\n                    setDone(false);\n                    setSubmitted(false);\n                    setTouched({});\n                    setPassword(\"\");\n                    setAgree(false);\n                  }}\n                  variant=\"outline\"\n                >\n                  Use a different email\n                </Button>\n              </motion.div>\n            )}\n          </AnimatePresence>\n        </div>\n      </div>\n\n      <aside className=\"relative isolate flex flex-col overflow-hidden border-t bg-muted/50 px-5 py-6 sm:px-10 md:border-t-0 md:border-l md:py-10\">\n        <div\n          aria-hidden\n          className=\"absolute inset-0 -z-10 bg-[radial-gradient(var(--color-border)_1px,transparent_1px)] [background-size:18px_18px] [mask-image:linear-gradient(to_bottom,black,transparent_75%)]\"\n        />\n        <div\n          aria-hidden\n          className=\"absolute -top-24 -right-24 -z-10 size-80 rounded-full bg-violet-500/15 blur-3xl dark:bg-violet-500/10\"\n        />\n        <div className=\"hidden flex-1 items-center justify-center pt-4 pb-14 md:flex\">{showcase ?? <DefaultShowcase />}</div>\n        <Quotes quotes={quotes} />\n      </aside>\n    </section>\n  );\n}\n"
    }
  ]
}