{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"signup-form","type":"registry:block","title":"Sign up form","description":"An account creation flow with field validation, password strength, and a clear completion state.","categories":["blocks"],"dependencies":["motion"],"registryDependencies":["https://uiarc.dev/r/arc-motion-tokens.json","https://uiarc.dev/r/button.json","https://uiarc.dev/r/checkbox.json","https://uiarc.dev/r/input.json","https://uiarc.dev/r/password-field.json"],"files":[{"path":"registry/blocks/signup-form/signup-form.tsx","type":"registry:component","target":"@components/arc/blocks/signup-form/signup-form.tsx","content":"\"use client\";\n\nimport { useCallback, useEffect, useId, useLayoutEffect, useRef, useState, type FormEvent } from \"react\";\nimport { AnimatePresence, animate, motion, useMotionValue, useReducedMotion, type Transition, type Variants } from \"motion/react\";\nimport { Button } from \"../../button/button\";\nimport { Checkbox } from \"../../checkbox/checkbox\";\nimport { Input } from \"../../input/input\";\nimport { PasswordField } from \"../../password-field/password-field\";\nimport { motionTokens } from \"../../lib/motion-tokens\";\nimport styles from \"./signup-form.module.css\";\n\nexport interface SignupDetails {\n  name: string;\n  email: string;\n  password: string;\n  productUpdates: boolean;\n}\n\ntype Provider = \"Google\" | \"Apple\" | \"GitHub\";\n\nexport interface SignupFormProps {\n  /** Receives the details once every field is valid. Throw to show a submit error. */\n  onSubmit?: (details: SignupDetails) => void | Promise<void>;\n  /** An error from your API, shown above the submit button. */\n  serverError?: string | null;\n  /** Called when someone picks a single sign-on provider. The preview simulates the redirect. */\n  onProvider?: (provider: Provider) => void;\n}\n\ntype Field = \"name\" | \"email\" | \"password\";\ntype Step = \"form\" | \"done\";\ntype StepCustom = { direction: number; reduce: boolean };\n\nconst providers: Provider[] = [\"Google\", \"Apple\", \"GitHub\"];\n/** The official four-colour Google \"G\"; Apple and GitHub ship monochrome marks, drawn in currentColor. */\nfunction GoogleLogo() {\n  return <svg className={styles.providerMark} width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" aria-hidden=\"true\">\n    <path fill=\"#4285F4\" d=\"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z\" />\n    <path fill=\"#34A853\" d=\"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z\" />\n    <path fill=\"#FBBC05\" d=\"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z\" />\n    <path fill=\"#EA4335\" d=\"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z\" />\n  </svg>;\n}\nconst monoMarks: Record<Exclude<Provider, \"Google\">, string> = {\n  Apple: \"M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701\",\n  GitHub: \"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12\",\n};\n\nfunction getErrors(name: string, email: string, password: string) {\n  return {\n    name: name.trim().length < 2 ? \"Enter your full name.\" : \"\",\n    email: !/^[^\\s@]+@[^\\s@]+\\.[^\\s@]{2,}$/.test(email.trim()) ? \"Enter a full address, like name@example.com.\" : \"\",\n    password: password.length < 8 ? \"Use at least 8 characters.\" : \"\",\n  };\n}\n\nfunction passwordScore(password: string) {\n  if (!password) return 0;\n  return [password.length >= 8, password.length >= 12, /[a-z]/.test(password) && /[A-Z]/.test(password), /\\d|[^\\w\\s]/.test(password)].filter(Boolean).length;\n}\nconst strengthLabel = [\"\", \"Weak\", \"Fair\", \"Good\", \"Strong\"];\n\n/** Steps cross over sideways out of a small blur; going back, they return from the other side. */\nconst stepMotion: Variants = {\n  enter: ({ direction, reduce }: StepCustom) => reduce ? { opacity: 0 } : { opacity: 0, x: direction * 24, filter: `blur(${motionTokens.blur.soft}px)` },\n  center: ({ reduce }: StepCustom) => ({ opacity: 1, x: 0, filter: \"blur(0px)\", transition: reduce ? { duration: motionTokens.duration.instant } : { x: motionTokens.spring.smooth, opacity: { duration: motionTokens.duration.standard, ease: motionTokens.ease.enter, delay: .05 }, filter: { duration: motionTokens.duration.standard, ease: motionTokens.ease.enter } } }),\n  exit: ({ direction, reduce }: StepCustom) => reduce ? { opacity: 0, transition: { duration: 0 } } : { opacity: 0, x: direction * -16, filter: `blur(${motionTokens.blur.soft}px)`, transition: { x: motionTokens.spring.smooth, opacity: { duration: motionTokens.duration.exit, ease: motionTokens.ease.standard }, filter: { duration: motionTokens.duration.exit } } },\n};\nconst swap = (reduce: boolean) => ({\n  initial: reduce ? { opacity: 0 } : { opacity: 0, y: 6, filter: `blur(${motionTokens.blur.soft}px)` },\n  animate: { opacity: 1, y: 0, filter: \"blur(0px)\" },\n  exit: reduce ? { opacity: 0, transition: { duration: 0 } } : { opacity: 0, y: -4, filter: `blur(${motionTokens.blur.subtle}px)`, transition: { duration: motionTokens.duration.fast } },\n  transition: (reduce ? { duration: motionTokens.duration.instant } : { duration: motionTokens.duration.standard, ease: motionTokens.ease.enter }) as Transition,\n});\n\n/** The card follows its content on a spring only while the step changes; otherwise it stays auto, so field messages open without lag. */\nfunction useStepHeight(step: Step, reduce: boolean) {\n  const track = useRef<HTMLDivElement>(null);\n  const height = useMotionValue<number | \"auto\">(\"auto\");\n  const measured = useRef(0);\n  const gliding = useRef(false);\n  const lastStep = useRef(step);\n  const glide = useCallback((to: number) => {\n    gliding.current = true;\n    animate(height, to, { ...motionTokens.spring.smooth, onComplete: () => { gliding.current = false; height.jump(\"auto\"); } });\n  }, [height]);\n  useEffect(() => {\n    const node = track.current;\n    if (!node || typeof ResizeObserver === \"undefined\") return;\n    const observer = new ResizeObserver(([entry]) => {\n      if (!entry) return;\n      measured.current = entry.borderBoxSize?.[0]?.blockSize ?? node.offsetHeight;\n      if (gliding.current) glide(measured.current);\n    });\n    observer.observe(node);\n    return () => observer.disconnect();\n  }, [glide]);\n  useLayoutEffect(() => {\n    if (lastStep.current === step) return;\n    lastStep.current = step;\n    const current = height.get();\n    const from = typeof current === \"number\" ? current : measured.current;\n    const to = track.current?.offsetHeight ?? 0;\n    if (reduce || !from || !to) { gliding.current = false; height.jump(\"auto\"); return; }\n    if (current === \"auto\") height.jump(from);\n    glide(to);\n  }, [step, reduce, height, glide]);\n  return { track, height };\n}\n\nexport function SignupForm({ onSubmit, serverError, onProvider }: SignupFormProps) {\n  const reduce = !!useReducedMotion();\n  const feedbackId = useId();\n  const nameRef = useRef<HTMLInputElement>(null);\n  const emailRef = useRef<HTMLInputElement>(null);\n  const passwordRef = useRef<HTMLInputElement>(null);\n  const doneRef = useRef<HTMLHeadingElement>(null);\n  const timers = useRef<number[]>([]);\n  const [step, setStep] = useState<Step>(\"form\");\n  const [direction, setDirection] = useState(1);\n  const [name, setName] = useState(\"\");\n  const [email, setEmail] = useState(\"\");\n  const [password, setPassword] = useState(\"\");\n  const [productUpdates, setProductUpdates] = useState(false);\n  const [touched, setTouched] = useState<Record<Field, boolean>>({ name: false, email: false, password: false });\n  const [submitted, setSubmitted] = useState(false);\n  const [busy, setBusy] = useState<null | \"form\" | Provider>(null);\n  const [method, setMethod] = useState<\"Email\" | Provider>(\"Email\");\n  const [submitError, setSubmitError] = useState(\"\");\n  const [status, setStatus] = useState(\"\");\n  const { track, height } = useStepHeight(step, reduce);\n  const errors = getErrors(name, email, password);\n  const score = passwordScore(password);\n  const visibleError = (field: Field) => (touched[field] || submitted ? errors[field] : \"\");\n  const passwordError = visibleError(\"password\");\n  const custom: StepCustom = { direction, reduce };\n  const shownError = submitError || serverError || \"\";\n  const feedback = passwordError ? { key: \"error\", text: passwordError } : password ? { key: `s${score}`, text: `${strengthLabel[Math.max(score, 1)]} password` } : { key: \"hint\", text: \"Use 8 or more characters.\" };\n\n  useEffect(() => { const pending = timers.current; return () => pending.forEach(window.clearTimeout); }, []);\n  useEffect(() => { if (step === \"done\") doneRef.current?.focus(); }, [step]);\n\n  function markTouched(field: Field) {\n    setTouched(current => ({ ...current, [field]: true }));\n  }\n\n  function finish(how: \"Email\" | Provider) {\n    setBusy(null);\n    setMethod(how);\n    setDirection(1);\n    setStep(\"done\");\n    setStatus(`Account created with ${how === \"Email\" ? \"your email\" : how}`);\n  }\n\n  async function submit(event: FormEvent<HTMLFormElement>) {\n    event.preventDefault();\n    if (busy) return;\n    setSubmitted(true);\n    setSubmitError(\"\");\n    const nextErrors = getErrors(name, email, password);\n    const firstInvalid = (Object.keys(nextErrors) as Field[]).find(field => nextErrors[field]);\n    if (firstInvalid) {\n      ({ name: nameRef, email: emailRef, password: passwordRef })[firstInvalid].current?.focus();\n      return;\n    }\n    setBusy(\"form\");\n    setStatus(\"Creating your account\");\n    try {\n      await Promise.all([onSubmit?.({ name: name.trim(), email: email.trim(), password, productUpdates }), new Promise(resolve => window.setTimeout(resolve, 700))]);\n      finish(\"Email\");\n    } catch (error) {\n      setBusy(null);\n      setSubmitError(error instanceof Error && error.message ? error.message : \"We couldn't create your account. Try again.\");\n      setStatus(\"Account not created\");\n    }\n  }\n\n  function continueWith(provider: Provider) {\n    if (busy) return;\n    setBusy(provider);\n    setStatus(`Opening ${provider}`);\n    onProvider?.(provider);\n    timers.current.push(window.setTimeout(() => {\n      if (!name.trim()) setName(\"Jasmine Brooks\");\n      if (!email.trim()) setEmail(\"jasmine@northwind.studio\");\n      finish(provider);\n    }, 900));\n  }\n\n  function reset() {\n    setName(\"\");\n    setEmail(\"\");\n    setPassword(\"\");\n    setProductUpdates(false);\n    setTouched({ name: false, email: false, password: false });\n    setSubmitted(false);\n    setSubmitError(\"\");\n    setDirection(-1);\n    setStep(\"form\");\n    setStatus(\"Start again with new details\");\n    timers.current.push(window.setTimeout(() => nameRef.current?.focus(), 60));\n  }\n\n  const firstName = name.trim().split(/\\s+/)[0] || \"there\";\n\n  return (\n    <section className={styles.block} aria-label=\"Create an Arc account\">\n      <motion.div className={styles.viewport} style={{ height }}>\n        <div ref={track} className={styles.track}>\n          <AnimatePresence mode=\"popLayout\" initial={false} custom={custom}>\n            {step === \"form\" ? (\n              <motion.div key=\"form\" className={styles.step} custom={custom} variants={stepMotion} initial=\"enter\" animate=\"center\" exit=\"exit\">\n                <div className={styles.heading}><h2>Create your account</h2><p>Start with your work email. You can invite your team after.</p></div>\n                <div className={styles.sso} role=\"group\" aria-label=\"Sign up with\">\n                  {providers.map(provider => <Button key={provider} type=\"button\" variant=\"secondary\" className={styles.ssoButton} aria-label={`Sign up with ${provider}`} loading={busy === provider} aria-disabled={(!!busy && busy !== provider) || undefined} onClick={() => continueWith(provider)}>\n                    {provider === \"Google\" ? <GoogleLogo /> : <svg className={styles.providerMark} width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path d={monoMarks[provider]} /></svg>}{provider}\n                  </Button>)}\n                </div>\n                <div className={styles.divider}>or</div>\n                <form onSubmit={event => void submit(event)} noValidate className={styles.form}>\n                  <Input ref={nameRef} label=\"Full name\" name=\"name\" autoComplete=\"name\" placeholder=\"Jasmine Brooks\" value={name} onChange={event => setName(event.target.value)} onBlur={() => { if (name) markTouched(\"name\"); }} error={visibleError(\"name\")} readOnly={!!busy} />\n                  <Input ref={emailRef} label=\"Work email\" name=\"email\" type=\"email\" inputMode=\"email\" autoComplete=\"email\" autoCapitalize=\"none\" spellCheck={false} placeholder=\"name@example.com\" value={email} onChange={event => setEmail(event.target.value)} onBlur={() => { if (email) markTouched(\"email\"); }} error={visibleError(\"email\")} readOnly={!!busy} />\n                  <div className={styles.passwordGroup}>\n                    <PasswordField ref={passwordRef} label=\"Password\" name=\"password\" autoComplete=\"new-password\" value={password} onChange={event => setPassword(event.target.value)} onBlur={() => { if (password) markTouched(\"password\"); }} aria-invalid={passwordError ? true : undefined} aria-describedby={feedbackId} readOnly={!!busy} />\n                    <div className={styles.feedback}>\n                      <span id={feedbackId} className={styles.feedbackText} data-error={passwordError ? true : undefined} role={passwordError ? \"alert\" : undefined}>\n                        <AnimatePresence mode=\"popLayout\" initial={false}><motion.span key={feedback.key} {...swap(reduce)}>{feedback.text}</motion.span></AnimatePresence>\n                      </span>\n                      <span className={styles.meter} data-level={score} aria-hidden=\"true\">{[1, 2, 3, 4].map(bar => <span key={bar} data-on={bar <= score || undefined} />)}</span>\n                    </div>\n                  </div>\n                  <div className={styles.updates}><Checkbox label=\"Email me product updates\" checked={productUpdates} onCheckedChange={checked => setProductUpdates(checked === true)} disabled={!!busy} /></div>\n                  <AnimatePresence initial={false}>\n                    {shownError && <motion.div key=\"error\" className={styles.row} initial={{ height: 0, opacity: 0 }} animate={{ height: \"auto\", opacity: 1 }} exit={{ height: 0, opacity: 0 }} transition={reduce ? { duration: 0 } : { height: motionTokens.spring.smooth, opacity: { duration: motionTokens.duration.fast } }}>\n                      <p className={styles.submitError} role=\"alert\">{shownError}</p>\n                    </motion.div>}\n                  </AnimatePresence>\n                  <Button className={styles.wide} type=\"submit\" loading={busy === \"form\"}>Create account</Button>\n                </form>\n                <p className={styles.legal}>By creating an account you agree to the <button type=\"button\" className={styles.textButton} onClick={() => setStatus(\"Terms open in your app\")}>Terms</button> and <button type=\"button\" className={styles.textButton} onClick={() => setStatus(\"Privacy policy opens in your app\")}>Privacy policy</button>.</p>\n              </motion.div>\n            ) : (\n              <motion.div key=\"done\" className={styles.step} custom={custom} variants={stepMotion} initial=\"enter\" animate=\"center\" exit=\"exit\">\n                <svg className={styles.success} viewBox=\"0 0 48 48\" aria-hidden=\"true\">\n                  <g transform=\"rotate(-90 24 24)\"><motion.circle cx=\"24\" cy=\"24\" r=\"22.25\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.5\" initial={reduce ? false : { pathLength: 0, opacity: 0 }} animate={{ pathLength: 1, opacity: 1 }} transition={{ pathLength: { duration: motionTokens.duration.considered, ease: motionTokens.ease.inOut, delay: .16 }, opacity: { duration: motionTokens.duration.instant, delay: .16 } }} /></g>\n                  <motion.path d=\"M15.5 24.5l5.5 5.5 11.5-12\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"round\" strokeLinejoin=\"round\" initial={reduce ? false : { pathLength: 0, opacity: 0 }} animate={{ pathLength: 1, opacity: 1 }} transition={{ pathLength: { duration: motionTokens.duration.standard + .08, ease: motionTokens.ease.enter, delay: .5 }, opacity: { duration: motionTokens.duration.instant, delay: .5 } }} />\n                </svg>\n                <div className={styles.heading}><h2 ref={doneRef} tabIndex={-1}>Welcome, {firstName}</h2><p>Your account is ready. We sent a confirmation to <span className={styles.address}>{email.trim()}</span>.</p></div>\n                <dl className={styles.details}>\n                  <div><dt>Signed up with</dt><dd>{method}</dd></div>\n                  <div><dt>Product updates</dt><dd>{productUpdates ? \"On\" : \"Off\"}</dd></div>\n                </dl>\n                <Button type=\"button\" variant=\"secondary\" className={styles.wide} onClick={reset}>Start over</Button>\n              </motion.div>\n            )}\n          </AnimatePresence>\n        </div>\n      </motion.div>\n\n      <footer className={styles.footer}>\n        <p className={styles.srOnly} role=\"status\" aria-live=\"polite\">{status}</p>\n        <span className={styles.status} aria-hidden=\"true\"><AnimatePresence mode=\"popLayout\" initial={false}><motion.span key={status} {...swap(reduce)}>{status}</motion.span></AnimatePresence></span>\n        <span className={styles.switch}>Have an account? <button type=\"button\" className={styles.textButton} onClick={() => setStatus(\"Sign in opens in your app\")}>Sign in</button></span>\n      </footer>\n    </section>\n  );\n}\n\nexport default SignupForm;\n"},{"path":"registry/blocks/signup-form/signup-form.module.css","type":"registry:component","target":"@components/arc/blocks/signup-form/signup-form.module.css","content":"/* Same card, spacing, and control heights as the sign in variants, so the family reads as one flow. */\n.block { container: signup / inline-size; width: min(100%, 432px); min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-surface); background: var(--surface); color: var(--foreground); font-family: var(--font-body); letter-spacing: var(--tracking-body); }\n.viewport { overflow: hidden; }\n.track { position: relative; }\n.step { display: grid; min-width: 0; padding: var(--space-8); }\n\n.heading { display: grid; gap: var(--space-2); margin-bottom: var(--space-6); }\n.heading h2 { margin: 0; font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 400; letter-spacing: var(--tracking-display); line-height: var(--leading-display); text-wrap: balance; outline: none; }\n.heading p { margin: 0; color: var(--text-secondary); font-size: var(--text-sm); line-height: var(--leading-body); text-wrap: pretty; }\n.address { color: var(--foreground); overflow-wrap: anywhere; }\n\n.sso { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }\n.sso .ssoButton { min-width: 0; padding-inline: var(--space-2); }\n.providerMark { flex: none; }\n.divider { display: flex; align-items: center; gap: var(--space-3); margin: var(--space-5) 0; color: var(--text-muted); font-size: var(--text-xs); line-height: 1; }\n.divider::before, .divider::after { flex: 1; height: 1px; background: var(--border); content: \"\"; }\n\n.form { display: grid; gap: var(--space-4); }\n.wide { width: 100%; }\n.passwordGroup { display: grid; min-width: 0; }\n/* One stable row under the password: the words change in place and the meter fills beside them. */\n.feedback { display: flex; min-height: 18px; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-2); font-size: var(--text-xs); line-height: var(--leading-body); }\n.feedbackText { position: relative; min-width: 0; flex: 1; color: var(--text-muted); }\n.feedbackText > span { display: block; }\n.feedbackText[data-error] { color: var(--danger); }\n.meter { display: flex; flex: none; gap: 3px; }\n.meter span { width: 20px; height: 3px; border-radius: var(--radius-pill); background: var(--border); transition: background-color var(--duration-fast) var(--ease-standard); }\n.meter span[data-on] { background: var(--accent); }\n.meter[data-level=\"1\"] span[data-on] { background: var(--danger); }\n.meter[data-level=\"2\"] span[data-on] { background: var(--warning); }\n.meter[data-level=\"4\"] span[data-on] { background: var(--success); }\n\n/* The checkbox keeps a full size hit area; pull it out so the square lines up with the fields. */\n.updates { margin: calc(var(--space-2) * -1) 0 calc(var(--space-2) * -1) calc((var(--control-height-md) - 18px) / -2); }\n.row { overflow: hidden; }\n.submitError { margin: 0; color: var(--danger); font-size: var(--text-xs); line-height: var(--leading-body); }\n.legal { margin: var(--space-4) 0 0; color: var(--text-muted); font-size: var(--text-xs); line-height: var(--leading-body); text-wrap: pretty; }\n.textButton { border: 0; padding: 0; background: none; color: var(--text-secondary); font: inherit; text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; cursor: pointer; transition: color var(--duration-fast) var(--ease-standard), text-decoration-color var(--duration-fast) var(--ease-standard); }\n\n.success { display: block; width: 48px; height: 48px; margin-bottom: var(--space-6); overflow: visible; color: var(--success); }\n.details { display: grid; margin: 0 0 var(--space-6); border-top: 1px solid var(--border); padding: 0; }\n.details div { display: flex; justify-content: space-between; gap: var(--space-4); border-bottom: 1px solid var(--border); padding: var(--space-3) 0; font-size: var(--text-sm); line-height: var(--leading-body); }\n.details dt { color: var(--text-secondary); }\n.details dd { margin: 0; text-align: right; }\n\n.footer { display: flex; min-height: 48px; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-1) var(--space-4); border-top: 1px solid var(--border); padding: var(--space-3) var(--space-8); color: var(--text-muted); font-size: var(--text-xs); line-height: var(--leading-body); }\n.status { position: relative; display: block; min-width: 0; flex: 1 1 12rem; }\n.status > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.switch { color: var(--text-secondary); white-space: nowrap; }\n.switch .textButton { color: var(--foreground); font-weight: 500; text-decoration-color: transparent; }\n.srOnly { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }\n\n@media (hover: hover) and (pointer: fine) {\n  .textButton:hover { color: var(--foreground); text-decoration-color: currentColor; }\n}\n@container signup (max-width: 380px) {\n  .step { padding: var(--space-6) var(--space-5); }\n  .heading h2 { font-size: var(--text-2xl); }\n  .sso .ssoButton { gap: 6px; font-size: var(--text-xs); }\n  .footer { padding-inline: var(--space-5); }\n  .meter span { width: 14px; }\n}\n@media (max-width: 480px) { .block { border-radius: var(--radius-panel); } }\n@media (prefers-reduced-motion: reduce) { .meter span, .textButton { transition: none; } }\n"}],"docs":"Use this as the client side of an account flow. Supply an onSubmit handler that creates the account and handles server errors.","meta":{"tier":"free","kind":"block","builtFrom":["Input","Password field","Checkbox","Button"],"docs":"https://uiarc.dev/components/blocks/signup-form"}}