{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "authentication-10",
  "type": "registry:block",
  "description": "Account recovery page with a radio list of reset methods beside a help and back to sign in panel.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "button"
  ],
  "files": [
    {
      "path": "registry/designali/blocks/authentication/authentication-10.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport {\n  ArrowRight,\n  KeySquare,\n  LifeBuoy,\n  Mail,\n  MessageSquareText,\n} from \"@designali/icons\"\n\nimport { Button } from \"@workspace/ui/components/button\"\nimport { cn } from \"@workspace/ui/lib/utils\"\n\nconst methods = [\n  {\n    id: \"email\",\n    icon: Mail,\n    title: \"Email a reset link\",\n    detail: \"To a*****@designali.com\",\n    eta: \"Usually under a minute\",\n  },\n  {\n    id: \"sms\",\n    icon: MessageSquareText,\n    title: \"Text a code\",\n    detail: \"To the number ending in 4471\",\n    eta: \"Standard rates may apply\",\n  },\n  {\n    id: \"backup\",\n    icon: KeySquare,\n    title: \"Use a backup code\",\n    detail: \"One of the 10 codes you saved during setup\",\n    eta: \"Instant\",\n  },\n  {\n    id: \"admin\",\n    icon: LifeBuoy,\n    title: \"Ask your workspace admin\",\n    detail: \"Designali studio admins can reset your access\",\n    eta: \"Depends on your admin\",\n  },\n]\n\nexport default function Authentication10() {\n  const [method, setMethod] = useState(\"email\")\n  const selected = methods.find((item) => item.id === method)\n\n  return (\n    <section className=\"w-full bg-background py-20 md:py-28\">\n      <div className=\"mx-auto grid max-w-5xl gap-12 px-6 md:grid-cols-[1fr_1.3fr]\">\n        <div className=\"space-y-4\">\n          <p className=\"font-sans text-xs text-muted-foreground\">ACCOUNT RECOVERY</p>\n          <h2 className=\"text-4xl font-semibold tracking-tight\">Let&apos;s get you back in.</h2>\n          <p className=\"text-muted-foreground\">\n            Choose how you want to verify it&apos;s you. We never ask for your password over email or phone.\n          </p>\n          <a href=\"#\" className=\"inline-block text-sm underline underline-offset-4\">Back to sign in</a>\n        </div>\n\n        <div role=\"radiogroup\" aria-label=\"Recovery method\" className=\"space-y-3\">\n          {methods.map((item) => {\n            const active = item.id === method\n            return (\n              <button\n                key={item.id}\n                type=\"button\"\n                role=\"radio\"\n                aria-checked={active}\n                onClick={() => setMethod(item.id)}\n                className={cn(\n                  \"flex w-full items-start gap-4 border p-5 text-start transition-colors\",\n                  active ? \"border-foreground bg-muted/40\" : \"hover:bg-muted/30\"\n                )}\n              >\n                <span\n                  className={cn(\n                    \"mt-0.5 flex size-4 shrink-0 items-center justify-center rounded-full border\",\n                    active && \"border-foreground\"\n                  )}\n                >\n                  {active && <span className=\"size-2 rounded-full bg-foreground\" />}\n                </span>\n                <span className=\"min-w-0 flex-1\">\n                  <span className=\"flex items-center gap-2 font-medium\">\n                    <item.icon className=\"size-4 shrink-0\" />\n                    {item.title}\n                  </span>\n                  <span className=\"mt-1 block text-sm text-muted-foreground\">{item.detail}</span>\n                </span>\n                <span className=\"hidden shrink-0 text-xs text-muted-foreground sm:block\">{item.eta}</span>\n              </button>\n            )\n          })}\n          <Button size=\"lg\" className=\"mt-3 w-full\">\n            {selected?.id === \"admin\" ? \"Send request to admin\" : \"Continue\"}\n            <ArrowRight />\n          </Button>\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "650px"
  },
  "categories": [
    "authentication"
  ]
}