{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "auth-8",
  "description": "A minimalist, floating login form variant.",
  "registryDependencies": [
    "button",
    "input",
    "label"
  ],
  "files": [
    {
      "path": "registry/blocks/auth/8/minimal-login-form.tsx",
      "content": "\"use client\";\n\nimport { EyeIcon } from \"lucide-react\";\nimport { LogoIcon } from \"@/components/logo\";\nimport { Button } from \"@/components/ui/button\";\nimport { Input } from \"@/components/ui/input\";\nimport { Label } from \"@/components/ui/label\";\n\nexport function MinimalLoginForm() {\n  return (\n    <div className=\"group w-full max-w-sm bg-transparent p-4\">\n      <div className=\"mb-8 flex flex-col gap-2\">\n        <LogoIcon className=\"mb-2 size-8\" />\n        <h2 className=\"font-bold text-3xl tracking-tighter\">Sign In</h2>\n        <p className=\"text-muted-foreground text-sm\">\n          Enter your credentials to access your account\n        </p>\n      </div>\n\n      <form className=\"space-y-5\" onSubmit={(e) => e.preventDefault()}>\n        <div className=\"grid gap-4\">\n          <div className=\"grid gap-1.5 text-start\">\n            <Label\n              className=\"font-bold text-[11px] text-muted-foreground/70 uppercase tracking-widest\"\n              htmlFor=\"email-minimal\"\n            >\n              Identifier\n            </Label>\n            <Input\n              className=\"h-12 rounded-xl border-white/10 bg-white/5 transition-all focus:bg-white/10\"\n              id=\"email-minimal\"\n              placeholder=\"Username or Email\"\n              type=\"text\"\n            />\n          </div>\n          <div className=\"grid gap-1.5 text-start\">\n            <div className=\"flex items-center justify-between\">\n              <Label\n                className=\"font-bold text-[11px] text-muted-foreground/70 uppercase tracking-widest\"\n                htmlFor=\"password-minimal\"\n              >\n                Security\n              </Label>\n              <a\n                className=\"text-[10px] text-primary/60 transition-colors hover:text-primary\"\n                href=\"#\"\n              >\n                Forgot?\n              </a>\n            </div>\n            <div className=\"relative\">\n              <Input\n                className=\"h-12 rounded-xl border-white/10 bg-white/5 pr-12 transition-all focus:bg-white/10\"\n                id=\"password-minimal\"\n                placeholder=\"Password\"\n                type=\"password\"\n              />\n              <button\n                className=\"-translate-y-1/2 absolute top-1/2 right-4 text-muted-foreground/40 transition-colors hover:text-foreground\"\n                title=\"Toggle visibility\"\n                type=\"button\"\n              >\n                <EyeIcon className=\"size-4\" />\n              </button>\n            </div>\n          </div>\n        </div>\n\n        <Button\n          className=\"h-12 w-full rounded-xl bg-primary font-bold text-base text-primary-foreground shadow-xl transition-all hover:opacity-90 active:scale-[0.98]\"\n          type=\"submit\"\n        >\n          Continue\n        </Button>\n\n        <div className=\"mt-8 flex flex-col items-center gap-4 border-white/5 border-t pt-8\">\n          <p className=\"text-muted-foreground text-xs\">\n            New here?{\" \"}\n            <a className=\"font-bold text-white hover:underline\" href=\"#\">\n              Create an account\n            </a>\n          </p>\n        </div>\n      </form>\n    </div>\n  );\n}\n",
      "type": "registry:component"
    },
    {
      "path": "components/logo.tsx",
      "content": "\"use client\";\n\nimport Image from \"next/image\";\nimport { useTheme } from \"next-themes\";\nimport { useEffect, useState } from \"react\";\nimport { cn } from \"@/lib/utils\";\n\ntype LogoProps = {\n  className?: string;\n};\n\nexport const LogoIcon = ({ className }: LogoProps) => {\n  const { theme, systemTheme } = useTheme();\n  const [mounted, setMounted] = useState(false);\n\n  useEffect(() => {\n    setMounted(true);\n  }, []);\n\n  if (!mounted) {\n    return (\n      <span\n        className={cn(\n          \"inline-block size-6 animate-pulse rounded-full bg-muted\",\n          className\n        )}\n      />\n    );\n  }\n\n  const currentTheme = theme === \"system\" ? systemTheme : theme;\n  const src =\n    currentTheme === \"dark\"\n      ? \"/logo/freddy-logo-icon-light.png\"\n      : \"/logo/freddy-logo-icon-dark.png\";\n\n  return (\n    <Image\n      alt=\"Freddy UI\"\n      className={cn(\"size-6 object-contain\", className)}\n      height={250}\n      priority\n      src={src}\n      width={250}\n    />\n  );\n};\n\nexport const Logo = ({ className }: LogoProps) => {\n  const { theme, systemTheme } = useTheme();\n  const [mounted, setMounted] = useState(false);\n\n  useEffect(() => {\n    setMounted(true);\n  }, []);\n\n  if (!mounted) {\n    return (\n      <span\n        className={cn(\n          \"inline-block h-6 w-24 animate-pulse rounded bg-muted\",\n          className\n        )}\n      />\n    );\n  }\n\n  const currentTheme = theme === \"system\" ? systemTheme : theme;\n  const src =\n    currentTheme === \"dark\"\n      ? \"/logo/freddy-logo-light.png\"\n      : \"/logo/freddy-logo-dark.png\";\n\n  return (\n    <Image\n      alt=\"Freddy UI\"\n      className={cn(\"h-6 w-auto object-contain\", className)}\n      height={106}\n      priority\n      src={src}\n      width={344}\n    />\n  );\n};\n",
      "type": "registry:component"
    }
  ],
  "categories": [
    "auth"
  ],
  "type": "registry:block"
}