{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "forms-08",
  "type": "registry:block",
  "description": "Split trial sign-up with testimonial panel and live password strength meter.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "button",
    "input",
    "label"
  ],
  "files": [
    {
      "path": "registry/designali/blocks/forms/forms-08.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport {\n  Check,\n  X,\n} from \"@designali/icons\"\n\nimport { Button } from \"@workspace/ui/components/button\"\nimport { Input } from \"@workspace/ui/components/input\"\nimport { Label } from \"@workspace/ui/components/label\"\nimport { cn } from \"@workspace/ui/lib/utils\"\n\nconst rules = [\n  { label: \"At least 12 characters\", test: (v: string) => v.length >= 12 },\n  { label: \"One uppercase letter\", test: (v: string) => /[A-Z]/.test(v) },\n  { label: \"One number\", test: (v: string) => /\\d/.test(v) },\n  { label: \"One symbol\", test: (v: string) => /[^A-Za-z0-9]/.test(v) },\n]\n\nconst strengthLabels = [\"Too weak\", \"Weak\", \"Fair\", \"Good\", \"Strong\"]\n\nexport default function Forms08() {\n  const [password, setPassword] = useState(\"Designali2026\")\n  const passed = rules.filter((rule) => rule.test(password)).length\n\n  return (\n    <section className=\"w-full bg-background\">\n      <div className=\"mx-auto grid max-w-7xl lg:grid-cols-[1fr_1.1fr]\">\n        <div className=\"relative flex flex-col justify-between gap-16 overflow-hidden bg-muted p-8 md:p-12\">\n          <div\n            className=\"absolute -top-24 -right-24 size-80 rounded-full bg-gradient-to-br from-chart-1/60 to-primary/40 blur-3xl dark:from-primary/30 dark:to-chart-2/20\"\n            aria-hidden\n          />\n          <p className=\"relative text-sm font-semibold\">designali</p>\n          <figure className=\"relative\">\n            <blockquote className=\"text-2xl leading-snug font-medium tracking-tight md:text-3xl\">\n              &ldquo;Where thoughtful design meets production-ready code. I\n              design and build digital experiences that look great, feel\n              intuitive, and work beautifully.&rdquo;\n            </blockquote>\n            <figcaption className=\"mt-8 flex items-center gap-3\">\n              <span className=\"flex size-10 items-center justify-center bg-foreground text-xs font-medium text-background\">\n                AI\n              </span>\n              <span className=\"text-sm\">\n                <span className=\"block font-medium\">Ali Imam</span>\n                <span className=\"text-muted-foreground\">Founder, Designali</span>\n              </span>\n            </figcaption>\n          </figure>\n        </div>\n\n        <form className=\"space-y-6 p-8 md:p-12\">\n          <div>\n            <h2 className=\"text-3xl font-semibold tracking-tight\">Create your Designali account</h2>\n            <p className=\"mt-2 text-sm text-muted-foreground\">Get access to free blocks, templates and icons.</p>\n          </div>\n          <div className=\"grid gap-5 sm:grid-cols-2\">\n            <div className=\"space-y-2\">\n              <Label htmlFor=\"f8-first\">First name</Label>\n              <Input id=\"f8-first\" placeholder=\"First name\" className=\"h-10\" />\n            </div>\n            <div className=\"space-y-2\">\n              <Label htmlFor=\"f8-last\">Last name</Label>\n              <Input id=\"f8-last\" placeholder=\"Last name\" className=\"h-10\" />\n            </div>\n          </div>\n          <div className=\"space-y-2\">\n            <Label htmlFor=\"f8-email\">Work email</Label>\n            <Input id=\"f8-email\" type=\"email\" placeholder=\"you@example.com\" className=\"h-10\" />\n          </div>\n          <div className=\"space-y-2\">\n            <Label htmlFor=\"f8-password\">Password</Label>\n            <Input\n              id=\"f8-password\"\n              type=\"password\"\n              value={password}\n              onChange={(event) => setPassword(event.target.value)}\n              className=\"h-10\"\n            />\n            <div className=\"flex gap-1 pt-1\" aria-hidden>\n              {Array.from({ length: 4 }, (_, index) => (\n                <span\n                  key={index}\n                  className={cn(\n                    \"h-1 flex-1 bg-muted transition-colors\",\n                    index < passed &&\n                      (passed <= 1\n                        ? \"bg-destructive\"\n                        : passed <= 2\n                          ? \"bg-primary\"\n                          : passed <= 3\n                            ? \"bg-primary\"\n                            : \"bg-primary\")\n                  )}\n                />\n              ))}\n            </div>\n            <p className=\"text-xs text-muted-foreground\" aria-live=\"polite\">\n              Strength: <span className=\"text-foreground\">{strengthLabels[passed]}</span>\n            </p>\n            <ul className=\"grid gap-1.5 pt-2 sm:grid-cols-2\">\n              {rules.map((rule) => {\n                const ok = rule.test(password)\n                return (\n                  <li\n                    key={rule.label}\n                    className={cn(\n                      \"flex items-center gap-2 text-xs\",\n                      ok ? \"text-foreground\" : \"text-muted-foreground\"\n                    )}\n                  >\n                    {ok ? (\n                      <Check className=\"size-3.5 text-primary dark:text-primary\" />\n                    ) : (\n                      <X className=\"size-3.5\" />\n                    )}\n                    {rule.label}\n                  </li>\n                )\n              })}\n            </ul>\n          </div>\n          <Button type=\"submit\" size=\"lg\" className=\"w-full\" disabled={passed < 4}>\n            Create account\n          </Button>\n          <p className=\"text-center text-xs text-muted-foreground\">\n            Already have an account?{\" \"}\n            <a href=\"#\" className=\"text-foreground underline underline-offset-4\">\n              Sign in\n            </a>\n          </p>\n        </form>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "750px"
  },
  "categories": [
    "forms"
  ]
}