{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "auth4",
  "title": "Forgot Password Request",
  "description": "Full-height password recovery screen with a centered icon, single email field built on the shadcn Field primitives, a send-reset-link button, and a back-to-sign-in link. Perfect for the first step of any password reset flow.",
  "dependencies": [
    "clsx",
    "tailwind-merge",
    "lucide-react"
  ],
  "registryDependencies": [
    "button",
    "input",
    "field"
  ],
  "files": [
    {
      "path": "registry/auth4/auth4.tsx",
      "content": "\"use client\";\n\nimport { ArrowLeft, KeyRound } from \"lucide-react\";\nimport Link from \"next/link\";\nimport { useId } from \"react\";\nimport { Button } from \"@/components/ui/button\";\nimport { Field, FieldGroup, FieldLabel } from \"@/components/ui/field\";\nimport { Input } from \"@/components/ui/input\";\nimport { cn } from \"@/lib/utils\";\n\ninterface Auth4Props {\n  icon?: React.ReactNode;\n  heading?: string;\n  description?: string;\n  backLink?: {\n    label: string;\n    href: string;\n  };\n  labels?: {\n    email?: string;\n    emailPlaceholder?: string;\n    submit?: string;\n  };\n  className?: string;\n}\n\nexport const auth4Demo: Auth4Props = {\n  icon: <KeyRound className=\"size-6\" />,\n  heading: \"Forgot your password?\",\n  description:\n    \"Enter the email linked to your account and we'll send you a link to reset your password.\",\n  backLink: {\n    label: \"Back to sign in\",\n    href: \"https://beste.co\",\n  },\n  labels: {\n    email: \"Email\",\n    emailPlaceholder: \"you@example.com\",\n    submit: \"Send reset link\",\n  },\n};\n\nexport function Auth4({\n  icon,\n  heading,\n  description,\n  backLink,\n  labels = {},\n  className,\n}: Auth4Props) {\n  const fieldId = useId();\n\n  const { email: emailLabel, emailPlaceholder, submit: submitLabel } = labels;\n\n  return (\n    <section\n      className={cn(\n        \"flex min-h-screen items-center justify-center px-4 py-16 md:py-24 w-full\",\n        className\n      )}\n    >\n      <div className=\"w-full max-w-md\">\n        <div className=\"mb-8 flex flex-col items-center text-center\">\n          {icon && (\n            <div className=\"mb-6 flex size-14 items-center justify-center rounded-full bg-muted text-muted-foreground\">\n              {icon}\n            </div>\n          )}\n          {heading && (\n            <h1 className=\"text-2xl font-bold md:text-3xl\">{heading}</h1>\n          )}\n          {description && (\n            <p className=\"mt-2 text-base text-muted-foreground\">{description}</p>\n          )}\n        </div>\n\n        <div className=\"rounded-md border bg-card p-6 md:p-8\">\n          <form onSubmit={(e) => e.preventDefault()}>\n            <FieldGroup>\n              <Field>\n                {emailLabel && (\n                  <FieldLabel htmlFor={`${fieldId}-email`}>\n                    {emailLabel}\n                  </FieldLabel>\n                )}\n                <Input\n                  id={`${fieldId}-email`}\n                  type=\"email\"\n                  placeholder={emailPlaceholder}\n                  className=\"h-11\"\n                />\n              </Field>\n\n              {submitLabel && (\n                <Field>\n                  <Button type=\"submit\" size=\"lg\">\n                    {submitLabel}\n                  </Button>\n                </Field>\n              )}\n            </FieldGroup>\n          </form>\n        </div>\n\n        {backLink && (\n          <div className=\"mt-6 flex justify-center\">\n            <Link\n              href={backLink.href}\n              className=\"inline-flex items-center gap-2 text-sm font-medium text-muted-foreground hover:text-foreground\"\n            >\n              <ArrowLeft className=\"size-4\" />\n              {backLink.label}\n            </Link>\n          </div>\n        )}\n      </div>\n    </section>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/beste/block/auth4.tsx"
    }
  ],
  "type": "registry:block"
}