{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "authentication-11",
  "type": "registry:block",
  "description": "Centred auth card with a sliding Sign in / Sign up tab switch, name and password fields and terms.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "button",
    "checkbox",
    "input",
    "label"
  ],
  "files": [
    {
      "path": "registry/designali/blocks/authentication/authentication-11.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport {\n  ArrowRight,\n} from \"@designali/icons\"\n\nimport { Button } from \"@workspace/ui/components/button\"\nimport { Checkbox } from \"@workspace/ui/components/checkbox\"\nimport { Input } from \"@workspace/ui/components/input\"\nimport { Label } from \"@workspace/ui/components/label\"\nimport { cn } from \"@workspace/ui/lib/utils\"\n\ntype Mode = \"signin\" | \"signup\"\n\nexport default function Authentication11() {\n  const [mode, setMode] = useState<Mode>(\"signin\")\n\n  return (\n    <section className=\"flex min-h-[720px] w-full items-center justify-center bg-background px-6 py-16\">\n      <div className=\"w-full max-w-sm\">\n        <div className=\"mb-8 flex items-center justify-center gap-2 text-lg font-semibold\">\n          <span className=\"size-6 rounded-full border-[6px] border-foreground\" />\n          designali\n        </div>\n\n        <div role=\"tablist\" className=\"relative grid grid-cols-2 border p-1\">\n          <span\n            aria-hidden\n            className={cn(\n              \"absolute inset-y-1 w-[calc(50%-4px)] bg-foreground transition-transform duration-300\",\n              mode === \"signin\" ? \"translate-x-0\" : \"translate-x-full\"\n            )}\n            style={{ left: 4 }}\n          />\n          {([\"signin\", \"signup\"] as const).map((value) => (\n            <button\n              key={value}\n              type=\"button\"\n              role=\"tab\"\n              aria-selected={mode === value}\n              onClick={() => setMode(value)}\n              className={cn(\n                \"relative h-9 text-sm font-medium transition-colors\",\n                mode === value ? \"text-background\" : \"text-muted-foreground hover:text-foreground\"\n              )}\n            >\n              {value === \"signin\" ? \"Sign in\" : \"Create account\"}\n            </button>\n          ))}\n        </div>\n\n        <form className=\"mt-8 space-y-4\" onSubmit={(event) => event.preventDefault()}>\n          {mode === \"signup\" && (\n            <div className=\"grid grid-cols-2 gap-3\">\n              <div className=\"space-y-2\">\n                <Label htmlFor=\"auth-11-first\">First name</Label>\n                <Input id=\"auth-11-first\" placeholder=\"Ali\" className=\"h-10\" />\n              </div>\n              <div className=\"space-y-2\">\n                <Label htmlFor=\"auth-11-last\">Last name</Label>\n                <Input id=\"auth-11-last\" placeholder=\"Imam\" className=\"h-10\" />\n              </div>\n            </div>\n          )}\n          <div className=\"space-y-2\">\n            <Label htmlFor=\"auth-11-email\">Email</Label>\n            <Input id=\"auth-11-email\" type=\"email\" placeholder=\"you@designali.com\" className=\"h-10\" />\n          </div>\n          <div className=\"space-y-2\">\n            <div className=\"flex items-center justify-between\">\n              <Label htmlFor=\"auth-11-password\">Password</Label>\n              {mode === \"signin\" && (\n                <a href=\"#\" className=\"text-xs text-muted-foreground hover:text-foreground\">Forgot password?</a>\n              )}\n            </div>\n            <Input\n              id=\"auth-11-password\"\n              type=\"password\"\n              placeholder={mode === \"signup\" ? \"10+ characters\" : \"\"}\n              className=\"h-10\"\n            />\n          </div>\n          {mode === \"signup\" && (\n            <Label className=\"items-start text-sm leading-snug font-normal text-muted-foreground\">\n              <Checkbox className=\"mt-0.5\" />\n              Send me new Designali blocks, icons and templates, roughly once a month.\n            </Label>\n          )}\n          <Button type=\"submit\" size=\"lg\" className=\"w-full\">\n            {mode === \"signin\" ? \"Sign in\" : \"Create free account\"}\n            <ArrowRight />\n          </Button>\n        </form>\n\n        <p className=\"mt-6 text-center text-xs text-muted-foreground\">\n          {mode === \"signin\" ? (\n            <>Protected by device checks. <a href=\"#\" className=\"underline underline-offset-4\">Learn more</a></>\n          ) : (\n            <>By signing up you agree to our <a href=\"https://www.designali.com/docs/legal/terms\" className=\"underline underline-offset-4\">Terms</a> and <a href=\"#\" className=\"underline underline-offset-4\">Privacy Policy</a>.</>\n          )}\n        </p>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "750px"
  },
  "categories": [
    "authentication"
  ]
}