{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "auth-card",
  "title": "Auth Card",
  "description": "A sign-in, sign-up and forgot-password card in one: social sign-in buttons, email and password fields with inline validation, a show-password toggle, a password strength meter, a loading state driven by your onSubmit promise and a check-your-email screen.",
  "dependencies": [
    "motion",
    "clsx",
    "tailwind-merge"
  ],
  "files": [
    {
      "path": "registry/new-york/auth-card/auth-card.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\nimport { motion, AnimatePresence, useReducedMotion } from \"motion/react\";\nimport { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nfunction cn(...inputs: ClassValue[]) {\n  return twMerge(clsx(inputs));\n}\n\nexport type AuthMode = \"sign-in\" | \"sign-up\" | \"forgot\";\nexport type AuthProvider = \"google\" | \"github\" | \"apple\";\n\nexport interface AuthSubmitData {\n  mode: AuthMode;\n  email: string;\n  /** Empty in forgot mode. */\n  password: string;\n  /** Sign-up only, when showName is on. */\n  name: string;\n}\n\nexport interface AuthCardProps {\n  mode?: AuthMode;\n  defaultMode?: AuthMode;\n  onModeChange?: (mode: AuthMode) => void;\n  /**\n   * Called with the form data. Return a promise: the button shows a spinner while it runs, and a\n   * rejection (or a resolved string) is shown as the form error. In forgot mode a resolved promise\n   * shows the \"check your email\" screen.\n   */\n  onSubmit?: (data: AuthSubmitData) => void | string | Promise<void | string>;\n  /** Social sign-in buttons, in this order. Pass [] to hide them. */\n  providers?: AuthProvider[];\n  onProviderClick?: (provider: AuthProvider) => void;\n  /** Logo or mark shown above the title. */\n  brand?: React.ReactNode;\n  /** Ask for a name when signing up. */\n  showName?: boolean;\n  /** Minimum password length when signing up. */\n  minPasswordLength?: number;\n  termsHref?: string;\n  privacyHref?: string;\n  theme?: \"dark\" | \"light\";\n  className?: string;\n}\n\nconst PALETTES = {\n  dark: {\n    text: \"#F5F4F1\",\n    muted: \"rgba(245,244,241,0.55)\",\n    faint: \"rgba(245,244,241,0.3)\",\n    panel: \"#0E0E0E\",\n    border: \"rgba(255,255,255,0.1)\",\n    field: \"rgba(255,255,255,0.03)\",\n    fieldBorder: \"rgba(255,255,255,0.12)\",\n    fieldHover: \"rgba(255,255,255,0.24)\",\n    focus: \"rgba(245,244,241,0.85)\",\n    primary: \"#F5F4F1\",\n    onPrimary: \"#0A0A0A\",\n    social: \"rgba(255,255,255,0.04)\",\n    socialHover: \"rgba(255,255,255,0.08)\",\n    error: \"#FF7A6B\",\n    ok: \"#3FBF7F\",\n    meterOff: \"rgba(255,255,255,0.1)\",\n  },\n  light: {\n    text: \"#0A0A0A\",\n    muted: \"rgba(10,10,10,0.55)\",\n    faint: \"rgba(10,10,10,0.3)\",\n    panel: \"#FFFFFF\",\n    border: \"rgba(10,10,10,0.1)\",\n    field: \"#FFFFFF\",\n    fieldBorder: \"rgba(10,10,10,0.16)\",\n    fieldHover: \"rgba(10,10,10,0.3)\",\n    focus: \"rgba(10,10,10,0.85)\",\n    primary: \"#0A0A0A\",\n    onPrimary: \"#FFFFFF\",\n    social: \"#FFFFFF\",\n    socialHover: \"rgba(10,10,10,0.04)\",\n    error: \"#E5484D\",\n    ok: \"#1F9D5C\",\n    meterOff: \"rgba(10,10,10,0.1)\",\n  },\n};\n\ntype Palette = (typeof PALETTES)[\"dark\"];\n\nconst COPY: Record<AuthMode, { title: string; subtitle: string; submit: string }> = {\n  \"sign-in\": { title: \"Welcome back\", subtitle: \"Sign in to your account to continue.\", submit: \"Sign in\" },\n  \"sign-up\": { title: \"Create your account\", subtitle: \"Start in seconds. No credit card required.\", submit: \"Create account\" },\n  forgot: { title: \"Reset your password\", subtitle: \"Enter your email and we'll send you a link to reset it.\", submit: \"Send reset link\" },\n};\n\nconst PROVIDER_LABELS: Record<AuthProvider, string> = { google: \"Google\", github: \"GitHub\", apple: \"Apple\" };\n\n// Simple monochrome marks drawn for this component (not the official logos).\nfunction ProviderMark({ provider }: { provider: AuthProvider }) {\n  const common = { width: 16, height: 16, viewBox: \"0 0 24 24\", \"aria-hidden\": true as const };\n  if (provider === \"google\") {\n    return (\n      <svg {...common} fill=\"none\" stroke=\"currentColor\" strokeWidth={2.2} strokeLinecap=\"round\">\n        <path d=\"M20 12.2h-7.5M19.6 12.2A7.8 7.8 0 1 1 17.3 6.6\" />\n      </svg>\n    );\n  }\n  if (provider === \"github\") {\n    return (\n      <svg {...common} fill=\"currentColor\">\n        <path d=\"M12 2.5a9.5 9.5 0 0 0-3 18.5c.5.1.7-.2.7-.5v-1.7c-2.6.6-3.2-1.2-3.2-1.2-.4-1.1-1-1.4-1-1.4-.9-.6 0-.6 0-.6 1 .1 1.5 1 1.5 1 .9 1.5 2.3 1 2.8.8.1-.6.3-1 .6-1.3-2.1-.2-4.3-1-4.3-4.7 0-1 .4-1.9 1-2.6-.1-.2-.4-1.2.1-2.5 0 0 .8-.3 2.6 1a9 9 0 0 1 4.8 0c1.8-1.3 2.6-1 2.6-1 .5 1.3.2 2.3.1 2.5.6.7 1 1.6 1 2.6 0 3.7-2.2 4.5-4.3 4.7.3.3.6.9.6 1.8v2.6c0 .3.2.6.7.5A9.5 9.5 0 0 0 12 2.5Z\" />\n      </svg>\n    );\n  }\n  return (\n    <svg {...common} fill=\"currentColor\">\n      <path d=\"M16.4 12.6c0-2.4 2-3.5 2.1-3.6a4.5 4.5 0 0 0-3.5-1.9c-1.5-.2-2.9.9-3.7.9-.8 0-1.9-.9-3.2-.8A4.8 4.8 0 0 0 4.1 9.7c-1.7 3-.4 7.4 1.2 9.8.8 1.2 1.8 2.5 3 2.4 1.2 0 1.7-.8 3.1-.8 1.5 0 1.9.8 3.2.8 1.3 0 2.1-1.2 2.9-2.4.9-1.3 1.3-2.7 1.3-2.8-.1 0-2.4-.9-2.4-4.1ZM14.1 5.5c.7-.8 1.1-1.9 1-3-1 0-2.1.7-2.8 1.5-.6.7-1.2 1.8-1 2.9 1.1.1 2.1-.6 2.8-1.4Z\" />\n    </svg>\n  );\n}\n\nfunction Spinner({ color }: { color: string }) {\n  return (\n    <svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\" style={{ animation: \"auth-card-spin 0.7s linear infinite\" }}>\n      <circle cx=\"12\" cy=\"12\" r=\"9\" stroke={color} strokeOpacity=\"0.25\" strokeWidth=\"2.5\" />\n      <path d=\"M21 12a9 9 0 0 0-9-9\" stroke={color} strokeWidth=\"2.5\" strokeLinecap=\"round\" />\n      <style>{\"@keyframes auth-card-spin { to { transform: rotate(360deg); } }\"}</style>\n    </svg>\n  );\n}\n\nconst EMAIL = /^[^\\s@]+@[^\\s@]+\\.[^\\s@]{2,}$/;\n\n/** 0 to 4: length, mixed case, a number, a symbol. */\nexport function passwordScore(pw: string, min = 8) {\n  if (!pw) return 0;\n  let s = 0;\n  if (pw.length >= min) s++;\n  if (/[a-z]/.test(pw) && /[A-Z]/.test(pw)) s++;\n  if (/\\d/.test(pw)) s++;\n  if (/[^A-Za-z0-9]/.test(pw)) s++;\n  return pw.length < min ? Math.min(s, 1) : s;\n}\n\nconst SCORE_LABELS = [\"\", \"Weak\", \"Fair\", \"Good\", \"Strong\"];\n\ninterface FieldProps {\n  id: string;\n  label: string;\n  type: string;\n  value: string;\n  onChange: (v: string) => void;\n  onBlur: () => void;\n  autoComplete: string;\n  error?: string;\n  disabled: boolean;\n  p: Palette;\n  trailing?: React.ReactNode;\n  labelAside?: React.ReactNode;\n  placeholder?: string;\n}\n\nfunction Field({ id, label, type, value, onChange, onBlur, autoComplete, error, disabled, p, trailing, labelAside, placeholder }: FieldProps) {\n  const [focus, setFocus] = React.useState(false);\n  const [hover, setHover] = React.useState(false);\n  const border = error ? p.error : focus ? p.focus : hover ? p.fieldHover : p.fieldBorder;\n  return (\n    <div className=\"flex flex-col\" style={{ gap: 6 }}>\n      <div className=\"flex items-baseline justify-between\">\n        <label htmlFor={id} className=\"text-[13px] font-medium\" style={{ color: p.text }}>\n          {label}\n        </label>\n        {labelAside}\n      </div>\n      <div\n        className=\"flex items-center\"\n        style={{\n          height: 42,\n          borderRadius: 11,\n          background: p.field,\n          border: `1px solid ${border}`,\n          boxShadow: focus ? `0 0 0 3px color-mix(in srgb, ${error ? p.error : p.focus} 14%, transparent)` : \"none\",\n          transition: \"border-color 0.16s ease, box-shadow 0.16s ease\",\n        }}\n        onMouseEnter={() => setHover(true)}\n        onMouseLeave={() => setHover(false)}\n      >\n        <input\n          id={id}\n          type={type}\n          value={value}\n          placeholder={placeholder}\n          autoComplete={autoComplete}\n          disabled={disabled}\n          aria-invalid={error ? true : undefined}\n          aria-describedby={error ? `${id}-error` : undefined}\n          onChange={(e) => onChange(e.target.value)}\n          onFocus={() => setFocus(true)}\n          onBlur={() => {\n            setFocus(false);\n            onBlur();\n          }}\n          className=\"h-full min-w-0 flex-1 border-none bg-transparent text-[14px] outline-none placeholder:text-[color:var(--auth-ph)] disabled:opacity-60\"\n          style={{ padding: \"0 12px\", color: p.text, [\"--auth-ph\" as string]: p.faint }}\n        />\n        {trailing}\n      </div>\n      <AnimatePresence initial={false}>\n        {error && (\n          <motion.p\n            key=\"err\"\n            id={`${id}-error`}\n            className=\"m-0 overflow-hidden text-[12.5px]\"\n            style={{ color: p.error }}\n            initial={{ opacity: 0, height: 0 }}\n            animate={{ opacity: 1, height: \"auto\" }}\n            exit={{ opacity: 0, height: 0 }}\n            transition={{ duration: 0.16 }}\n          >\n            {error}\n          </motion.p>\n        )}\n      </AnimatePresence>\n    </div>\n  );\n}\n\nexport function AuthCard({\n  mode,\n  defaultMode = \"sign-in\",\n  onModeChange,\n  onSubmit,\n  providers = [\"google\", \"github\"],\n  onProviderClick,\n  brand,\n  showName = true,\n  minPasswordLength = 8,\n  termsHref,\n  privacyHref,\n  theme = \"dark\",\n  className,\n}: AuthCardProps) {\n  const p = PALETTES[theme];\n  const uid = React.useId();\n  const reduce = Boolean(useReducedMotion());\n  const [internalMode, setInternalMode] = React.useState<AuthMode>(defaultMode);\n  const current = mode ?? internalMode;\n  const [name, setName] = React.useState(\"\");\n  const [email, setEmail] = React.useState(\"\");\n  const [password, setPassword] = React.useState(\"\");\n  const [showPassword, setShowPassword] = React.useState(false);\n  const [touched, setTouched] = React.useState<Record<string, boolean>>({});\n  const [submitted, setSubmitted] = React.useState(false);\n  const [loading, setLoading] = React.useState(false);\n  const [formError, setFormError] = React.useState<string | null>(null);\n  const [sentTo, setSentTo] = React.useState<string | null>(null);\n\n  const isSignUp = current === \"sign-up\";\n  const isForgot = current === \"forgot\";\n\n  const errors: Record<string, string | undefined> = {\n    name: isSignUp && showName && !name.trim() ? \"Enter your name.\" : undefined,\n    email: !email.trim() ? \"Enter your email.\" : !EMAIL.test(email.trim()) ? \"Enter a valid email address.\" : undefined,\n    password: isForgot ? undefined : !password ? \"Enter your password.\" : isSignUp && password.length < minPasswordLength ? `Use at least ${minPasswordLength} characters.` : undefined,\n  };\n  const shown = (field: string) => (touched[field] || submitted ? errors[field] : undefined);\n  const score = passwordScore(password, minPasswordLength);\n\n  const switchMode = (next: AuthMode) => {\n    if (loading) return;\n    if (mode === undefined) setInternalMode(next);\n    onModeChange?.(next);\n    setTouched({});\n    setSubmitted(false);\n    setFormError(null);\n    setSentTo(null);\n    setPassword(\"\");\n  };\n\n  const submit = async (e: React.FormEvent) => {\n    e.preventDefault();\n    setSubmitted(true);\n    setFormError(null);\n    const fields = isForgot ? [\"email\"] : isSignUp && showName ? [\"name\", \"email\", \"password\"] : [\"email\", \"password\"];\n    if (fields.some((f) => errors[f])) return;\n    const data: AuthSubmitData = { mode: current, email: email.trim(), password: isForgot ? \"\" : password, name: isSignUp && showName ? name.trim() : \"\" };\n    try {\n      setLoading(true);\n      const result = await onSubmit?.(data);\n      setLoading(false);\n      if (typeof result === \"string\" && result) setFormError(result);\n      else if (isForgot) setSentTo(data.email);\n    } catch (err) {\n      setLoading(false);\n      setFormError(err instanceof Error && err.message ? err.message : \"Something went wrong. Please try again.\");\n    }\n  };\n\n  const copy = COPY[current];\n  const spring = reduce ? { duration: 0 } : { type: \"spring\" as const, stiffness: 420, damping: 38 };\n  const link = \"cursor-pointer border-none bg-transparent p-0 font-medium underline-offset-[3px] hover:underline focus-visible:underline outline-none\";\n\n  return (\n    <motion.div\n      layout={!reduce}\n      transition={spring}\n      className={cn(\"flex w-full max-w-[400px] flex-col\", className)}\n      style={{ padding: 28, borderRadius: 20, background: p.panel, border: `1px solid ${p.border}`, fontFamily: \"Inter, sans-serif\", color: p.text, overflow: \"hidden\" }}\n    >\n      <motion.div layout={!reduce ? \"position\" : false} className=\"flex flex-col items-start\" style={{ gap: 6, marginBottom: 22 }}>\n        {brand && <div style={{ marginBottom: 10 }}>{brand}</div>}\n        <AnimatePresence mode=\"popLayout\" initial={false}>\n          <motion.div\n            key={sentTo ? \"sent\" : current}\n            className=\"flex flex-col\"\n            style={{ gap: 6 }}\n            initial={reduce ? { opacity: 0 } : { opacity: 0, y: 6 }}\n            animate={{ opacity: 1, y: 0 }}\n            exit={reduce ? { opacity: 0 } : { opacity: 0, y: -6 }}\n            transition={{ duration: 0.18 }}\n          >\n            <h2 className=\"m-0 text-[22px] font-semibold tracking-[-0.02em]\">{sentTo ? \"Check your email\" : copy.title}</h2>\n            <p className=\"m-0 text-[14px] leading-relaxed\" style={{ color: p.muted }}>\n              {sentTo ? (\n                <>\n                  We sent a reset link to <span style={{ color: p.text, fontWeight: 500 }}>{sentTo}</span>. It may take a minute to arrive.\n                </>\n              ) : (\n                copy.subtitle\n              )}\n            </p>\n          </motion.div>\n        </AnimatePresence>\n      </motion.div>\n\n      <AnimatePresence mode=\"popLayout\" initial={false}>\n        {sentTo ? (\n          <motion.div key=\"sent\" className=\"flex flex-col\" style={{ gap: 12 }} initial={{ opacity: 0 }} animate={{ opacity: 1 }} exit={{ opacity: 0 }} transition={{ duration: 0.18 }}>\n            <button\n              type=\"button\"\n              onClick={() => switchMode(\"sign-in\")}\n              className=\"flex cursor-pointer items-center justify-center border-none text-[14px] font-semibold outline-none focus-visible:ring-2\"\n              style={{ height: 42, borderRadius: 11, background: p.primary, color: p.onPrimary, [\"--tw-ring-color\" as string]: p.focus }}\n            >\n              Back to sign in\n            </button>\n            <p className=\"m-0 text-center text-[13px]\" style={{ color: p.muted }}>\n              Didn&apos;t get it?{\" \"}\n              <button type=\"button\" className={link} style={{ color: p.text }} onClick={() => setSentTo(null)}>\n                Try again\n              </button>\n            </p>\n          </motion.div>\n        ) : (\n          <motion.form key=\"form\" noValidate onSubmit={submit} className=\"flex flex-col\" style={{ gap: 14 }} initial={{ opacity: 0 }} animate={{ opacity: 1 }} exit={{ opacity: 0 }} transition={{ duration: 0.18 }}>\n            {!isForgot && providers.length > 0 && (\n              <>\n                <div className=\"grid\" style={{ gap: 8, gridTemplateColumns: `repeat(${Math.min(providers.length, 3)}, minmax(0, 1fr))` }}>\n                  {providers.map((pr) => (\n                    <button\n                      key={pr}\n                      type=\"button\"\n                      disabled={loading}\n                      onClick={() => onProviderClick?.(pr)}\n                      aria-label={`Continue with ${PROVIDER_LABELS[pr]}`}\n                      className=\"flex cursor-pointer items-center justify-center text-[13.5px] font-medium outline-none transition-colors hover:bg-[var(--auth-social-hover)] focus-visible:ring-2 disabled:cursor-not-allowed disabled:opacity-60\"\n                      style={{ height: 42, gap: 8, borderRadius: 11, background: p.social, border: `1px solid ${p.fieldBorder}`, color: p.text, [\"--auth-social-hover\" as string]: p.socialHover, [\"--tw-ring-color\" as string]: p.focus }}\n                    >\n                      <ProviderMark provider={pr} />\n                      {providers.length < 3 && <span>{PROVIDER_LABELS[pr]}</span>}\n                    </button>\n                  ))}\n                </div>\n                <div className=\"flex items-center text-[12px]\" style={{ gap: 12, color: p.faint }} aria-hidden=\"true\">\n                  <span className=\"h-px flex-1\" style={{ background: p.border }} />\n                  or continue with email\n                  <span className=\"h-px flex-1\" style={{ background: p.border }} />\n                </div>\n              </>\n            )}\n\n            <AnimatePresence initial={false}>\n              {isSignUp && showName && (\n                <motion.div key=\"name\" className=\"overflow-hidden\" initial={{ opacity: 0, height: 0 }} animate={{ opacity: 1, height: \"auto\" }} exit={{ opacity: 0, height: 0 }} transition={{ duration: 0.2 }}>\n                  <Field id={`${uid}-name`} label=\"Name\" type=\"text\" value={name} onChange={setName} onBlur={() => setTouched((t) => ({ ...t, name: true }))} autoComplete=\"name\" error={shown(\"name\")} disabled={loading} p={p} placeholder=\"Ada Lovelace\" />\n                </motion.div>\n              )}\n            </AnimatePresence>\n\n            <Field id={`${uid}-email`} label=\"Email\" type=\"email\" value={email} onChange={setEmail} onBlur={() => setTouched((t) => ({ ...t, email: true }))} autoComplete=\"email\" error={shown(\"email\")} disabled={loading} p={p} placeholder=\"you@company.com\" />\n\n            <AnimatePresence initial={false}>\n              {!isForgot && (\n                <motion.div key=\"password\" className=\"flex flex-col overflow-hidden\" style={{ gap: 8 }} initial={{ opacity: 0, height: 0 }} animate={{ opacity: 1, height: \"auto\" }} exit={{ opacity: 0, height: 0 }} transition={{ duration: 0.2 }}>\n                  <Field\n                    id={`${uid}-password`}\n                    label=\"Password\"\n                    type={showPassword ? \"text\" : \"password\"}\n                    value={password}\n                    onChange={setPassword}\n                    onBlur={() => setTouched((t) => ({ ...t, password: true }))}\n                    autoComplete={isSignUp ? \"new-password\" : \"current-password\"}\n                    error={shown(\"password\")}\n                    disabled={loading}\n                    p={p}\n                    placeholder={isSignUp ? `At least ${minPasswordLength} characters` : \"Your password\"}\n                    labelAside={\n                      !isSignUp ? (\n                        <button type=\"button\" className={cn(link, \"text-[12.5px]\")} style={{ color: p.muted }} onClick={() => switchMode(\"forgot\")}>\n                          Forgot password?\n                        </button>\n                      ) : undefined\n                    }\n                    trailing={\n                      <button\n                        type=\"button\"\n                        onClick={() => setShowPassword((s) => !s)}\n                        aria-label={showPassword ? \"Hide password\" : \"Show password\"}\n                        aria-pressed={showPassword}\n                        className=\"flex shrink-0 cursor-pointer items-center justify-center border-none bg-transparent outline-none focus-visible:ring-2\"\n                        style={{ width: 36, height: 36, marginRight: 3, borderRadius: 9, color: p.muted, [\"--tw-ring-color\" as string]: p.focus }}\n                      >\n                        <svg width=\"17\" height=\"17\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.7\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\">\n                          <path d=\"M2.5 12s3.5-6.5 9.5-6.5 9.5 6.5 9.5 6.5-3.5 6.5-9.5 6.5S2.5 12 2.5 12Z\" />\n                          <circle cx=\"12\" cy=\"12\" r=\"2.8\" />\n                          {!showPassword && <path d=\"m4 4 16 16\" />}\n                        </svg>\n                      </button>\n                    }\n                  />\n                  {isSignUp && password.length > 0 && (\n                    <div className=\"flex items-center\" style={{ gap: 10 }} aria-live=\"polite\">\n                      <div className=\"flex flex-1\" style={{ gap: 4 }} aria-hidden=\"true\">\n                        {[1, 2, 3, 4].map((n) => (\n                          <span\n                            key={n}\n                            className=\"h-1 flex-1 rounded-full\"\n                            style={{ background: n <= score ? (score <= 1 ? p.error : score === 2 ? \"#F2A841\" : p.ok) : p.meterOff, transition: \"background 0.2s ease\" }}\n                          />\n                        ))}\n                      </div>\n                      <span className=\"w-12 text-right text-[12px]\" style={{ color: p.muted }}>\n                        <span className=\"sr-only\">Password strength: </span>\n                        {SCORE_LABELS[score]}\n                      </span>\n                    </div>\n                  )}\n                </motion.div>\n              )}\n            </AnimatePresence>\n\n            <AnimatePresence initial={false}>\n              {formError && (\n                <motion.div\n                  key=\"form-error\"\n                  role=\"alert\"\n                  className=\"overflow-hidden text-[13px]\"\n                  style={{ color: p.error }}\n                  initial={{ opacity: 0, height: 0 }}\n                  animate={{ opacity: 1, height: \"auto\" }}\n                  exit={{ opacity: 0, height: 0 }}\n                  transition={{ duration: 0.16 }}\n                >\n                  <div style={{ padding: \"10px 12px\", borderRadius: 10, background: `color-mix(in srgb, ${p.error} 10%, transparent)`, border: `1px solid color-mix(in srgb, ${p.error} 30%, transparent)` }}>{formError}</div>\n                </motion.div>\n              )}\n            </AnimatePresence>\n\n            <motion.button\n              type=\"submit\"\n              disabled={loading}\n              aria-busy={loading || undefined}\n              whileTap={loading || reduce ? undefined : { scale: 0.98 }}\n              className=\"flex cursor-pointer items-center justify-center border-none text-[14px] font-semibold outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-wait\"\n              style={{ height: 42, gap: 8, marginTop: 4, borderRadius: 11, background: p.primary, color: p.onPrimary, opacity: loading ? 0.8 : 1, [\"--tw-ring-color\" as string]: p.focus, [\"--tw-ring-offset-color\" as string]: p.panel }}\n            >\n              {loading && <Spinner color={p.onPrimary} />}\n              {copy.submit}\n            </motion.button>\n\n            {isSignUp && (termsHref || privacyHref) && (\n              <p className=\"m-0 text-center text-[12px] leading-relaxed\" style={{ color: p.faint }}>\n                By creating an account you agree to our{\" \"}\n                {termsHref && (\n                  <a href={termsHref} className=\"underline underline-offset-2\" style={{ color: p.muted }}>\n                    Terms\n                  </a>\n                )}\n                {termsHref && privacyHref && \" and \"}\n                {privacyHref && (\n                  <a href={privacyHref} className=\"underline underline-offset-2\" style={{ color: p.muted }}>\n                    Privacy Policy\n                  </a>\n                )}\n                .\n              </p>\n            )}\n\n            <p className=\"m-0 text-center text-[13px]\" style={{ color: p.muted }}>\n              {isForgot ? (\n                <>\n                  Remembered it?{\" \"}\n                  <button type=\"button\" className={link} style={{ color: p.text }} onClick={() => switchMode(\"sign-in\")}>\n                    Back to sign in\n                  </button>\n                </>\n              ) : isSignUp ? (\n                <>\n                  Already have an account?{\" \"}\n                  <button type=\"button\" className={link} style={{ color: p.text }} onClick={() => switchMode(\"sign-in\")}>\n                    Sign in\n                  </button>\n                </>\n              ) : (\n                <>\n                  Don&apos;t have an account?{\" \"}\n                  <button type=\"button\" className={link} style={{ color: p.text }} onClick={() => switchMode(\"sign-up\")}>\n                    Sign up\n                  </button>\n                </>\n              )}\n            </p>\n          </motion.form>\n        )}\n      </AnimatePresence>\n    </motion.div>\n  );\n}\n\nexport default AuthCard;\n",
      "type": "registry:component"
    }
  ],
  "type": "registry:component"
}