{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "grain-gradient-auth",
  "title": "Grain Gradient Auth",
  "description": "A split sign-in page with a grainy gradient brand panel and a slot for your own form.",
  "dependencies": [
    "@paper-design/shaders-react"
  ],
  "registryDependencies": [
    "button",
    "input",
    "label"
  ],
  "files": [
    {
      "path": "registry/shaders/grain-gradient-auth/grain-gradient-auth.tsx",
      "content": "import {\n  GrainGradient,\n  type GrainGradientProps,\n} from \"@paper-design/shaders-react\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Button, buttonVariants } from \"@/components/ui/button\"\nimport { Input } from \"@/components/ui/input\"\nimport { Label } from \"@/components/ui/label\"\n\ntype GrainGradientAuthProps = React.ComponentProps<\"section\"> & {\n  brand?: string\n  quote?: { text: string; name: string; role: string }\n  title?: string\n  description?: string\n  colors?: string[]\n  colorBack?: string\n  shape?: GrainGradientProps[\"shape\"]\n  speed?: number\n}\n\nfunction GrainGradientAuth({\n  brand = \"Acme\",\n  quote = {\n    text: \"We moved our whole team over in a weekend. It's the first tool in years that nobody complained about.\",\n    name: \"Maya Lindqvist\",\n    role: \"Design Lead, Northwind\",\n  },\n  title = \"Welcome back\",\n  description = \"Sign in to your account to continue.\",\n  colors = [\"#7300ff\", \"#eba8ff\", \"#00bfff\", \"#2b00ff\"],\n  colorBack = \"#000000\",\n  shape = \"corners\",\n  speed = 0.6,\n  className,\n  children,\n  ...props\n}: GrainGradientAuthProps) {\n  return (\n    <section\n      data-slot=\"grain-gradient-auth\"\n      className={cn(\n        \"grid min-h-svh w-full bg-background text-foreground lg:grid-cols-2\",\n        className\n      )}\n      {...props}\n    >\n      <div className=\"dark relative isolate flex min-h-48 flex-col justify-between gap-12 overflow-hidden p-8 text-white lg:p-12\">\n        <GrainGradient\n          aria-hidden\n          className=\"absolute inset-0 -z-10 size-full\"\n          colors={colors}\n          colorBack={colorBack}\n          shape={shape}\n          softness={0.7}\n          intensity={0.2}\n          noise={0.4}\n          speed={speed}\n        />\n        {/* Darkens the bottom so the quote stays readable on bright colors. */}\n        <div\n          aria-hidden\n          className=\"absolute inset-x-0 bottom-0 -z-10 h-2/3 bg-linear-to-t from-black/70 to-transparent\"\n        />\n        <span className=\"font-heading text-lg tracking-tight\">{brand}</span>\n        <figure className=\"hidden max-w-md flex-col gap-4 lg:flex\">\n          <blockquote className=\"font-heading text-2xl leading-snug text-pretty\">\n            “{quote.text}”\n          </blockquote>\n          <figcaption className=\"flex flex-col text-sm\">\n            <span className=\"font-medium\">{quote.name}</span>\n            <span className=\"text-white/60\">{quote.role}</span>\n          </figcaption>\n        </figure>\n      </div>\n      <div className=\"flex items-center justify-center px-6 py-16\">\n        <div className=\"flex w-full max-w-sm flex-col gap-8\">\n          <div className=\"flex flex-col gap-2\">\n            <h1 className=\"font-heading text-3xl tracking-tight\">{title}</h1>\n            <p className=\"text-sm text-muted-foreground\">{description}</p>\n          </div>\n          {children ?? <SignInForm />}\n        </div>\n      </div>\n    </section>\n  )\n}\n\nfunction SignInForm() {\n  return (\n    <div className=\"flex flex-col gap-6\">\n      <div className=\"grid grid-cols-2 gap-3\">\n        <a href=\"#\" className={cn(buttonVariants({ variant: \"outline\" }))}>\n          Google\n        </a>\n        <a href=\"#\" className={cn(buttonVariants({ variant: \"outline\" }))}>\n          GitHub\n        </a>\n      </div>\n      <div className=\"flex items-center gap-3 font-mono text-[10px] tracking-widest text-muted-foreground uppercase\">\n        <span className=\"h-px flex-1 bg-border\" />\n        or\n        <span className=\"h-px flex-1 bg-border\" />\n      </div>\n      <form className=\"flex flex-col gap-4\">\n        <div className=\"flex flex-col gap-2\">\n          <Label htmlFor=\"email\">Email</Label>\n          <Input\n            id=\"email\"\n            name=\"email\"\n            type=\"email\"\n            autoComplete=\"email\"\n            placeholder=\"you@example.com\"\n            required\n          />\n        </div>\n        <div className=\"flex flex-col gap-2\">\n          <div className=\"flex items-center justify-between\">\n            <Label htmlFor=\"password\">Password</Label>\n            <a\n              href=\"#\"\n              className=\"text-xs text-muted-foreground underline-offset-4 hover:text-foreground hover:underline\"\n            >\n              Forgot password?\n            </a>\n          </div>\n          <Input\n            id=\"password\"\n            name=\"password\"\n            type=\"password\"\n            autoComplete=\"current-password\"\n            required\n          />\n        </div>\n        <Button type=\"submit\" size=\"lg\" className=\"w-full\">\n          Sign in\n        </Button>\n      </form>\n      <p className=\"text-center text-xs text-muted-foreground\">\n        Don&apos;t have an account?{\" \"}\n        <a\n          href=\"#\"\n          className=\"text-foreground underline-offset-4 hover:underline\"\n        >\n          Sign up\n        </a>\n      </p>\n    </div>\n  )\n}\n\nexport { GrainGradientAuth }\n",
      "type": "registry:component"
    }
  ],
  "categories": [
    "sections",
    "auth"
  ],
  "type": "registry:block"
}