{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "login-form",
  "title": "Login Form",
  "author": "AlgorizeTech",
  "description": "Ask the user to pick one of 13 auth forms variants: https://avaraui.com/view/auth-forms. This item holds 6 of them as looks of one component (login-default, login-split, login-minimal, login-glass, login-liquid-glass, login-ribbon-drift). Skip the question if the user already named one. A sign-in form with social buttons, password reveal, remember-me and multiple layout variants including ribbon-drift and liquid-glass. Use it as the entry point of an authenticated app.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "https://avaraui.com/r/button.json",
    "https://avaraui.com/r/icons.json",
    "https://avaraui.com/r/input.json",
    "https://avaraui.com/r/ribbon-drift.json",
    "https://avaraui.com/r/ui-liquid-glass.json",
    "utils"
  ],
  "files": [
    {
      "path": "src/components/custom/blocks/LoginForm.tsx",
      "content": "\"use client\";\n\nimport { cn } from \"@/lib/utils\";\nimport { ArrowLeft, Check } from \"lucide-react\";\nimport Button from \"./Button\";\nimport { GitHubIcon, GoogleIcon } from \"./Icons\";\nimport { InputBlock } from \"./InputBlock\";\nimport { useState } from \"react\";\nimport { getThemeStyles } from \"./login-form-theme\";\nimport { RibbonDriftBlock } from \"./RibbonDriftBlock\";\n\n// ==========================================\n// DYNAMIC THEME ENGINE\n// ==========================================\nexport type LoginColor =\n  | \"primary\"\n  | \"lavender\"\n  | \"indigo\"\n  | \"rose\"\n  | \"emerald\"\n  | \"zinc\"\n  | (string & {});\nexport type LoginVariant =\n  | \"default\"\n  | \"split\"\n  | \"glass\"\n  | \"minimal\"\n  | \"scenic\"\n  | \"nature\"\n  | \"landscape\"\n  | \"liquid-glass\"\n  | \"ribbon-drift\";\nexport type LoginProvider = \"github\" | \"google\";\n\nimport {\n  LiquidGlassBackground,\n  LiquidGlassSvgFilter,\n  formatRadius,\n} from \"@/components/custom/ui/liquid-glass\";\nexport { LiquidGlassSvgFilter };\n\nexport type LoginFormValues = {\n  email: string;\n  password: string;\n  remember: boolean;\n};\n\nexport interface LoginFormProps {\n  variant?: LoginVariant;\n  color?: LoginColor;\n  /** Where \"Sign up\" sends someone who does not have an account yet. */\n  signupHref?: string;\n  forgotPasswordHref?: string;\n  /**\n   * Called with the validated credentials. Without it the form simulates a\n   * round trip so the block stays demonstrable on its own — wire this up to\n   * your auth provider before shipping.\n   */\n  onSubmit?: (values: LoginFormValues) => void | Promise<void>;\n  onSocialSignIn?: (provider: LoginProvider) => void;\n  /** Brand display name shown on scenic variant */\n  brandName?: string;\n  /** Custom logo icon */\n  brandIcon?: React.ReactNode;\n  /** Primary headline for the scenic card */\n  title?: string;\n  /** Subtitle / description for the scenic card */\n  subtitle?: string;\n  /** Label for primary get started / sign in button */\n  loginLabel?: string;\n  /** Label for secondary create account button */\n  createAccountLabel?: string;\n  /** Scenic background image URL (e.g. Cloudinary) */\n  bgImage?: string;\n  /** Primary headline override (used in ribbon-drift & scenic) */\n  heading?: string;\n  /** Subtitle / lead text override */\n  lead?: string;\n  /** Hero illustration image URL for ribbon-drift variant */\n  image?: string;\n  /** Bottom promo card data for ribbon-drift variant */\n  promo?: {\n    title?: string;\n    body?: string;\n    href?: string;\n    avatars?: (string | { src: string; alt?: string; name?: string; designation?: string })[];\n  };\n  /** Top marquee ribbon items for ribbon-drift variant */\n  ribbonsTop?: string[];\n  /** Bottom marquee ribbon items for ribbon-drift variant */\n  ribbonsBottom?: string[];\n  /** Direct callback for Google sign-in */\n  onGoogle?: () => void;\n  /** Initial step for scenic mode (\"welcome\" or \"form\") */\n  initialStep?: \"welcome\" | \"form\";\n  /** Optional dynamic corner rounding radius value or Tailwind class */\n  rounded?: string | number;\n  className?: string;\n  style?: React.CSSProperties;\n}\n\n// --- INLINE UI COMPONENTS ---\n// Text fields and buttons come from the library (InputBlock, Button); the\n// checkbox is the one control it does not have yet, so it stays inline.\ninterface FieldCheckboxProps\n  extends Omit<React.InputHTMLAttributes<HTMLInputElement>, \"onChange\"> {\n  label?: React.ReactNode;\n  error?: string;\n  onCheckedChange: (checked: boolean) => void;\n  /** A row out of the block’s colour table. */\n  theme: Record<string, string>;\n  isLiquidGlass?: boolean;\n}\n\nconst Checkbox = ({\n  label,\n  id,\n  error,\n  checked,\n  onCheckedChange,\n  className,\n  theme,\n  isLiquidGlass,\n  ...props\n}: FieldCheckboxProps) => (\n  <div className=\"flex flex-col gap-1\">\n    <div className=\"flex items-start gap-2.5\">\n      <div className=\"relative flex items-center\">\n        <input\n          type=\"checkbox\"\n          id={id}\n          checked={checked}\n          onChange={(e) => onCheckedChange(e.target.checked)}\n          className={cn(\n            \"peer h-4 w-4 shrink-0 rounded border-2 appearance-none cursor-pointer transition-colors outline-none\",\n            // --border is tuned for wide input outlines; on a 16px box it all but\n            // disappears, so the unchecked edge uses the stronger muted ink.\n            error\n              ? \"border-red-500\"\n              : !checked &&\n                  (isLiquidGlass\n                    ? \"border-white/50 hover:border-white/80 bg-white/10\"\n                    : \"border-muted-foreground/60 hover:border-muted-foreground\"),\n            checked && !error && (isLiquidGlass ? \"bg-white text-zinc-950 border-white\" : theme.bg),\n            checked && !error && (isLiquidGlass ? \"border-white\" : theme.border),\n            theme.ring,\n            className,\n          )}\n          {...props}\n        />\n        <Check\n          size={12}\n          strokeWidth={3}\n          className={cn(\n            \"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 pointer-events-none opacity-0 peer-checked:opacity-100 transition-opacity\",\n            isLiquidGlass ? \"text-zinc-950\" : theme.panelFg,\n          )}\n        />\n      </div>\n      <label\n        htmlFor={id}\n        className={cn(\n          \"text-sm font-medium cursor-pointer leading-tight select-none\",\n          isLiquidGlass ? \"text-white/90\" : \"text-muted-foreground\"\n        )}\n      >\n        {label} {props.required && <span className=\"text-red-500\">*</span>}\n      </label>\n    </div>\n    {error && (\n      <p className=\"text-[11px] text-red-500 font-semibold ml-6\">{error}</p>\n    )}\n  </div>\n);\n\n// --- BRAND ICON ---\nexport const DocsUiIcon = ({\n  className = \"w-5 h-5\",\n  size = 20,\n}: {\n  className?: string;\n  size?: number;\n}) => (\n  <svg\n    width={size}\n    height={size}\n    viewBox=\"0 0 24 24\"\n    fill=\"none\"\n    xmlns=\"http://www.w3.org/2000/svg\"\n    className={className}\n  >\n    <rect\n      x=\"3\"\n      y=\"3\"\n      width=\"7\"\n      height=\"7\"\n      rx=\"1.5\"\n      className=\"fill-foreground dark:fill-white\"\n    />\n    <rect\n      x=\"14\"\n      y=\"3\"\n      width=\"7\"\n      height=\"7\"\n      rx=\"1.5\"\n      className=\"fill-primary\"\n    />\n    <rect\n      x=\"14\"\n      y=\"14\"\n      width=\"7\"\n      height=\"7\"\n      rx=\"1.5\"\n      className=\"fill-foreground dark:fill-white\"\n    />\n    <rect\n      x=\"3\"\n      y=\"14\"\n      width=\"7\"\n      height=\"7\"\n      rx=\"1.5\"\n      className=\"fill-primary\"\n    />\n  </svg>\n);\n\n\n// --- MAIN COMPONENT ---\nexport default function LoginForm({\n  variant = \"default\",\n  color = \"primary\",\n  signupHref = \"#\",\n  forgotPasswordHref = \"#\",\n  onSubmit,\n  onSocialSignIn,\n  brandName = \"Docs UI\",\n  brandIcon,\n  title = \"Take control of your financial wellbeing\",\n  subtitle = \"Understand your money, build healthier habits, and make confident financial decisions\",\n  loginLabel = \"Sign In\",\n  createAccountLabel = \"Create an account\",\n  bgImage = \"https://res.cloudinary.com/dodndg7ai/image/upload/f_webp,q_auto,w_1600,c_limit/v1790145140/photo-1426604966848-d7adac402bff-1790145143490.jpg\",\n  initialStep = \"welcome\",\n  rounded,\n  heading,\n  lead,\n  image,\n  promo,\n  ribbonsTop,\n  ribbonsBottom,\n  onGoogle,\n  className,\n  style: customStyle,\n}: LoginFormProps) {\n  const { theme, style: themeStyle } = getThemeStyles(color);\n  const focusButtonClasses = cn(\n    \"outline-none transition-all duration-200 focus-visible:outline-none\",\n    theme.focusBorder,\n    theme.focusRing\n  );\n  const scenicPrimaryButtonClasses = cn(\n    \"w-full\",\n    theme.bg,\n    theme.panelFg,\n    focusButtonClasses\n  );\n  const [scenicStep, setScenicStep] = useState<\"welcome\" | \"form\">(initialStep);\n\n  const [formData, setFormData] = useState<LoginFormValues>({\n    email: \"\",\n    password: \"\",\n    remember: false,\n  });\n  const [errors, setErrors] = useState<Record<string, string>>({});\n  const [loading, setLoading] = useState(false);\n\n  const handleChange = (name: keyof LoginFormValues, value: string | boolean) => {\n    setFormData((prev) => ({ ...prev, [name]: value }));\n    if (errors[name]) setErrors((prev) => ({ ...prev, [name]: \"\" }));\n  };\n\n  const validateForm = () => {\n    const newErrors: Record<string, string> = {};\n    if (!formData.email) newErrors.email = \"Email is required\";\n    else if (!/^\\S+@\\S+\\.\\S+$/.test(formData.email))\n      newErrors.email = \"Invalid email format\";\n    // No length rule on sign-in: an existing password that predates your current\n    // policy must still be able to reach the server and be told it is wrong.\n    if (!formData.password) newErrors.password = \"Password is required\";\n\n    setErrors(newErrors);\n    return Object.keys(newErrors).length === 0;\n  };\n\n  const handleSubmit = async (e: React.FormEvent) => {\n    e.preventDefault();\n    if (!validateForm()) return;\n    setLoading(true);\n    try {\n      if (onSubmit) await onSubmit(formData);\n      else {\n        await new Promise((resolve) => setTimeout(resolve, 1500));\n        alert(\"Logged in successfully!\");\n      }\n    } finally {\n      setLoading(false);\n    }\n  };\n\n  const isLiquidGlass = variant === \"liquid-glass\";\n\n  const FormContent = (\n    <div className=\"w-full max-w-md mx-auto flex flex-col justify-center h-full\">\n      <div className=\"mb-8 text-center sm:text-left\">\n        <h2\n          className={cn(\n            \"text-3xl font-semibold tracking-tight mb-2\",\n            isLiquidGlass ? \"text-white\" : \"text-foreground\",\n          )}\n        >\n          {variant === \"split\" ? \"Sign in\" : (title || \"Welcome back\")}\n        </h2>\n        <p\n          className={cn(\n            \"text-sm font-medium\",\n            isLiquidGlass ? \"text-white/75\" : \"text-muted-foreground\",\n          )}\n        >\n          {variant === \"split\"\n            ? \"Enter your details to access your account.\"\n            : (subtitle || \"Enter your details to access your account.\")}\n        </p>\n      </div>\n\n      <div className=\"grid grid-cols-1 xs:grid-cols-2 gap-2.5 sm:gap-3 mb-5 sm:mb-6\">\n        <Button\n          variant={\n            isLiquidGlass\n              ? \"liquid-glass-social\"\n              : variant === \"glass\"\n                ? \"glass-social\"\n                : \"auth-social\"\n          }\n          type=\"button\"\n          color={color}\n          onClick={() => onSocialSignIn?.(\"github\")}\n          iconLeft={<GitHubIcon size={18} />}\n          className={cn(\"w-full\", isLiquidGlass && \"bg-white/15 hover:bg-white/25\")}\n        >\n          GitHub\n        </Button>\n        <Button\n          variant={\n            isLiquidGlass\n              ? \"liquid-glass-social\"\n              : variant === \"glass\"\n                ? \"glass-social\"\n                : \"auth-social\"\n          }\n          type=\"button\"\n          color={color}\n          onClick={() => onSocialSignIn?.(\"google\")}\n          iconLeft={<GoogleIcon size={18} />}\n          className={cn(\"w-full\", isLiquidGlass && \"bg-white/15 hover:bg-white/25\")}\n        >\n          Google\n        </Button>\n      </div>\n\n      <div className=\"relative flex items-center mb-5 sm:mb-6\">\n        <div\n          className={cn(\n            \"flex-grow border-t\",\n            isLiquidGlass ? \"border-white/20\" : \"border-border\",\n          )}\n        />\n        <span\n          className={cn(\n            \"flex-shrink-0 mx-3 sm:mx-4 text-[10px] sm:text-xs font-semibold uppercase tracking-widest\",\n            isLiquidGlass ? \"text-white/75\" : \"text-muted-foreground\",\n          )}\n        >\n          Or continue with\n        </span>\n        <div\n          className={cn(\n            \"flex-grow border-t\",\n            isLiquidGlass ? \"border-white/20\" : \"border-border\",\n          )}\n        />\n      </div>\n\n      <form onSubmit={handleSubmit} className=\"space-y-3.5 sm:space-y-4\">\n        <InputBlock\n          label=\"Email Address\"\n          id=\"login-email\"\n          name=\"email\"\n          type=\"email\"\n          autoComplete=\"email\"\n          placeholder=\"name@company.com\"\n          value={formData.email}\n          onChange={(e: React.ChangeEvent<HTMLInputElement>) => handleChange(\"email\", e.target.value)}\n          error={errors.email}\n          color={color}\n        />\n        <InputBlock\n          label=\"Password\"\n          id=\"login-password\"\n          name=\"password\"\n          type=\"password\"\n          autoComplete=\"current-password\"\n          placeholder=\"Enter your password\"\n          value={formData.password}\n          onChange={(e: React.ChangeEvent<HTMLInputElement>) => handleChange(\"password\", e.target.value)}\n          error={errors.password}\n          color={color}\n        />\n\n        <div className=\"flex items-center justify-between gap-3 pt-1\">\n          <Checkbox\n            theme={theme}\n            isLiquidGlass={isLiquidGlass}\n            label=\"Remember me\"\n            id=\"login-remember\"\n            checked={formData.remember}\n            onCheckedChange={(c: boolean) => handleChange(\"remember\", c)}\n          />\n          <a\n            href={forgotPasswordHref}\n            onClick={(e) => {\n              if (!forgotPasswordHref || forgotPasswordHref === \"#\") e.preventDefault();\n            }}\n            className={cn(\n              \"text-xs font-semibold hover:underline transition-all shrink-0\",\n              isLiquidGlass ? \"text-white/90 hover:text-white\" : theme.text,\n            )}\n          >\n            Forgot password?\n          </a>\n        </div>\n\n        <Button\n          type=\"submit\"\n          variant={isLiquidGlass ? \"liquid-glass-primary\" : \"default\"}\n          color={color}\n          loading={loading}\n          className={cn(\n            \"w-full h-11 mt-4 shadow-lg\",\n            !isLiquidGlass && \"shadow-black/5\",\n          )}\n        >\n          {loading ? \"Please wait...\" : \"Sign In\"}\n        </Button>\n      </form>\n\n      <div className=\"mt-8 text-center\">\n        <p\n          className={cn(\n            \"text-sm font-medium\",\n            isLiquidGlass ? \"text-white/75\" : \"text-muted-foreground\",\n          )}\n        >\n          Don&apos;t have an account?{\" \"}\n          <a\n            href={signupHref}\n            onClick={(e) => {\n              if (!signupHref || signupHref === \"#\") e.preventDefault();\n            }}\n            className={cn(\n              \"font-semibold hover:underline transition-all\",\n              isLiquidGlass ? \"text-white hover:text-white/90\" : theme.text,\n            )}\n          >\n            Sign up\n          </a>\n        </p>\n      </div>\n    </div>\n  );\n\n  if (variant === \"ribbon-drift\") {\n    return (\n      <LoginBlock\n        rounded={rounded}\n        color={color}\n        className={className}\n        style={{ ...themeStyle, ...customStyle }}\n        heading={heading || title || \"Welcome back\"}\n        lead={\n          lead ||\n          subtitle ||\n          \"Sign in to review your candidates, screening answers and interview recordings in one place.\"\n        }\n        image={\n          image ||\n          bgImage ||\n          defaultLoginImage\n        }\n        promo={promo}\n        ribbonsTop={ribbonsTop}\n        ribbonsBottom={ribbonsBottom}\n        forgotHref=\"#\"\n        registerHref=\"#\"\n        logoHref=\"#\"\n        onSubmit={onSubmit}\n        onGoogle={onGoogle || (() => onSocialSignIn?.(\"google\"))}\n      />\n    );\n  }\n\n  if (variant === \"split\") {\n    return (\n      <div\n        className=\"w-full h-full min-h-[600px] flex overflow-hidden rounded-2xl border border-border bg-background transition-colors duration-300\"\n        style={{ ...themeStyle, ...customStyle }}\n      >\n        <div\n          className={cn(\n            \"hidden lg:flex w-1/2 relative p-12 flex-col justify-between gap-10 overflow-hidden bg-gradient-to-br\",\n            theme.gradient,\n            // Everything inside inherits this, so the panel stays legible even\n            // on gradients that invert with the theme.\n            theme.panelFg,\n          )}\n        >\n          <div className=\"absolute inset-0 bg-black/10 mix-blend-overlay pointer-events-none\" />\n\n          {/* Decoration. All CSS — the block stays copy-paste portable with no\n              image assets to ship, and it recolours with the gradient. */}\n          <div\n            className=\"absolute inset-0 pointer-events-none opacity-[0.18] bg-[radial-gradient(circle,currentColor_1px,transparent_1px)] [background-size:22px_22px] [mask-image:radial-gradient(ellipse_at_top_right,black_10%,transparent_70%)]\"\n            aria-hidden=\"true\"\n          />\n          <div\n            className=\"absolute -top-24 -right-20 w-72 h-72 rounded-full bg-current/15 blur-3xl pointer-events-none\"\n            aria-hidden=\"true\"\n          />\n          <div\n            className=\"absolute -bottom-28 -left-16 w-80 h-80 rounded-full bg-black/20 blur-3xl pointer-events-none\"\n            aria-hidden=\"true\"\n          />\n\n          <div className=\"relative z-10\">\n            <div className=\"flex items-center gap-2 font-semibold text-2xl tracking-tighter\">\n              {brandIcon || (\n                <div className=\"w-8 h-8 rounded-lg bg-current/20 flex items-center justify-center backdrop-blur-md\">\n                  ⚡\n                </div>\n              )}\n              {brandName || \"Acme Inc.\"}\n            </div>\n          </div>\n\n          {/* Sign-in illustration. Drawn inline rather than loaded as a file so\n              the block stays copy-paste portable with no assets to ship, and it\n              paints in currentColor so it inherits the panel's own foreground —\n              legible on both the light and dark gradients. */}\n          <div className=\"relative z-10 flex-1 flex items-center justify-center py-4\">\n            <svg\n              viewBox=\"0 0 320 250\"\n              fill=\"none\"\n              className=\"w-full max-w-[320px]\"\n              aria-hidden=\"true\"\n            >\n              <ellipse\n                cx=\"150\"\n                cy=\"228\"\n                rx=\"116\"\n                ry=\"14\"\n                fill=\"currentColor\"\n                opacity=\"0.12\"\n              />\n\n              {/* Offset card behind, for depth */}\n              <rect\n                x=\"52\"\n                y=\"26\"\n                width=\"222\"\n                height=\"148\"\n                rx=\"16\"\n                fill=\"currentColor\"\n                opacity=\"0.1\"\n              />\n\n              {/* Sign-in card */}\n              <rect\n                x=\"30\"\n                y=\"44\"\n                width=\"222\"\n                height=\"162\"\n                rx=\"16\"\n                fill=\"currentColor\"\n                opacity=\"0.16\"\n              />\n              <rect\n                x=\"30.75\"\n                y=\"44.75\"\n                width=\"220.5\"\n                height=\"160.5\"\n                rx=\"15.25\"\n                stroke=\"currentColor\"\n                strokeOpacity=\"0.35\"\n                strokeWidth=\"1.5\"\n              />\n              <circle cx=\"48\" cy=\"62\" r=\"3.5\" fill=\"currentColor\" opacity=\"0.5\" />\n              <circle cx=\"60\" cy=\"62\" r=\"3.5\" fill=\"currentColor\" opacity=\"0.3\" />\n              <circle cx=\"72\" cy=\"62\" r=\"3.5\" fill=\"currentColor\" opacity=\"0.3\" />\n              <line\n                x1=\"30\"\n                y1=\"78\"\n                x2=\"252\"\n                y2=\"78\"\n                stroke=\"currentColor\"\n                strokeOpacity=\"0.25\"\n                strokeWidth=\"1.5\"\n              />\n\n              {/* Avatar */}\n              <circle\n                cx=\"141\"\n                cy=\"104\"\n                r=\"18\"\n                fill=\"currentColor\"\n                opacity=\"0.26\"\n              />\n              <circle\n                cx=\"141\"\n                cy=\"99\"\n                r=\"6.5\"\n                fill=\"currentColor\"\n                opacity=\"0.8\"\n              />\n              <path\n                d=\"M130 116a11 11 0 0 1 22 0\"\n                fill=\"currentColor\"\n                opacity=\"0.8\"\n              />\n\n              {/* Email + password fields */}\n              <rect\n                x=\"58\"\n                y=\"136\"\n                width=\"166\"\n                height=\"14\"\n                rx=\"7\"\n                fill=\"currentColor\"\n                opacity=\"0.22\"\n              />\n              <rect\n                x=\"58\"\n                y=\"158\"\n                width=\"166\"\n                height=\"14\"\n                rx=\"7\"\n                fill=\"currentColor\"\n                opacity=\"0.22\"\n              />\n              <circle cx=\"70\" cy=\"165\" r=\"2.4\" fill=\"currentColor\" opacity=\"0.55\" />\n              <circle cx=\"78\" cy=\"165\" r=\"2.4\" fill=\"currentColor\" opacity=\"0.55\" />\n              <circle cx=\"86\" cy=\"165\" r=\"2.4\" fill=\"currentColor\" opacity=\"0.55\" />\n              <circle cx=\"94\" cy=\"165\" r=\"2.4\" fill=\"currentColor\" opacity=\"0.55\" />\n\n              {/* Submit */}\n              <rect\n                x=\"58\"\n                y=\"180\"\n                width=\"166\"\n                height=\"16\"\n                rx=\"8\"\n                fill=\"currentColor\"\n                opacity=\"0.55\"\n              />\n\n              {/* Padlock badge */}\n              <circle\n                cx=\"256\"\n                cy=\"166\"\n                r=\"36\"\n                fill=\"currentColor\"\n                opacity=\"0.18\"\n              />\n              <circle\n                cx=\"256\"\n                cy=\"166\"\n                r=\"36\"\n                stroke=\"currentColor\"\n                strokeOpacity=\"0.4\"\n                strokeWidth=\"1.5\"\n              />\n              <rect\n                x=\"242\"\n                y=\"163\"\n                width=\"28\"\n                height=\"22\"\n                rx=\"6\"\n                stroke=\"currentColor\"\n                strokeOpacity=\"0.9\"\n                strokeWidth=\"2.5\"\n              />\n              <path\n                d=\"M248 163v-6a8 8 0 0 1 16 0v6\"\n                stroke=\"currentColor\"\n                strokeOpacity=\"0.9\"\n                strokeWidth=\"2.5\"\n                strokeLinecap=\"round\"\n              />\n              <circle cx=\"256\" cy=\"171\" r=\"2.8\" fill=\"currentColor\" opacity=\"0.9\" />\n              <path\n                d=\"M256 173v4\"\n                stroke=\"currentColor\"\n                strokeOpacity=\"0.9\"\n                strokeWidth=\"2.5\"\n                strokeLinecap=\"round\"\n              />\n\n              {/* Sparkles */}\n              <circle cx=\"34\" cy=\"24\" r=\"3\" fill=\"currentColor\" opacity=\"0.5\" />\n              <circle cx=\"290\" cy=\"58\" r=\"4\" fill=\"currentColor\" opacity=\"0.32\" />\n              <circle cx=\"272\" cy=\"28\" r=\"2.5\" fill=\"currentColor\" opacity=\"0.5\" />\n            </svg>\n          </div>\n\n          <div className=\"relative z-10 max-w-sm\">\n            <h1 className=\"text-4xl font-semibold mb-4 leading-tight\">\n              {title || \"Welcome back. Pick up where you left off.\"}\n            </h1>\n            <p className=\"font-medium opacity-80\">\n              {subtitle ||\n                \"Your projects, deployments and team are exactly as you left them. Sign in to get straight back to work.\"}\n            </p>\n          </div>\n        </div>\n        <div className=\"w-full lg:w-1/2 p-4 xs:p-6 sm:p-12 xl:p-16 flex items-center justify-center\">\n          {FormContent}\n        </div>\n      </div>\n    );\n  }\n\n  if (\n    variant === \"scenic\" ||\n    variant === \"nature\" ||\n    variant === \"landscape\"\n  ) {\n    return (\n      <div\n        className=\"relative w-full min-h-[580px] sm:min-h-[640px] flex items-center justify-center overflow-hidden rounded-3xl p-4 sm:p-6 md:p-8\"\n        style={{ ...themeStyle, ...customStyle }}\n      >\n        {/* Full-bleed scenic nature background */}\n        <img\n          src={bgImage}\n          alt=\"Scenic nature landscape background\"\n          className=\"absolute inset-0 w-full h-full object-cover select-none pointer-events-none\"\n        />\n\n        {/* Soft atmospheric overlay */}\n        <div className=\"absolute inset-0 bg-gradient-to-b from-black/20 via-transparent to-black/35 pointer-events-none\" />\n\n        {/* Floating Card */}\n        <div\n          className={cn(\n            \"relative z-10 w-full max-w-[440px] rounded-[28px] p-6 sm:p-8 md:p-9 transition-all duration-300\",\n            // Light mode: clean frosted white card, crisp dark text, delicate border, deep ambient shadow\n            \"bg-white/95 text-zinc-900 border border-zinc-200/80 shadow-[0_20px_50px_rgba(0,0,0,0.18)] backdrop-blur-xl\",\n            // Dark mode: deep charcoal card matching screenshot, crisp white text, subtle translucent border\n            \"dark:bg-[#131415]/95 dark:text-white dark:border-white/10 dark:shadow-[0_25px_60px_-15px_rgba(0,0,0,0.7)]\"\n          )}\n        >\n          {scenicStep === \"welcome\" ? (\n            <div className=\"flex flex-col items-center text-center\">\n              {/* Brand Header */}\n              <div className=\"flex items-center gap-2 mb-6\">\n                {brandIcon || (\n                  <DocsUiIcon className=\"w-5 h-5 text-zinc-900 dark:text-white\" />\n                )}\n                <span className=\"font-semibold text-lg tracking-tight text-zinc-900 dark:text-white\">\n                  {brandName}\n                </span>\n              </div>\n\n              {/* Title */}\n              <h2 className=\"text-2xl sm:text-[28px] font-medium tracking-tight text-zinc-900 dark:text-white mb-3 leading-snug\">\n                {title}\n              </h2>\n\n              {/* Subtitle */}\n              <p className=\"text-xs sm:text-sm text-zinc-600 dark:text-white/70 max-w-[340px] mb-8 leading-relaxed\">\n                {subtitle}\n              </p>\n\n              {/* Actions */}\n              <div className=\"w-full flex flex-col gap-3\">\n                {/* Primary Button */}\n                <Button\n                  type=\"button\"\n                  variant=\"scenic-primary\"\n                  color={color}\n                  onClick={() => setScenicStep(\"form\")}\n                  className={scenicPrimaryButtonClasses}\n                >\n                  {loginLabel}\n                </Button>\n\n                {/* Secondary Button */}\n                <a\n                  href={signupHref}\n                  onClick={(e) => {\n                    if (!signupHref || signupHref === \"#\") e.preventDefault();\n                  }}\n                  className=\"w-full block\"\n                >\n                  <Button\n                    type=\"button\"\n                    variant=\"scenic-secondary\"\n                    color={color}\n                    className={cn(\"w-full\", focusButtonClasses)}\n                  >\n                    {createAccountLabel}\n                  </Button>\n                </a>\n              </div>\n            </div>\n          ) : (\n            <div>\n              {/* Header with Back button */}\n              <div className=\"flex items-center justify-between mb-4 pb-3 border-b border-zinc-200/60 dark:border-white/10\">\n                <Button\n                  type=\"button\"\n                  variant=\"ghost\"\n                  size=\"sm\"\n                  onClick={() => setScenicStep(\"welcome\")}\n                  iconLeft={<ArrowLeft size={14} />}\n                  className=\"h-auto px-0 py-0 text-xs font-medium text-zinc-500 hover:text-zinc-900 hover:bg-transparent dark:text-zinc-400 dark:hover:text-white dark:hover:bg-transparent\"\n                >\n                  Back\n                </Button>\n                <div className=\"flex items-center gap-1.5\">\n                  {brandIcon || (\n                    <DocsUiIcon className=\"w-4 h-4 text-zinc-900 dark:text-white\" />\n                  )}\n                  <span className=\"font-semibold text-xs text-zinc-900 dark:text-white\">\n                    {brandName}\n                  </span>\n                </div>\n              </div>\n\n              {/* Form Heading */}\n              <div className=\"mb-4\">\n                <h3 className=\"text-xl font-bold tracking-tight text-zinc-900 dark:text-white mb-1\">\n                  Sign in\n                </h3>\n                <p className=\"text-xs text-zinc-500 dark:text-zinc-400\">\n                  Welcome back! Please enter your details.\n                </p>\n              </div>\n\n              <form onSubmit={handleSubmit} className=\"space-y-3.5\">\n                <InputBlock\n                  label=\"Email Address\"\n                  id=\"login-scenic-email\"\n                  name=\"email\"\n                  type=\"email\"\n                  autoComplete=\"email\"\n                  placeholder=\"name@company.com\"\n                  value={formData.email}\n                  onChange={(e: React.ChangeEvent<HTMLInputElement>) =>\n                    handleChange(\"email\", e.target.value)\n                  }\n                  error={errors.email}\n                  color={color}\n                />\n\n                <InputBlock\n                  label=\"Password\"\n                  id=\"login-scenic-password\"\n                  name=\"password\"\n                  type=\"password\"\n                  autoComplete=\"current-password\"\n                  placeholder=\"••••••••\"\n                  value={formData.password}\n                  onChange={(e: React.ChangeEvent<HTMLInputElement>) =>\n                    handleChange(\"password\", e.target.value)\n                  }\n                  error={errors.password}\n                  color={color}\n                />\n\n                <div className=\"flex items-center justify-between text-xs pt-0.5\">\n                  <Checkbox\n                    id=\"login-scenic-remember\"\n                    label=\"Remember me\"\n                    checked={formData.remember}\n                    onCheckedChange={(checked) =>\n                      handleChange(\"remember\", checked)\n                    }\n                    theme={theme}\n                  />\n                  <a\n                    href={forgotPasswordHref}\n                    onClick={(e) => {\n                      if (!forgotPasswordHref || forgotPasswordHref === \"#\") e.preventDefault();\n                    }}\n                    className=\"font-medium text-zinc-600 dark:text-zinc-400 hover:text-zinc-900 dark:hover:text-white transition-colors\"\n                  >\n                    Forgot password?\n                  </a>\n                </div>\n\n                <Button\n                  type=\"submit\"\n                  variant=\"scenic-primary\"\n                  color={color}\n                  loading={loading}\n                  className={cn(\n                    \"w-full h-11 rounded-xl text-sm mt-2\",\n                    scenicPrimaryButtonClasses\n                  )}\n                >\n                  {loading ? \"Signing in...\" : \"Sign in\"}\n                </Button>\n              </form>\n\n              <div className=\"mt-4 text-center\">\n                <p className=\"text-xs text-zinc-500 dark:text-zinc-400\">\n                  Don't have an account?{\" \"}\n                  <a\n                    href={signupHref}\n                    onClick={(e) => {\n                      if (!signupHref || signupHref === \"#\") e.preventDefault();\n                    }}\n                    className=\"font-semibold text-zinc-900 dark:text-white hover:underline\"\n                  >\n                    Sign up\n                  </a>\n                </p>\n              </div>\n            </div>\n          )}\n        </div>\n      </div>\n    );\n  }\n\n  if (variant === \"liquid-glass\") {\n    const liquidBg =\n      bgImage ||\n      \"https://res.cloudinary.com/dodndg7ai/image/upload/f_webp,q_auto,w_1600,c_limit/v1790146209/photo-1470071459604-3b5ec3a7fe05-1790146212205.jpg\";\n\n    const formattedRadius = formatRadius(rounded);\n    const dynamicRadiusStyle: React.CSSProperties =\n      formattedRadius !== undefined\n        ? { borderRadius: formattedRadius }\n        : typeof rounded === \"string\" && !formatRadius(rounded)\n          ? {}\n          : { borderRadius: \"var(--radius-3xl, 1.5rem)\" };\n\n    return (\n      <div\n        className={cn(\n          \"relative w-full min-h-[600px] sm:min-h-[720px] flex items-center justify-center overflow-hidden rounded-3xl p-4 sm:p-6 md:p-8 isolate [contain:paint] [transform:translateZ(0)]\",\n          className,\n        )}\n        style={{\n          ...themeStyle,\n          ...customStyle,\n        }}\n      >\n        <LiquidGlassSvgFilter id=\"glass-blur-login\" bgImage={liquidBg} />\n\n        {/* Full-bleed background image covering the entire container */}\n        <img\n          src={liquidBg}\n          alt=\"Liquid glass backdrop\"\n          className=\"absolute inset-0 w-full h-full object-cover select-none pointer-events-none\"\n        />\n\n        {/* Floating Liquid Glass Card */}\n        <div\n          className={cn(\n            \"relative z-10 w-full max-w-[460px] p-6 sm:p-8 md:p-10 isolate [contain:paint] [transform:translateZ(0)] text-white transition-all duration-300 overflow-hidden\",\n            typeof rounded === \"string\" && !formatRadius(rounded) ? rounded : \"\",\n            \"shadow-[0_25px_60px_rgba(0,0,0,0.5)] [--foreground:#ffffff] [--muted-foreground:rgba(255,255,255,0.75)] [--color-foreground:#ffffff] [--color-muted-foreground:rgba(255,255,255,0.75)] [--border:rgba(255,255,255,0.2)] [--background:rgba(255,255,255,0.12)] [--card:rgba(255,255,255,0.12)]\",\n          )}\n          style={dynamicRadiusStyle}\n        >\n          <LiquidGlassBackground\n            radius={formattedRadius ?? \"var(--radius-3xl, 1.5rem)\"}\n            bgImage={liquidBg}\n            filterId=\"glass-blur-login\"\n            contrastOverlayClassName=\"bg-black/30 dark:bg-black/45 backdrop-blur-[3px]\"\n          />\n\n          <div className=\"relative z-10 w-full\">{FormContent}</div>\n        </div>\n      </div>\n    );\n  }\n\n  if (variant === \"glass\") {\n    const glassBg =\n      bgImage ||\n      \"https://res.cloudinary.com/dodndg7ai/image/upload/f_webp,q_auto,w_1600,c_limit/v1790146210/photo-1506744038136-46273834b3fb-1790146212208.jpg\";\n\n    return (\n      <div\n        className=\"relative w-full min-h-[600px] sm:min-h-[700px] flex items-center justify-center overflow-hidden rounded-3xl p-4 sm:p-6 md:p-8\"\n        style={{ ...themeStyle, ...customStyle }}\n      >\n        {/* Full-bleed glass backdrop */}\n        <img\n          src={glassBg}\n          alt=\"Glass landscape backdrop\"\n          className=\"absolute inset-0 w-full h-full object-cover select-none pointer-events-none\"\n        />\n        <div className=\"absolute inset-0 bg-black/45 backdrop-blur-[1px] pointer-events-none\" />\n\n        {/* Floating Glass Card */}\n        <div className=\"relative z-10 w-full max-w-[460px] p-6 sm:p-8 md:p-10 bg-background/65 backdrop-blur-xl rounded-3xl shadow-2xl border border-foreground/10 transition-colors duration-300\">\n          {FormContent}\n        </div>\n      </div>\n    );\n  }\n\n  const baseWrapper =\n    \"w-full max-w-[480px] mx-auto p-4 xs:p-6 sm:p-8 md:p-10 transition-colors duration-300\";\n  const wrapperClass = cn(\n    baseWrapper,\n    variant === \"default\" &&\n      \"bg-background rounded-3xl shadow-xl border border-border\",\n    variant === \"minimal\" && \"bg-transparent\",\n  );\n\n  return (\n    <div className={wrapperClass} style={{ ...themeStyle, ...customStyle }}>\n      {FormContent}\n    </div>\n  );\n}\n\n// ==========================================\n// RIBBON DRIFT LOGIN BLOCK\n// ==========================================\n\nexport interface LoginBlockProps {\n  logo?: string;\n  logoDark?: string;\n  logoHref?: string;\n  heading?: string;\n  lead?: string;\n  image?: string;\n  promo?: {\n    title?: string;\n    body?: string;\n    href?: string;\n    avatars?: (string | { src: string; alt?: string; name?: string; designation?: string })[];\n  };\n  ribbonsTop?: string[];\n  ribbonsBottom?: string[];\n  forgotHref?: string;\n  registerHref?: string;\n  onSubmit?: (values: LoginFormValues) => void | Promise<void>;\n  onGoogle?: () => void;\n  pending?: boolean;\n  error?: string;\n  fieldErrors?: Record<string, string>;\n  className?: string;\n  style?: React.CSSProperties;\n  color?: LoginColor;\n  rounded?: string | number;\n  footerCopyright?: React.ReactNode;\n  footerBadge?: React.ReactNode;\n}\n\nconst defaultLoginImage =\n  \"https://res.cloudinary.com/dygyhxplr/image/upload/v1791725870/upload/update27-2-1791725870473.webp\";\n\nconst defaultRibbonsTop = [\n  \"Interviews run day and night\",\n  \"Every applicant, the same questions\",\n  \"Recordings ready for your review\",\n];\n\nconst defaultRibbonsBottom = [\n  \"Qualified candidates, interviewed in minutes\",\n  \"Your first round, handled\",\n  \"You make every hiring decision\",\n];\n\nconst defaultPromo = {\n  title: \"Interviews run day and night\",\n  body: \"See who qualified while you were away\",\n  href: \"#\",\n  avatars: [\n    {\n      src: \"https://res.cloudinary.com/dodndg7ai/image/upload/f_webp,q_auto,w_120,h_120,c_fill/v1790145139/pexels-photo-1036623-1790145143487.jpg\",\n      alt: \"Ana Watson\",\n      name: \"Ana Watson\",\n      designation: \"Founder & CEO\",\n    },\n    {\n      src: \"https://res.cloudinary.com/dodndg7ai/image/upload/f_webp,q_auto,w_120,h_120,c_fill/v1790145142/pexels-photo-2043590-1790145143488.jpg\",\n      alt: \"Tom Hardy\",\n      name: \"Tom Hardy\",\n      designation: \"Co-Founder & CTO\",\n    },\n    {\n      src: \"https://res.cloudinary.com/dodndg7ai/image/upload/f_webp,q_auto,w_120,h_120,c_fill/v1790145139/pexels-photo-1587009-1790145143488.jpg\",\n      alt: \"Mara Jade\",\n      name: \"Mara Jade\",\n      designation: \"Managing Director\",\n    },\n  ],\n};\n\nexport function LoginBlock({\n  logo,\n  logoDark,\n  logoHref = \"#\",\n  heading = \"Welcome back\",\n  lead = \"Sign in to review your candidates, screening answers and interview recordings in one place.\",\n  image = defaultLoginImage,\n  promo = defaultPromo,\n  ribbonsTop = defaultRibbonsTop,\n  ribbonsBottom = defaultRibbonsBottom,\n  forgotHref = \"#\",\n  registerHref = \"#\",\n  onSubmit,\n  onGoogle,\n  pending = false,\n  error,\n  fieldErrors = {},\n  className = \"\",\n  style,\n  color = \"primary\",\n  rounded,\n  footerCopyright,\n  footerBadge,\n}: LoginBlockProps) {\n  const [rememberMe, setRememberMe] = useState(false);\n  const [localErrors, setLocalErrors] = useState<Record<string, string>>({});\n  const errors = { ...localErrors, ...fieldErrors };\n\n  const { style: themeStyle } = getThemeStyles(color);\n\n  const formattedRadius = formatRadius(rounded);\n  const dynamicRadiusStyle: React.CSSProperties = {\n    borderRadius:\n      formattedRadius !== undefined\n        ? formattedRadius\n        : \"calc(var(--radius, 0.625rem) * 2.8)\",\n    WebkitMaskImage: \"-webkit-radial-gradient(white, black)\",\n  };\n\n  const handleSubmit = (event: React.FormEvent<HTMLFormElement>) => {\n    event.preventDefault();\n    const form = new FormData(event.currentTarget);\n    const email = String(form.get(\"email\") || \"\").trim();\n    const password = String(form.get(\"password\") || \"\");\n    const next: Record<string, string> = {};\n    if (!email) next.email = \"Email is required\";\n    else if (!/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,}$/i.test(email))\n      next.email = \"Invalid email address\";\n    if (!password) next.password = \"Password is required\";\n    else if (password.length < 6)\n      next.password = \"Password must be at least 6 characters\";\n    setLocalErrors(next);\n    if (Object.keys(next).length) return;\n    onSubmit?.({ email, password, remember: rememberMe });\n  };\n\n  return (\n    <div\n      className={cn(\n        \"flex flex-col justify-between bg-background p-2.5 sm:p-4 text-foreground w-full max-w-full min-w-0 overflow-hidden box-border transition-colors duration-300\",\n        className,\n      )}\n      style={{ ...themeStyle, ...style }}\n    >\n      <div\n        className={cn(\n          \"grid flex-1 gap-3 sm:gap-4 items-stretch w-full max-w-full min-w-0\",\n          image\n            ? \"grid-cols-1 lg:grid-cols-[0.9fr_1fr]\"\n            : \"grid-cols-1 max-w-[560px] mx-auto\",\n        )}\n      >\n        <div className=\"mx-auto flex w-full max-w-[560px] lg:max-w-none min-w-0 flex-col h-full justify-center\">\n          <section\n            className={cn(\n              \"relative flex flex-1 items-center justify-center overflow-hidden bg-[#efeff2] dark:bg-[#131313] p-4 sm:p-6 shadow-sm border border-black/5 dark:border-white/5 min-h-[460px] sm:min-h-[520px] lg:min-h-[540px] h-full w-full max-w-full min-w-0\",\n              typeof rounded === \"string\" && !formatRadius(rounded)\n                ? rounded\n                : \"\",\n            )}\n            style={dynamicRadiusStyle}\n          >\n            <div\n              aria-hidden=\"true\"\n              className=\"pointer-events-none absolute inset-0 bg-[radial-gradient(90%_55%_at_85%_112%,color-mix(in_oklab,var(--brand-secondary,var(--brand,#9B8AFB))_30%,transparent),transparent_62%),radial-gradient(80%_50%_at_8%_108%,color-mix(in_oklab,var(--primary)_26%,transparent),transparent_60%)]\"\n            />\n            {/* Form-card logo: shown where the image card is hidden */}\n            <div\n              className={cn(\n                \"absolute right-4 top-4 sm:right-5 sm:top-5 z-10\",\n                image && \"lg:hidden\",\n              )}\n            >\n              <BlockLogo\n                href={logoHref}\n                logo={logo}\n                logoDark={logoDark}\n                compact\n              />\n            </div>\n\n            <div\n              className={cn(\n                \"relative w-full max-w-[400px] px-2 sm:px-4 pb-6 pt-14 text-center sm:pb-8 sm:pt-16\",\n                image && \"lg:pt-8\",\n              )}\n            >\n              <h1 className=\"text-balance text-[clamp(26px,4vw,38px)] font-medium leading-[1.12] tracking-[-0.025em] text-foreground\">\n                {heading}\n              </h1>\n              {lead && (\n                <p className=\"mx-auto mt-2.5 max-w-[34ch] text-pretty text-[13px] sm:text-[14px] leading-relaxed text-muted-foreground\">\n                  {lead}\n                </p>\n              )}\n\n              <form\n                className=\"mt-6 sm:mt-8 flex flex-col gap-3 text-left\"\n                onSubmit={handleSubmit}\n                noValidate\n              >\n                {error && (\n                  <p\n                    role=\"alert\"\n                    className=\"rounded-2xl bg-destructive/10 px-4 py-2.5 text-[13px] text-destructive\"\n                  >\n                    {error}\n                  </p>\n                )}\n\n                <InputBlock\n                  variant=\"pill\"\n                  color={color}\n                  id=\"login-email\"\n                  name=\"email\"\n                  type=\"email\"\n                  autoComplete=\"email\"\n                  placeholder=\"Enter your email or username\"\n                  leftIcon={<MailIcon />}\n                  error={errors.email}\n                />\n\n                <InputBlock\n                  variant=\"pill\"\n                  color={color}\n                  id=\"login-password\"\n                  name=\"password\"\n                  type=\"password\"\n                  autoComplete=\"current-password\"\n                  placeholder=\"Enter Password\"\n                  leftIcon={<LockIcon />}\n                  error={errors.password}\n                />\n\n                <div className=\"flex flex-wrap items-center justify-between gap-2 px-1 text-xs sm:text-sm\">\n                  <label\n                    htmlFor=\"login-remember\"\n                    className=\"inline-flex cursor-pointer items-center gap-2 text-muted-foreground select-none\"\n                  >\n                    <BlockCheckbox\n                      id=\"login-remember\"\n                      checked={rememberMe}\n                      onCheckedChange={(v) => setRememberMe(v)}\n                    />\n                    <span>Remember Me</span>\n                  </label>\n                  <a\n                    href={forgotHref}\n                    onClick={(e) => {\n                      if (!forgotHref || forgotHref === \"#\") e.preventDefault();\n                    }}\n                    className={blockLinkClass}\n                  >\n                    Forgot Password?\n                  </a>\n                </div>\n\n                <Button\n                  type=\"submit\"\n                  variant=\"ribbon-primary\"\n                  color={color}\n                  loading={pending}\n                  className=\"w-full mt-1.5\"\n                >\n                  {pending ? \"Signing in...\" : \"Sign in\"}\n                </Button>\n              </form>\n\n              {onGoogle && (\n                <>\n                  <div className=\"my-4 sm:my-5 flex items-center gap-3.5 text-[13px] text-muted-foreground before:h-px before:flex-1 before:bg-border after:h-px after:flex-1 after:bg-border\">\n                    or\n                  </div>\n                  <Button\n                    type=\"button\"\n                    variant=\"ribbon-social\"\n                    color={color}\n                    onClick={onGoogle}\n                    iconLeft={<GoogleColoredIcon />}\n                    className=\"w-full\"\n                  >\n                    Continue with Google\n                  </Button>\n                </>\n              )}\n\n              <p className=\"mt-4 sm:mt-5 text-xs sm:text-sm text-muted-foreground\">\n                New on our platform?{\" \"}\n                <a\n                  href={registerHref}\n                  onClick={(e) => {\n                    if (!registerHref || registerHref === \"#\") e.preventDefault();\n                  }}\n                  className={cn(\n                    blockLinkClass,\n                    \"font-semibold decoration-transparent hover:decoration-current\",\n                  )}\n                >\n                  Create an account\n                </a>\n              </p>\n            </div>\n          </section>\n        </div>\n\n        {image && (\n          <div className=\"hidden lg:flex flex-col w-full h-full min-w-0 overflow-hidden\">\n            <RibbonDriftBlock\n              image={image}\n              logoConfig={{\n                logo,\n                logoDark,\n                href: logoHref,\n              }}\n              ribbonsTop={ribbonsTop}\n              ribbonsBottom={ribbonsBottom}\n              promo={promo}\n              color={color}\n              rounded={rounded}\n              className=\"h-full min-h-[440px] sm:min-h-[500px] lg:min-h-[540px]\"\n            />\n          </div>\n        )}\n      </div>\n\n      {/* Footer row */}\n      <footer className=\"mt-4 flex flex-col sm:flex-row items-center justify-between gap-2.5 px-3 py-1 text-xs text-muted-foreground text-center sm:text-left select-none\">\n        <p>\n          {footerCopyright || (\n            <>\n              COPYRIGHT © {new Date().getFullYear()}{\" \"}\n              <span className=\"font-medium text-foreground\">\n                Avara{\" \"}\n                <span\n                  className=\"font-normal\"\n                  style={{ color: \"var(--brand, #9B8AFB)\" }}\n                >\n                  UI\n                </span>\n              </span>{\" \"}\n              All rights reserved.\n            </>\n          )}\n        </p>\n        <p className=\"flex items-center gap-1.5 font-medium\">\n          {footerBadge || (\n            <>\n              Created by{\" \"}\n              <span className=\"font-semibold text-foreground\">\n                Avara{\" \"}\n                <span\n                  className=\"font-normal\"\n                  style={{ color: \"var(--brand, #9B8AFB)\" }}\n                >\n                  UI\n                </span>\n              </span>{\" \"}\n              with <span className=\"text-rose-500\">❤️</span>\n            </>\n          )}\n        </p>\n      </footer>\n    </div>\n  );\n}\n\nconst blockLinkClass =\n  \"font-medium text-foreground underline decoration-current/30 underline-offset-[3px] transition-colors hover:decoration-current\";\n\nfunction BlockLogo({\n  href = \"#\",\n  logo,\n  logoDark,\n  compact = false,\n}: {\n  href?: string;\n  logo?: string;\n  logoDark?: string;\n  compact?: boolean;\n}) {\n  return (\n    <a\n      href={href}\n      onClick={(e) => {\n        if (!href || href === \"#\") e.preventDefault();\n      }}\n      className=\"inline-flex items-center gap-2 rounded-lg transition-opacity hover:opacity-90 cursor-default select-none\"\n    >\n      {logo || logoDark ? (\n        <>\n          {logo && (\n            <img\n              src={logo}\n              alt=\"Logo\"\n              className={`${compact ? \"h-6\" : \"h-7\"} w-auto object-contain ${logoDark ? \"dark:hidden\" : \"\"}`}\n            />\n          )}\n          {logoDark && (\n            <img\n              src={logoDark}\n              alt=\"Logo\"\n              className={`${compact ? \"h-6\" : \"h-7\"} hidden w-auto object-contain dark:block`}\n            />\n          )}\n        </>\n      ) : (\n        <>\n          <img\n            src=\"/favicon/android-chrome-192x192.png\"\n            alt=\"Avara UI\"\n            className={`${compact ? \"size-5\" : \"size-6\"} rounded-md object-contain shrink-0`}\n          />\n          <span\n            className={`${compact ? \"text-[14px]\" : \"text-[15px]\"} font-semibold tracking-tight text-foreground`}\n          >\n            Avara{\" \"}\n            <span\n              className=\"font-normal\"\n              style={{ color: \"var(--brand, #9B8AFB)\" }}\n            >\n              UI\n            </span>\n          </span>\n        </>\n      )}\n    </a>\n  );\n}\n\nfunction BlockCheckbox({\n  id,\n  checked,\n  onCheckedChange,\n}: {\n  id?: string;\n  checked: boolean;\n  onCheckedChange: (checked: boolean) => void;\n}) {\n  return (\n    <button\n      type=\"button\"\n      role=\"checkbox\"\n      id={id}\n      aria-checked={checked}\n      onClick={() => onCheckedChange(!checked)}\n      className={cn(\n        \"size-4 rounded border transition-colors flex items-center justify-center focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40\",\n        checked\n          ? \"bg-primary border-primary text-primary-foreground\"\n          : \"border-input bg-background/50 hover:bg-background hover:border-foreground/40\",\n      )}\n    >\n      {checked && (\n        <svg\n          className=\"size-3 stroke-current\"\n          viewBox=\"0 0 24 24\"\n          fill=\"none\"\n          strokeWidth=\"3.5\"\n          strokeLinecap=\"round\"\n          strokeLinejoin=\"round\"\n        >\n          <polyline points=\"20 6 9 17 4 12\" />\n        </svg>\n      )}\n    </button>\n  );\n}\n\nconst svgProps = {\n  viewBox: \"0 0 24 24\",\n  fill: \"none\",\n  stroke: \"currentColor\",\n  strokeWidth: 2,\n  strokeLinecap: \"round\" as const,\n  strokeLinejoin: \"round\" as const,\n  className: \"size-4 sm:size-[18px]\",\n};\n\nconst MailIcon = () => (\n  <svg {...svgProps}>\n    <rect width=\"20\" height=\"16\" x=\"2\" y=\"4\" rx=\"2\" />\n    <path d=\"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7\" />\n  </svg>\n);\n\nconst LockIcon = () => (\n  <svg {...svgProps}>\n    <rect width=\"18\" height=\"11\" x=\"3\" y=\"11\" rx=\"2\" />\n    <path d=\"M7 11V7a5 5 0 0 1 10 0v4\" />\n  </svg>\n);\n\nconst GoogleColoredIcon = () => (\n  <svg viewBox=\"0 0 48 48\" className=\"size-[18px] shrink-0\" aria-hidden=\"true\">\n    <path\n      fill=\"#EA4335\"\n      d=\"M24 9.5c3.5 0 6.6 1.2 9.1 3.6l6.8-6.8C35.8 2.4 30.3 0 24 0 14.6 0 6.5 5.4 2.6 13.2l7.9 6.1C12.4 13.6 17.7 9.5 24 9.5z\"\n    />\n    <path\n      fill=\"#4285F4\"\n      d=\"M46.5 24.5c0-1.6-.1-3.1-.4-4.5H24v9h12.7c-.6 3-2.3 5.5-4.8 7.2l7.5 5.8c4.4-4.1 7.1-10.1 7.1-17.5z\"\n    />\n    <path\n      fill=\"#FBBC05\"\n      d=\"M10.5 28.7a14.5 14.5 0 0 1 0-9.4l-7.9-6.1a24 24 0 0 0 0 21.6l7.9-6.1z\"\n    />\n    <path\n      fill=\"#34A853\"\n      d=\"M24 48c6.5 0 11.9-2.1 15.9-5.8l-7.5-5.8c-2.1 1.4-4.8 2.3-8.4 2.3-6.3 0-11.6-4.1-13.5-9.8l-7.9 6.1C6.5 42.6 14.6 48 24 48z\"\n    />\n  </svg>\n);\n",
      "type": "registry:component",
      "target": "components/custom/blocks/LoginForm.tsx"
    },
    {
      "path": "src/components/custom/blocks/login-form-theme.ts",
      "content": "\"use client\";\n\nconst colorThemes: Record<string, Record<string, string>> = {\n  lavender: {\n    bg: \"bg-[#9b8afb] hover:bg-[#8b75f8]\",\n    text: \"text-[#9b8afb]\",\n    border: \"border-[#9b8afb]\",\n    ring: \"focus:ring-[#9b8afb]\",\n    focusBorder: \"focus:border-[#9b8afb] focus-visible:border-[#9b8afb]\",\n    focusRing: \"focus:ring-2 focus:ring-[#9b8afb]/25 focus-visible:ring-2 focus-visible:ring-[#9b8afb]/25\",\n    hoverBorder: \"hover:border-[#9b8afb]/60\",\n    gradient: \"from-[#9b8afb] to-[#7c66f6]\",\n    panelFg: \"text-white\",\n  },\n  indigo: {\n    bg: \"bg-indigo-600 hover:bg-indigo-700\",\n    text: \"text-indigo-600 dark:text-indigo-400\",\n    border: \"border-indigo-600\",\n    ring: \"focus:ring-indigo-600\",\n    focusBorder: \"focus:border-indigo-600 focus-visible:border-indigo-600\",\n    focusRing: \"focus:ring-2 focus:ring-indigo-600/25 focus-visible:ring-2 focus-visible:ring-indigo-600/25\",\n    hoverBorder: \"hover:border-indigo-500/60\",\n    gradient: \"from-indigo-600 to-violet-600\",\n    panelFg: \"text-white\",\n  },\n  rose: {\n    bg: \"bg-rose-600 hover:bg-rose-700\",\n    text: \"text-rose-600 dark:text-rose-400\",\n    border: \"border-rose-600\",\n    ring: \"focus:ring-rose-600\",\n    focusBorder: \"focus:border-rose-600 focus-visible:border-rose-600\",\n    focusRing: \"focus:ring-2 focus:ring-rose-600/25 focus-visible:ring-2 focus-visible:ring-rose-600/25\",\n    hoverBorder: \"hover:border-rose-500/60\",\n    gradient: \"from-rose-600 to-orange-500\",\n    panelFg: \"text-white\",\n  },\n  emerald: {\n    bg: \"bg-emerald-600 hover:bg-emerald-700\",\n    text: \"text-emerald-600 dark:text-emerald-400\",\n    border: \"border-emerald-600\",\n    ring: \"focus:ring-emerald-600\",\n    focusBorder: \"focus:border-emerald-600 focus-visible:border-emerald-600\",\n    focusRing: \"focus:ring-2 focus:ring-emerald-600/25 focus-visible:ring-2 focus-visible:ring-emerald-600/25\",\n    hoverBorder: \"hover:border-emerald-500/60\",\n    gradient: \"from-emerald-600 to-teal-500\",\n    panelFg: \"text-white\",\n  },\n  zinc: {\n    bg: \"bg-zinc-900 hover:bg-zinc-800 dark:bg-zinc-100 dark:hover:bg-zinc-200 dark:text-zinc-900\",\n    text: \"text-zinc-900 dark:text-zinc-100\",\n    border: \"border-zinc-900 dark:border-zinc-100\",\n    ring: \"focus:ring-zinc-900 dark:focus:ring-zinc-100\",\n    focusBorder: \"focus:border-zinc-900 dark:focus:border-zinc-100 focus-visible:border-zinc-900 dark:focus-visible:border-zinc-100\",\n    focusRing: \"focus:ring-2 focus:ring-zinc-900/20 dark:focus:ring-zinc-100/20 focus-visible:ring-2 focus-visible:ring-zinc-900/20 dark:focus-visible:ring-zinc-100/20\",\n    hoverBorder: \"hover:border-zinc-900/50 dark:hover:border-zinc-400/50\",\n    gradient: \"from-zinc-800 to-zinc-600 dark:from-zinc-200 dark:to-zinc-400\",\n    panelFg: \"text-white dark:text-zinc-900\",\n  },\n};\n\nconst PRESET_HEX: Record<\n  string,\n  { hex: string; rgb: string; secondary: string; panelFg: string }\n> = {\n  lavender: {\n    hex: \"#9b8afb\",\n    rgb: \"155, 138, 251\",\n    secondary: \"#c4b5fd\",\n    panelFg: \"#ffffff\",\n  },\n  indigo: {\n    hex: \"#6366f1\",\n    rgb: \"99, 102, 241\",\n    secondary: \"#a855f7\",\n    panelFg: \"#ffffff\",\n  },\n  rose: {\n    hex: \"#f43f5e\",\n    rgb: \"244, 63, 94\",\n    secondary: \"#fb7185\",\n    panelFg: \"#ffffff\",\n  },\n  emerald: {\n    hex: \"#10b981\",\n    rgb: \"16, 185, 129\",\n    secondary: \"#34d399\",\n    panelFg: \"#ffffff\",\n  },\n  zinc: {\n    hex: \"#18181b\",\n    rgb: \"24, 24, 27\",\n    secondary: \"#71717a\",\n    panelFg: \"#fafafa\",\n  },\n};\n\nconst contrastingForeground = (rgb: string) => {\n  const [r, g, b] = rgb.split(\",\").map((v) => parseInt(v.trim(), 10));\n  const channel = (v: number) => {\n    const c = v / 255;\n    return c <= 0.03928 ? c / 12.92 : Math.pow((c + 0.055) / 1.055, 2.4);\n  };\n  const luminance =\n    0.2126 * channel(r) + 0.7152 * channel(g) + 0.0722 * channel(b);\n  return luminance > 0.45 ? \"#09090b\" : \"#ffffff\";\n};\n\nconst hexToRgb = (hex: string) => {\n  let cleanHex = hex.replace(/^#/, \"\");\n  if (cleanHex.length === 3)\n    cleanHex = cleanHex\n      .split(\"\")\n      .map((x) => x + x)\n      .join(\"\");\n  const result = /^([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(cleanHex);\n  return result\n    ? `${parseInt(result[1], 16)}, ${parseInt(result[2], 16)}, ${parseInt(result[3], 16)}`\n    : \"99, 102, 241\";\n};\n\nexport const getThemeStyles = (color: string) => {\n  if (colorThemes[color]) {\n    const preset = PRESET_HEX[color];\n    const hex = preset?.hex;\n    const rgb = preset?.rgb;\n    const secondary = preset?.secondary || hex;\n    const style: React.CSSProperties = hex\n      ? ({\n          \"--primary\": hex,\n          \"--primary-foreground\": preset?.panelFg || \"#ffffff\",\n          \"--ring\": hex,\n          \"--theme-color\": hex,\n          \"--theme-color-rgb\": rgb,\n          \"--panel-fg\": preset?.panelFg || \"#ffffff\",\n          \"--brand\": hex,\n          \"--brand-secondary\": secondary,\n        } as React.CSSProperties)\n      : {};\n    return { theme: colorThemes[color], style };\n  }\n\n  if (color && color.startsWith(\"#\")) {\n    const rgb = hexToRgb(color);\n    const fg = contrastingForeground(rgb);\n    return {\n      theme: {\n        bg: \"bg-[var(--theme-color)] text-white hover:opacity-90\",\n        text: \"text-[var(--theme-color)]\",\n        border: \"border-[var(--theme-color)]\",\n        ring: \"focus:ring-[var(--theme-color)]\",\n        focusBorder: \"focus:border-[var(--theme-color)] focus-visible:border-[var(--theme-color)]\",\n        focusRing: \"focus:ring-2 focus:ring-[rgba(var(--theme-color-rgb),0.25)] focus-visible:ring-2 focus-visible:ring-[rgba(var(--theme-color-rgb),0.25)]\",\n        hoverBorder: \"hover:border-[var(--theme-color)]/60\",\n        gradient:\n          \"from-[var(--theme-color)] to-[rgba(var(--theme-color-rgb),0.6)]\",\n        panelFg: \"text-[var(--panel-fg)]\",\n      },\n      style: {\n        \"--primary\": color,\n        \"--primary-foreground\": fg,\n        \"--ring\": color,\n        \"--theme-color\": color,\n        \"--theme-color-rgb\": rgb,\n        \"--panel-fg\": fg,\n        \"--brand\": color,\n        \"--brand-secondary\": color,\n      } as React.CSSProperties,\n    };\n  }\n\n  return {\n    theme: {\n      bg: \"bg-primary text-primary-foreground hover:bg-primary/90\",\n      text: \"text-primary\",\n      border: \"border-primary\",\n      ring: \"focus:ring-primary\",\n      focusBorder: \"focus:border-primary focus-visible:border-primary\",\n      focusRing: \"focus:ring-2 focus:ring-primary/25 focus-visible:ring-2 focus-visible:ring-primary/25\",\n      hoverBorder: \"hover:border-primary/60\",\n      gradient: \"from-primary to-primary/70\",\n      panelFg: \"text-primary-foreground\",\n    },\n    style: {} as React.CSSProperties,\n  };\n};\n",
      "type": "registry:component",
      "target": "components/custom/blocks/login-form-theme.ts"
    }
  ],
  "docs": "Default export: LoginForm. Also exports LoginBlock, getThemeStyles (from login-form-theme.ts, which installs alongside) and the LoginFormValues type. Fields and buttons are the library's input and button items, which install alongside it. `variant` is default | split | glass | minimal | liquid-glass | ribbon-drift. `onSubmit` receives the validated credentials; without it the form simulates a round trip. `signupHref` points at the matching `register-form` page. Validation is client-side presentation only — enforce it again on your server.",
  "categories": [
    "authentication",
    "forms"
  ],
  "type": "registry:component"
}
