{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "auth-flow-signup-wizard",
  "type": "registry:component",
  "title": "Auth Flow Signup Wizard",
  "description": "A one-question-per-screen sign-up that slides each question in with a blur, advances on Enter and toggles choices with number keys. Beside it a member pass builds itself live from the answers, with a gradient avatar, workspace address, chosen uses and a stamp when the account is created.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "auth",
    "auth",
    "sign up",
    "wizard",
    "onboarding",
    "conversational form",
    "steps"
  ],
  "docs": "https://hyperblur.dev/effects/auth-flow-signup-wizard",
  "files": [
    {
      "path": "registry/hyperblur/auth-flow-signup-wizard.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/auth-flow-signup-wizard.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface AuthFlowSignupValues {\n  name: string;\n  email: string;\n  workspace: string;\n  uses: string[];\n  password: string;\n}\n\nexport interface AuthFlowSignupWizardProps extends Omit<React.HTMLAttributes<HTMLElement>, \"title\" | \"onSubmit\" | \"defaultValue\"> {\n  brand?: string;\n  domain?: string;\n  uses?: string[];\n  defaultValues?: Partial<AuthFlowSignupValues>;\n  defaultStep?: number;\n  onStepChange?: (step: number) => void;\n  onSubmit?: (values: AuthFlowSignupValues) => void | Promise<unknown>;\n  headingAs?: \"h1\" | \"h2\" | \"h3\";\n  accent?: string;\n}\n\nconst css = `\n@keyframes hb-vg5-q {\n  from { opacity: 0; transform: translate3d(0, 22px, 0); filter: blur(4px); }\n  to { opacity: 1; transform: translate3d(0, 0, 0); filter: blur(0); }\n}\n@keyframes hb-vg5-qb {\n  from { opacity: 0; transform: translate3d(0, -22px, 0); filter: blur(4px); }\n  to { opacity: 1; transform: translate3d(0, 0, 0); filter: blur(0); }\n}\n@keyframes hb-vg5-stamp {\n  0% { opacity: 0; transform: rotate(-14deg) scale(2.2); }\n  60% { opacity: 1; transform: rotate(-14deg) scale(.92); }\n  100% { opacity: 1; transform: rotate(-14deg) scale(1); }\n}\n@keyframes hb-vg5-float {\n  0%, 100% { transform: rotate(-3deg) translateY(0); }\n  50% { transform: rotate(-2deg) translateY(-6px); }\n}\n.hb-vg5 {\n  --hb-vg5-accent: #f97316;\n  position: relative;\n  box-sizing: border-box;\n  width: 100%;\n  padding: 72px 24px;\n  overflow: hidden;\n  isolation: isolate;\n  container-type: inline-size;\n  background: #0a0a0a;\n  color: #ededed;\n  font-family: inherit;\n  -webkit-font-smoothing: antialiased;\n}\n.hb-vg5 *, .hb-vg5 *::before, .hb-vg5 *::after { box-sizing: border-box; }\n.hb-vg5::before { content: \"\"; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 36% 60% at 78% 50%, color-mix(in srgb, var(--hb-vg5-accent) 12%, transparent), transparent 70%); }\n.hb-vg5-wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; align-items: center; max-width: 960px; margin: 0 auto; }\n.hb-vg5-bar { display: flex; align-items: center; gap: 14px; }\n.hb-vg5-segs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 5px; flex: 1 1 auto; }\n.hb-vg5-seg { height: 4px; border-radius: 4px; background: #1f1f1f; overflow: hidden; }\n.hb-vg5-seg span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--hb-vg5-accent), color-mix(in srgb, var(--hb-vg5-accent) 60%, #fff)); transform: scaleX(var(--f)); transform-origin: left; transition: transform .5s cubic-bezier(.65, 0, .35, 1); }\n.hb-vg5-count { color: #8f8f8f; font: 500 12px/1 var(--font-mono), ui-monospace, monospace; font-variant-numeric: tabular-nums; }\n.hb-vg5-count b { color: #ededed; font-weight: 600; }\n.hb-vg5-stage { min-height: 252px; margin-top: 40px; }\n.hb-vg5-q { animation: hb-vg5-q .5s cubic-bezier(.2, .8, .2, 1) both; }\n.hb-vg5-q[data-dir=\"back\"] { animation-name: hb-vg5-qb; }\n.hb-vg5-qn { display: inline-flex; align-items: center; gap: 8px; color: var(--hb-vg5-accent); font: 600 13px/1 var(--font-mono), ui-monospace, monospace; }\n.hb-vg5-label { display: block; margin: 12px 0 0; font-family: var(--font-grotesk), var(--font-sans), sans-serif; font-size: 34px; font-weight: 600; letter-spacing: -.03em; line-height: 1.12; }\n.hb-vg5-help { margin: 10px 0 0; color: #8f8f8f; font-size: 14px; line-height: 1.55; }\n.hb-vg5-field { position: relative; margin-top: 24px; }\n.hb-vg5-input {\n  width: 100%;\n  padding: 8px 0 12px;\n  border: 0;\n  border-bottom: 1px solid #2a2a2a;\n  border-radius: 0;\n  background: linear-gradient(var(--hb-vg5-accent), var(--hb-vg5-accent)) left bottom / 0% 2px no-repeat;\n  color: #ededed;\n  font: inherit;\n  font-size: 24px;\n  font-weight: 500;\n  letter-spacing: -.01em;\n  outline: none;\n  transition: background-size .45s cubic-bezier(.65, 0, .35, 1), border-color .2s ease;\n}\n.hb-vg5-input::placeholder { color: #3d3d3d; }\n.hb-vg5-input:focus { background-size: 100% 2px; }\n.hb-vg5-field[data-bad=\"true\"] .hb-vg5-input { border-color: #7f1d1d; }\n.hb-vg5-suffix { display: flex; align-items: baseline; gap: 2px; }\n.hb-vg5-suffix .hb-vg5-input { flex: 1 1 auto; min-width: 0; }\n.hb-vg5-suffix span { color: #5c5c5c; font-size: 20px; font-weight: 500; white-space: nowrap; }\n.hb-vg5-err { min-height: 18px; margin-top: 10px; color: #fca5a5; font-size: 13px; }\n.hb-vg5-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }\n.hb-vg5-chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 10px; border: 1px solid #2a2a2a; border-radius: 999px; background: #111; color: #cfcfcf; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: border-color .2s ease, background .2s ease, color .2s ease, transform .15s cubic-bezier(.3, 1.4, .5, 1); }\n.hb-vg5-chip:hover { border-color: #3a3a3a; }\n.hb-vg5-chip:active { transform: scale(.95); }\n.hb-vg5-chip kbd { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid #333; border-radius: 6px; color: #8f8f8f; font: 600 10.5px/1 var(--font-mono), ui-monospace, monospace; transition: inherit; }\n.hb-vg5-chip[aria-pressed=\"true\"] { border-color: color-mix(in srgb, var(--hb-vg5-accent) 60%, transparent); background: color-mix(in srgb, var(--hb-vg5-accent) 12%, #111); color: #ededed; }\n.hb-vg5-chip[aria-pressed=\"true\"] kbd { border-color: transparent; background: var(--hb-vg5-accent); color: #0a0a0a; }\n.hb-vg5-chip:focus-visible, .hb-vg5-next:focus-visible, .hb-vg5-back:focus-visible, .hb-vg5-eye:focus-visible { outline: 2px solid var(--hb-vg5-accent); outline-offset: 2px; }\n.hb-vg5-eye { position: absolute; right: 0; top: 10px; padding: 4px 8px; border: 1px solid #2a2a2a; border-radius: 7px; background: #111; color: #a1a1a1; font: inherit; font-size: 12px; cursor: pointer; }\n.hb-vg5-nav { display: flex; align-items: center; gap: 14px; margin-top: 18px; }\n.hb-vg5-next { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px; border: 0; border-radius: 12px; background: #ededed; color: #0a0a0a; font: inherit; font-size: 14.5px; font-weight: 650; cursor: pointer; box-shadow: inset 0 1px 0 #fff, 0 10px 24px -14px rgba(255,255,255,.5); transition: transform .15s ease, opacity .2s ease; }\n.hb-vg5-next:active:not(:disabled) { transform: scale(.97); }\n.hb-vg5-next:disabled { opacity: .5; cursor: progress; }\n.hb-vg5-hint { color: #6b6b6b; font-size: 12.5px; }\n.hb-vg5-hint kbd { padding: 1px 6px; border: 1px solid #2a2a2a; border-bottom-width: 2px; border-radius: 5px; color: #a1a1a1; font: 500 11px/1.4 var(--font-mono), ui-monospace, monospace; }\n.hb-vg5-back { margin-left: auto; padding: 6px 10px; border: 0; border-radius: 8px; background: none; color: #8f8f8f; font: inherit; font-size: 13px; cursor: pointer; }\n.hb-vg5-back:hover { color: #ededed; background: #141414; }\n.hb-vg5-pass { position: relative; justify-self: center; width: 100%; max-width: 330px; perspective: 900px; }\n.hb-vg5-card { position: relative; padding: 22px; border: 1px solid #2a2a2a; border-radius: 22px; background: radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--hb-vg5-accent) 22%, transparent), transparent 60%), linear-gradient(160deg, #1a1a1a, #0e0e0e); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 40px 80px -30px #000, 0 0 0 6px #0f0f0f, 0 0 0 7px #222; animation: hb-vg5-float 7s ease-in-out infinite; overflow: hidden; }\n.hb-vg5-card::before { content: \"\"; position: absolute; top: 14px; left: 50%; width: 44px; height: 6px; margin-left: -22px; border-radius: 6px; background: #0a0a0a; box-shadow: inset 0 1px 2px #000; }\n.hb-vg5-brand { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; color: #a1a1a1; font: 600 11px/1 var(--font-mono), ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }\n.hb-vg5-av { display: grid; place-items: center; width: 64px; height: 64px; margin-top: 22px; border-radius: 20px; background: var(--hb-vg5-av, #222); color: #0a0a0a; font-family: var(--font-grotesk), var(--font-sans), sans-serif; font-size: 24px; font-weight: 700; letter-spacing: -.02em; box-shadow: inset 0 1px 0 rgba(255,255,255,.4); transition: background .5s ease; }\n.hb-vg5-av[data-empty=\"true\"] { background: #1c1c1c; color: #4f4f4f; box-shadow: inset 0 0 0 1px #2a2a2a; }\n.hb-vg5-line { display: block; min-height: 1.4em; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .3s ease; }\n.hb-vg5-line[data-empty=\"true\"] { color: transparent; background: linear-gradient(90deg, #1d1d1d, #252525) left center / var(--w, 60%) .7em no-repeat; }\n.hb-vg5-nm { margin-top: 16px; font-family: var(--font-grotesk), var(--font-sans), sans-serif; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }\n.hb-vg5-em { color: #a1a1a1; font-size: 13.5px; }\n.hb-vg5-url { margin-top: 16px; padding: 10px 12px; border: 1px dashed #2f2f2f; border-radius: 10px; background: rgba(0,0,0,.25); color: #ededed; font: 500 12.5px/1.4 var(--font-mono), ui-monospace, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.hb-vg5-url span { color: #6b6b6b; }\n.hb-vg5-tags { display: flex; flex-wrap: wrap; gap: 5px; min-height: 24px; margin-top: 14px; }\n.hb-vg5-tags span { padding: 4px 8px; border-radius: 6px; background: rgba(255,255,255,.06); color: #cfcfcf; font-size: 11.5px; font-weight: 550; }\n.hb-vg5-lock { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.07); color: #6b6b6b; font: 500 12px/1 var(--font-mono), ui-monospace, monospace; letter-spacing: .25em; }\n.hb-vg5-lock[data-on=\"true\"] { color: var(--hb-vg5-accent); }\n.hb-vg5-stamp { position: absolute; right: 18px; bottom: 54px; padding: 8px 12px; border: 2px solid var(--hb-vg5-accent); border-radius: 10px; color: var(--hb-vg5-accent); font: 700 12px/1 var(--font-mono), ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; animation: hb-vg5-stamp .55s cubic-bezier(.3, 1.3, .5, 1) both; box-shadow: inset 0 0 0 2px rgba(0,0,0,.2); }\n.hb-vg5-done h3 { margin: 0; font-family: var(--font-grotesk), var(--font-sans), sans-serif; font-size: 34px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }\n.hb-vg5-done p { margin: 12px 0 0; color: #a1a1a1; font-size: 15px; line-height: 1.6; }\n.hb-vg5-done a { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; height: 44px; padding: 0 18px; border-radius: 12px; background: var(--hb-vg5-accent); color: #0a0a0a; font-size: 14.5px; font-weight: 650; text-decoration: none; }\n.hb-vg5-done a:focus-visible { outline: 2px solid #ededed; outline-offset: 3px; }\n@container (max-width: 760px) {\n  .hb-vg5-wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; }\n  .hb-vg5-label { font-size: 26px; }\n  .hb-vg5-input { font-size: 20px; }\n  .hb-vg5-hint { display: none; }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-vg5 *, .hb-vg5 *::before, .hb-vg5 *::after { animation: none !important; transition: none !important; }\n}\n`;\n\nfunction seedOf(s: string) {\n  let h = 2166136261;\n  for (let i = 0; i < s.length; i++) h = Math.imul(h ^ s.charCodeAt(i), 16777619) >>> 0;\n  return h >>> 0;\n}\n\nfunction slugify(s: string) {\n  return s.toLowerCase().trim().replace(/[^a-z0-9]+/g, \"-\").replace(/^-+|-+$/g, \"\").slice(0, 32);\n}\n\nfunction initials(name: string) {\n  const parts = name.trim().split(/\\s+/).filter(Boolean);\n  if (!parts.length) return \"\";\n  return ((parts[0][0] ?? \"\") + (parts.length > 1 ? parts[parts.length - 1][0] : \"\")).toUpperCase();\n}\n\nfunction wait(result: void | Promise<unknown>) {\n  return result instanceof Promise ? result : new Promise((resolve) => window.setTimeout(resolve, 900));\n}\n\nconst questions = [\n  { key: \"name\", q: \"First, what should we call you?\", help: \"Your teammates will see this on comments and reviews.\", ph: \"Ada Lovelace\" },\n  { key: \"email\", q: \"Where can we reach you?\", help: \"Use your work email so teammates can find you.\", ph: \"ada@company.com\" },\n  { key: \"workspace\", q: \"Name your workspace\", help: \"Usually your company or team. You can rename it later.\", ph: \"Analytical Engines\" },\n  { key: \"uses\", q: \"What will you use it for?\", help: \"Pick all that apply. Press the number keys to toggle.\", ph: \"\" },\n  { key: \"password\", q: \"Last step: set a password\", help: \"At least 10 characters. Longer is better.\", ph: \"••••••••••\" },\n] as const;\n\nexport function AuthFlowSignupWizard({\n  brand = \"Ledgerline\",\n  domain = \"ledgerline.app\",\n  uses = [\"Product roadmaps\", \"Bug tracking\", \"Sprint planning\", \"Customer feedback\", \"Docs\"],\n  defaultValues,\n  defaultStep = 0,\n  onStepChange,\n  onSubmit,\n  headingAs = \"h2\",\n  accent = \"#f97316\",\n  className = \"\",\n  style,\n  ...rest\n}: AuthFlowSignupWizardProps) {\n  const Heading = headingAs;\n  const uid = React.useId();\n  const inputRef = React.useRef<HTMLInputElement>(null);\n  const [values, setValues] = React.useState<AuthFlowSignupValues>({\n    name: defaultValues?.name ?? \"\",\n    email: defaultValues?.email ?? \"\",\n    workspace: defaultValues?.workspace ?? \"\",\n    uses: defaultValues?.uses ?? [],\n    password: defaultValues?.password ?? \"\",\n  });\n  const [step, setStep] = React.useState(Math.max(0, Math.min(questions.length - 1, defaultStep)));\n  const [dir, setDir] = React.useState<\"fwd\" | \"back\">(\"fwd\");\n  const [error, setError] = React.useState(\"\");\n  const fieldRef = React.useRef<HTMLDivElement>(null);\n  const [show, setShow] = React.useState(false);\n  const [busy, setBusy] = React.useState(false);\n  const [done, setDone] = React.useState(false);\n  const mounted = React.useRef(false);\n\n  React.useEffect(() => {\n    if (!mounted.current) {\n      mounted.current = true;\n      return;\n    }\n    inputRef.current?.focus();\n  }, [step]);\n\n  const current = questions[step];\n  const slug = slugify(values.workspace);\n\n  const validate = () => {\n    if (current.key === \"name\" && values.name.trim().length < 2) return \"Tell us at least your first name.\";\n    if (current.key === \"email\" && !/^[^\\s@]+@[^\\s@]+\\.[^\\s@]{2,}$/.test(values.email.trim())) return \"That email doesn't look right.\";\n    if (current.key === \"workspace\" && slug.length < 2) return \"Give your workspace a name of two letters or more.\";\n    if (current.key === \"uses\" && values.uses.length === 0) return \"Pick at least one so we can set things up for you.\";\n    if (current.key === \"password\" && values.password.length < 10) return `${10 - values.password.length} more characters to go.`;\n    return \"\";\n  };\n\n  const move = (n: number) => {\n    setDir(n > step ? \"fwd\" : \"back\");\n    setStep(n);\n    setError(\"\");\n    onStepChange?.(n);\n  };\n\n  const next = () => {\n    const msg = validate();\n    if (msg) {\n      setError(msg);\n      if (fieldRef.current && !window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches) {\n        fieldRef.current.animate(\n          [{ transform: \"translateX(0)\" }, { transform: \"translateX(-6px)\" }, { transform: \"translateX(5px)\" }, { transform: \"translateX(-2px)\" }, { transform: \"translateX(0)\" }],\n          { duration: 380, easing: \"ease-out\" },\n        );\n      }\n      return;\n    }\n    if (step < questions.length - 1) {\n      move(step + 1);\n      return;\n    }\n    setBusy(true);\n    wait(onSubmit?.(values)).then(\n      () => {\n        setBusy(false);\n        setDone(true);\n      },\n      (err: unknown) => {\n        setBusy(false);\n        setError(err instanceof Error ? err.message : \"Something went wrong. Try again.\");\n      },\n    );\n  };\n\n  const toggle = (u: string) => {\n    setError(\"\");\n    setValues((v) => ({ ...v, uses: v.uses.includes(u) ? v.uses.filter((x) => x !== u) : [...v.uses, u] }));\n  };\n\n  const onKey = (e: React.KeyboardEvent<HTMLFormElement>) => {\n    if (current.key === \"uses\" && /^[1-9]$/.test(e.key)) {\n      const u = uses[Number(e.key) - 1];\n      if (u) {\n        e.preventDefault();\n        toggle(u);\n      }\n    }\n  };\n\n  const set = (k: \"name\" | \"email\" | \"workspace\" | \"password\") => (e: React.ChangeEvent<HTMLInputElement>) => {\n    setError(\"\");\n    setValues((v) => ({ ...v, [k]: e.target.value }));\n  };\n\n  const seed = seedOf(values.name.trim().toLowerCase());\n  const hue = seed % 360;\n  const av = `linear-gradient(135deg, hsl(${hue} 85% 68%), hsl(${(hue + 50) % 360} 80% 58%))`;\n  const vars = { \"--hb-vg5-accent\": accent, ...style } as React.CSSProperties;\n  const ini = initials(values.name);\n  const qid = `${uid}-q`;\n\n  return (\n    <section className={`hb-vg5 ${className}`} style={vars} aria-labelledby={`${uid}-t`} {...rest}>\n      <style href=\"hb-auth-flow-signup-wizard\" precedence=\"default\">{css}</style>\n      <div className=\"hb-vg5-wrap\">\n        <div>\n          <Heading id={`${uid}-t`} style={{ position: \"absolute\", width: 1, height: 1, overflow: \"hidden\", clip: \"rect(0 0 0 0)\" }}>\n            Create your {brand} account\n          </Heading>\n          {done ? (\n            <div className=\"hb-vg5-done hb-vg5-q\" role=\"status\">\n              <span className=\"hb-vg5-qn\">All set</span>\n              <h3 style={{ marginTop: 12 }}>Welcome to {brand}, {values.name.trim().split(/\\s+/)[0]}.</h3>\n              <p>We sent a confirmation to {values.email}. Your workspace is ready at {slug}.{domain}.</p>\n              <a href={`#${slug}`}>\n                Open {values.workspace.trim()}\n                <svg width=\"14\" height=\"14\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.9\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\">\n                  <path d=\"M3 8h10M9 4l4 4-4 4\" />\n                </svg>\n              </a>\n            </div>\n          ) : (\n            <>\n              <div className=\"hb-vg5-bar\">\n                <div className=\"hb-vg5-segs\" role=\"progressbar\" aria-label=\"Sign-up progress\" aria-valuemin={1} aria-valuemax={questions.length} aria-valuenow={step + 1}>\n                  {questions.map((q, i) => (\n                    <span key={q.key} className=\"hb-vg5-seg\">\n                      <span style={{ \"--f\": i < step ? 1 : i === step ? 0.35 : 0 } as React.CSSProperties} />\n                    </span>\n                  ))}\n                </div>\n                <span className=\"hb-vg5-count\">\n                  <b>{step + 1}</b>/{questions.length}\n                </span>\n              </div>\n              <form\n                className=\"hb-vg5-stage\"\n                noValidate\n                onKeyDown={onKey}\n                onSubmit={(e) => {\n                  e.preventDefault();\n                  next();\n                }}\n              >\n                <div className=\"hb-vg5-q\" data-dir={dir} key={step}>\n                  <span className=\"hb-vg5-qn\">\n                    {step + 1}\n                    <svg width=\"12\" height=\"12\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\">\n                      <path d=\"M3 8h10M9 4l4 4-4 4\" />\n                    </svg>\n                  </span>\n                  <label className=\"hb-vg5-label\" htmlFor={qid} id={`${qid}-l`}>{current.q}</label>\n                  <p className=\"hb-vg5-help\">{current.help}</p>\n                  {current.key === \"uses\" ? (\n                    <div className=\"hb-vg5-chips\" role=\"group\" aria-labelledby={`${qid}-l`} ref={fieldRef} data-bad={!!error}>\n                      {uses.map((u, i) => (\n                        <button key={u} type=\"button\" className=\"hb-vg5-chip\" aria-pressed={values.uses.includes(u)} onClick={() => toggle(u)}>\n                          <kbd>{i + 1}</kbd>\n                          {u}\n                        </button>\n                      ))}\n                    </div>\n                  ) : (\n                    <div className=\"hb-vg5-field\" data-bad={!!error} ref={fieldRef}>\n                      {current.key === \"workspace\" ? (\n                        <div className=\"hb-vg5-suffix\">\n                          <input ref={inputRef} id={qid} className=\"hb-vg5-input\" value={values.workspace} onChange={set(\"workspace\")} placeholder={current.ph} autoComplete=\"organization\" aria-invalid={!!error || undefined} aria-describedby={`${qid}-e`} />\n                          <span>.{domain}</span>\n                        </div>\n                      ) : current.key === \"password\" ? (\n                        <>\n                          <input ref={inputRef} id={qid} className=\"hb-vg5-input\" type={show ? \"text\" : \"password\"} value={values.password} onChange={set(\"password\")} placeholder={current.ph} autoComplete=\"new-password\" aria-invalid={!!error || undefined} aria-describedby={`${qid}-e`} style={{ paddingRight: 64 }} />\n                          <button type=\"button\" className=\"hb-vg5-eye\" onClick={() => setShow((s) => !s)} aria-pressed={show}>{show ? \"Hide\" : \"Show\"}</button>\n                        </>\n                      ) : (\n                        <input\n                          ref={inputRef}\n                          id={qid}\n                          className=\"hb-vg5-input\"\n                          type={current.key === \"email\" ? \"email\" : \"text\"}\n                          value={values[current.key]}\n                          onChange={set(current.key)}\n                          placeholder={current.ph}\n                          autoComplete={current.key === \"email\" ? \"email\" : \"name\"}\n                          aria-invalid={!!error || undefined}\n                          aria-describedby={`${qid}-e`}\n                        />\n                      )}\n                    </div>\n                  )}\n                  <div id={`${qid}-e`} className=\"hb-vg5-err\" role=\"alert\">{error}</div>\n                </div>\n                <div className=\"hb-vg5-nav\">\n                  <button type=\"submit\" className=\"hb-vg5-next\" disabled={busy} aria-busy={busy || undefined}>\n                    {busy ? \"Creating account\" : step === questions.length - 1 ? \"Create account\" : \"Continue\"}\n                  </button>\n                  <span className=\"hb-vg5-hint\">\n                    or press <kbd>Enter ↵</kbd>\n                  </span>\n                  {step > 0 ? (\n                    <button type=\"button\" className=\"hb-vg5-back\" onClick={() => move(step - 1)}>\n                      Back\n                    </button>\n                  ) : null}\n                </div>\n              </form>\n            </>\n          )}\n        </div>\n        <div className=\"hb-vg5-pass\" aria-hidden=\"true\">\n          <div className=\"hb-vg5-card\" style={{ \"--hb-vg5-av\": av } as React.CSSProperties}>\n            <div className=\"hb-vg5-brand\">\n              <span>{brand}</span>\n              <span>Member</span>\n            </div>\n            <div className=\"hb-vg5-av\" data-empty={!ini}>{ini || \"?\"}</div>\n            <span className=\"hb-vg5-line hb-vg5-nm\" data-empty={!values.name.trim()} style={{ \"--w\": \"70%\" } as React.CSSProperties}>{values.name.trim() || \"Your name\"}</span>\n            <span className=\"hb-vg5-line hb-vg5-em\" data-empty={!values.email.trim()} style={{ \"--w\": \"55%\" } as React.CSSProperties}>{values.email.trim() || \"you@company.com\"}</span>\n            <div className=\"hb-vg5-url\">\n              {slug || <span>your-team</span>}\n              <span>.{domain}</span>\n            </div>\n            <div className=\"hb-vg5-tags\">\n              {values.uses.map((u) => (\n                <span key={u}>{u}</span>\n              ))}\n            </div>\n            <div className=\"hb-vg5-lock\" data-on={values.password.length >= 10}>\n              <svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\n                <rect x=\"4\" y=\"10\" width=\"16\" height=\"11\" rx=\"2.5\" />\n                <path d=\"M8 10V7a4 4 0 0 1 8 0v3\" />\n              </svg>\n              {\"•\".repeat(Math.min(values.password.length, 14)) || \"not set\"}\n            </div>\n            {done ? <span className=\"hb-vg5-stamp\">Verified</span> : null}\n          </div>\n        </div>\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}