{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"sign-in-form","type":"registry:ui","title":"Sign in form","description":"An email and password form with provider buttons and clear errors.","dependencies":["@radix-ui/react-slot","clsx","lucide-react","tailwind-merge"],"registryDependencies":["https://caliperui.site/r/styles.json"],"files":[{"path":"ui/alert.tsx","type":"registry:ui","target":"components/ui/alert.tsx","content":"\"use client\";\n\nimport { X } from \"lucide-react\";\nimport { useId, type ComponentProps, type ReactNode } from \"react\";\nimport { Button } from \"./button\";\nimport { FeedbackIcon, type FeedbackVariant } from \"./feedback\";\nimport { cn } from \"./lib/cn\";\nimport \"./shared/alert.css\";\nimport \"./alert.css\";\n\nexport type AlertProps = Omit<ComponentProps<\"div\">, \"title\"> & {\n  title: ReactNode;\n  variant?: FeedbackVariant;\n  loading?: boolean;\n  action?: ReactNode;\n  onDismiss?: () => void;\n};\n\nexport function Alert({\n  title,\n  variant = \"neutral\",\n  loading = false,\n  children,\n  action,\n  onDismiss,\n  className,\n  ...props\n}: AlertProps) {\n  const titleId = useId();\n  return (\n    <div\n      data-slot=\"alert\"\n      data-variant={loading ? \"neutral\" : variant}\n      role={!loading && variant === \"error\" ? \"alert\" : \"status\"}\n      aria-busy={loading || undefined}\n      aria-atomic=\"true\"\n      aria-labelledby={titleId}\n      className={cn(\n        \"grid min-w-0 grid-cols-[2rem_minmax(0,1fr)_auto] items-start gap-3 rounded-overlay border border-border bg-surface p-4 text-sm text-foreground [overflow-wrap:anywhere]\",\n        className,\n      )}\n      {...props}\n    >\n      <FeedbackIcon variant={variant} loading={loading} />\n      <div data-slot=\"feedback-copy\" className=\"min-w-0 pt-1\">\n        <div id={titleId} data-slot=\"feedback-title\" className=\"font-semibold leading-5\">\n          <span key={loading ? \"loading\" : variant} data-slot=\"feedback-message\">{title}</span>\n        </div>\n        {children != null && (\n          <div data-slot=\"feedback-description\" className=\"mt-1 text-sm leading-5 text-muted-foreground\">\n            <span key={loading ? \"loading\" : variant} data-slot=\"feedback-message\">{children}</span>\n          </div>\n        )}\n        {action != null && (\n          <div data-slot=\"feedback-action\" className=\"mt-3 flex max-w-full flex-wrap items-center gap-2\">\n            {action}\n          </div>\n        )}\n      </div>\n      {onDismiss && (\n        <Button\n          variant=\"ghost\"\n          size=\"icon\"\n          className=\"-mt-1 -mr-1\"\n          aria-label=\"Dismiss alert\"\n          onClick={onDismiss}\n        >\n          <X aria-hidden=\"true\" />\n        </Button>\n      )}\n    </div>\n  );\n}\n"},{"path":"ui/button.tsx","type":"registry:ui","target":"components/ui/button.tsx","content":"\"use client\";\n\nimport { Slot, Slottable } from \"@radix-ui/react-slot\";\nimport { LoaderCircle } from \"lucide-react\";\nimport {\n  useLayoutEffect,\n  useRef,\n  useState,\n  type ComponentProps,\n  type ReactNode,\n} from \"react\";\nimport { cn } from \"./lib/cn\";\nimport \"./shared/loading-indicator.css\";\nimport \"./button.css\";\n\n/* Colour, material and press live in button.css keyed on data-variant, so a\n   consumer's utility classes still override them. Raised to press: the\n   button sinks 1px into an inner shade instead of scaling. */\nconst variants = {\n  default: \"\",\n  secondary: \"\",\n  ghost: \"\",\n  destructive: \"\",\n};\n\nconst sizes = {\n  sm: \"h-8 gap-1.5 rounded-full px-3 text-[13px] max-md:min-h-11 [@media(pointer:coarse)]:min-h-11\",\n  md: \"h-[var(--control-height)] gap-2 rounded-full px-3.5 text-sm\",\n  lg: \"h-11 gap-2 rounded-full px-[18px] text-[15px]\",\n  icon: \"size-[var(--control-height)] rounded-full p-0\",\n};\n\nexport type ButtonProps = ComponentProps<\"button\"> & {\n  variant?: keyof typeof variants;\n  size?: keyof typeof sizes;\n  asChild?: boolean;\n  /** Shows a spinner over the label and swallows clicks while keeping focus and width. */\n  loading?: boolean;\n  /** Animate a meaningful label/icon change, such as saving → saved. */\n  feedbackKey?: string;\n};\n\nexport function Button({\n  className,\n  variant = \"default\",\n  size = \"md\",\n  asChild = false,\n  loading = false,\n  feedbackKey,\n  disabled,\n  \"aria-disabled\": ariaDisabled,\n  children,\n  onClick,\n  onClickCapture,\n  tabIndex,\n  type = \"button\",\n  ...props\n}: ButtonProps) {\n  const Component = asChild ? Slot : \"button\";\n  const nativeDisabled = Boolean(disabled);\n  const blocked =\n    nativeDisabled ||\n    loading ||\n    ariaDisabled === true ||\n    ariaDisabled === \"true\";\n\n  return (\n    <Component\n      data-slot=\"button\"\n      data-variant={variant}\n      data-size={size}\n      type={asChild ? undefined : type}\n      className={cn(\n        \"relative inline-flex shrink-0 items-center justify-center whitespace-nowrap border border-transparent font-medium tracking-[-0.006em] outline-none focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring disabled:pointer-events-none aria-disabled:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0\",\n        variants[variant],\n        sizes[size],\n        className,\n      )}\n      disabled={asChild ? undefined : nativeDisabled}\n      aria-disabled={nativeDisabled || ariaDisabled ? true : undefined}\n      aria-busy={loading || undefined}\n      tabIndex={asChild && nativeDisabled ? -1 : tabIndex}\n      {...props}\n      onKeyDown={(event) => {\n        if (blocked && (event.key === \"Enter\" || event.key === \" \")) {\n          event.preventDefault();\n        }\n        props.onKeyDown?.(event);\n      }}\n      onClickCapture={(event) => {\n        if (blocked) {\n          event.preventDefault();\n          event.stopPropagation();\n          return;\n        }\n        onClickCapture?.(event);\n      }}\n      onClick={onClick}\n    >\n      {loading && asChild && (\n        <LoaderCircle data-slot=\"loading-indicator\" aria-hidden=\"true\" />\n      )}\n      {loading && !asChild && feedbackKey === undefined && (\n        <span data-slot=\"button-busy\" aria-hidden=\"true\">\n          <LoaderCircle data-slot=\"loading-indicator\" />\n        </span>\n      )}\n      <Slottable>\n        {loading && !asChild && feedbackKey === undefined ? (\n          <span data-slot=\"button-label\" data-hidden=\"true\">\n            {children}\n          </span>\n        ) : feedbackKey !== undefined && !asChild ? (\n          <ButtonFeedback stateKey={feedbackKey}>\n            {loading && (\n              <LoaderCircle data-slot=\"loading-indicator\" aria-hidden=\"true\" />\n            )}\n            {children}\n          </ButtonFeedback>\n        ) : (\n          children\n        )}\n      </Slottable>\n    </Component>\n  );\n}\n\nfunction ButtonFeedback({\n  stateKey,\n  children,\n}: {\n  stateKey: string;\n  children: ReactNode;\n}) {\n  const content = useRef<HTMLSpanElement>(null);\n  const [initialKey] = useState(stateKey);\n  const [width, setWidth] = useState<number>();\n  useLayoutEffect(() => {\n    const element = content.current;\n    if (!element) return;\n    const measure = () => setWidth(element.offsetWidth);\n    measure();\n    const observer = new ResizeObserver(measure);\n    observer.observe(element);\n    return () => observer.disconnect();\n  }, [stateKey]);\n  return (\n    <span data-slot=\"button-feedback\" style={{ width }}>\n      <span\n        key={stateKey}\n        ref={content}\n        data-slot=\"button-feedback-label\"\n        data-enter={stateKey !== initialKey}\n      >\n        {children}\n      </span>\n    </span>\n  );\n}\n"},{"path":"ui/checkbox.tsx","type":"registry:ui","target":"components/ui/checkbox.tsx","content":"\"use client\";\n\nimport {\n  useImperativeHandle,\n  useLayoutEffect,\n  useRef,\n  type ComponentProps,\n} from \"react\";\nimport \"./checkbox.css\";\n\nexport type CheckboxProps = Omit<ComponentProps<\"input\">, \"type\"> & {\n  indeterminate?: boolean;\n};\n\nexport function Checkbox({\n  ref,\n  indeterminate = false,\n  ...props\n}: CheckboxProps) {\n  const input = useRef<HTMLInputElement>(null);\n  useImperativeHandle(ref, () => input.current!, []);\n\n  // Native activation clears mixed state. Derive this prop from the group's\n  // selection; synchronize again whenever the caller renders that state.\n  useLayoutEffect(() => {\n    if (input.current) input.current.indeterminate = indeterminate;\n  });\n\n  return (\n    <span data-slot=\"checkbox-root\">\n      <input data-slot=\"checkbox\" {...props} type=\"checkbox\" ref={input} />\n      <span data-slot=\"checkbox-indicator\" aria-hidden=\"true\">\n        <svg viewBox=\"0 0 12 12\" fill=\"none\">\n          <path data-mark=\"check\" d=\"M2.5 6.2 5 8.5l4.5-5\" />\n          <path data-mark=\"mixed\" d=\"M3 6h6\" />\n        </svg>\n      </span>\n    </span>\n  );\n}\n"},{"path":"ui/feedback.tsx","type":"registry:ui","target":"components/ui/feedback.tsx","content":"import { CircleCheck, CircleX, Info, LoaderCircle, TriangleAlert } from \"lucide-react\";\nimport \"./feedback.css\";\n\nexport type FeedbackVariant = \"neutral\" | \"success\" | \"warning\" | \"error\";\n\nconst icons = {\n  neutral: Info,\n  success: CircleCheck,\n  warning: TriangleAlert,\n  error: CircleX,\n};\n\nexport function FeedbackIcon({\n  variant,\n  loading = false,\n}: {\n  variant: FeedbackVariant;\n  loading?: boolean;\n}) {\n  const Icon = loading ? LoaderCircle : icons[variant];\n  return (\n    <span data-slot=\"feedback-icon\" aria-hidden=\"true\">\n      <span data-slot=\"feedback-symbol\" key={loading ? \"loading\" : variant}>\n        <Icon data-slot={loading ? \"loading-indicator\" : undefined} />\n      </span>\n    </span>\n  );\n}\n"},{"path":"ui/field.tsx","type":"registry:ui","target":"components/ui/field.tsx","content":"\"use client\";\nimport { CircleAlert, CircleCheck, LoaderCircle } from \"lucide-react\";\nimport { useId, type ReactNode } from \"react\";\nimport { Label } from \"./label\";\nimport { cn } from \"./lib/cn\";\nimport \"./shared/field-message.css\";\nimport \"./shared/loading-indicator.css\";\nimport \"./field.css\";\n\nexport type FieldControlProps = {\n  id: string;\n  \"aria-describedby\"?: string;\n  \"aria-invalid\"?: true;\n  \"aria-required\"?: true;\n};\n\nexport const isEmail = (value: string) => /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(value.trim());\n\n/**\n * A label, a control and one message line wired together for assistive\n * technology. Hint, async status and error share the same reserved line and\n * rewrite it in place, so validation never pushes the next field down.\n */\nexport function Field({\n  label,\n  description,\n  error,\n  status,\n  statusTone = \"pending\",\n  count,\n  required,\n  optional,\n  action,\n  className,\n  children,\n}: {\n  label: string;\n  /** Hint shown on the message line until a status or error replaces it. */\n  description?: ReactNode;\n  /** Replaces the hint and is announced when it appears. */\n  error?: string;\n  /** An async result such as “Checking availability…” or “Available”. */\n  status?: string;\n  statusTone?: \"pending\" | \"success\";\n  /** Right-aligned counter on the message line, e.g. “6 / 40”. */\n  count?: string;\n  required?: boolean;\n  /** Adds \"(optional)\" after the label. */\n  optional?: boolean;\n  /** Something aligned with the label, such as a \"Forgot password?\" link. */\n  action?: ReactNode;\n  className?: string;\n  children: (props: FieldControlProps) => ReactNode;\n}) {\n  const id = useId();\n  const message = `${id}-message`;\n  const hasMessage = Boolean(error || status || description || count);\n  const tone = error ? \"error\" : status ? statusTone : \"hint\";\n  return (\n    <div data-slot=\"field\" className={cn(\"grid gap-1.5\", className)}>\n      <div className=\"flex items-baseline justify-between gap-3\">\n        <Label htmlFor={id}>\n          {label}\n          {optional && <span className=\"ml-1 font-normal text-muted-foreground\">(optional)</span>}\n        </Label>\n        {action}\n      </div>\n      {children({\n        id,\n        \"aria-describedby\": hasMessage ? message : undefined,\n        \"aria-invalid\": error ? true : undefined,\n        \"aria-required\": required ? true : undefined,\n      })}\n      <p id={message} data-slot=\"field-message\" data-tone={tone} aria-live={error ? \"assertive\" : \"polite\"} role={error ? \"alert\" : undefined}>\n        {tone === \"error\" && <CircleAlert aria-hidden=\"true\" />}\n        {tone === \"success\" && <CircleCheck aria-hidden=\"true\" />}\n        {tone === \"pending\" && <LoaderCircle data-slot=\"loading-indicator\" aria-hidden=\"true\" />}\n        <span data-slot=\"field-error\" className=\"min-w-0 flex-1\">{error ?? status ?? description}</span>\n        {count && <span data-slot=\"field-count\">{count}</span>}\n      </p>\n    </div>\n  );\n}\n"},{"path":"ui/input.tsx","type":"registry:ui","target":"components/ui/input.tsx","content":"import type { ComponentProps, ReactNode } from \"react\";\nimport { cn } from \"./lib/cn\";\nimport \"./shared/input.css\";\nimport \"./shared/input-2.css\";\nimport \"./shared/input-group.css\";\nimport \"./input.css\";\n\nconst fieldText =\n  \"w-full min-w-0 text-base text-foreground outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed md:text-sm\";\n\nexport type InputProps = ComponentProps<\"input\"> & {\n  /** Fixed text or an icon before the value, e.g. \"caliper.app/\". */\n  leading?: ReactNode;\n  /** Text, an icon or a status after the value, e.g. a spinner or a count. */\n  trailing?: ReactNode;\n};\n\n/**\n * A recessed text field. Fields sit slightly below the paper (an inner shade\n * and a 3:1 ring); buttons stand on it, so what you fill and what you press\n * never look alike.\n */\nexport function Input({ className, leading, trailing, ...props }: InputProps) {\n  if (leading === undefined && trailing === undefined) {\n    return (\n      <input\n        data-slot=\"input\"\n        className={cn(\"flex h-[var(--control-height)] rounded-button px-3\", fieldText, className)}\n        {...props}\n      />\n    );\n  }\n  return (\n    <span\n      data-slot=\"input-group\"\n      data-disabled={props.disabled || undefined}\n      data-invalid={props[\"aria-invalid\"] === true || props[\"aria-invalid\"] === \"true\" || undefined}\n      data-readonly={props.readOnly || undefined}\n      className={cn(\"flex h-[var(--control-height)] w-full min-w-0 items-center gap-2 rounded-button px-3\", className)}\n    >\n      {leading !== undefined && <span data-slot=\"input-affix\">{leading}</span>}\n      <input data-slot=\"input-bare\" className={cn(\"h-full flex-1 bg-transparent\", fieldText)} {...props} />\n      {trailing !== undefined && <span data-slot=\"input-trailing\">{trailing}</span>}\n    </span>\n  );\n}\n"},{"path":"ui/label.tsx","type":"registry:ui","target":"components/ui/label.tsx","content":"import type { ComponentProps } from \"react\";\nimport { cn } from \"./lib/cn\";\n\nexport function Label({ className, ...props }: ComponentProps<\"label\">) {\n  return (\n    <label\n      data-slot=\"label\"\n      className={cn(\n        \"inline-block max-w-full text-sm leading-5 font-medium [overflow-wrap:anywhere]\",\n        className,\n      )}\n      {...props}\n    />\n  );\n}\n"},{"path":"ui/lib/cn.ts","type":"registry:ui","target":"components/ui/lib/cn.ts","content":"import { clsx, type ClassValue } from \"clsx\";\nimport { extendTailwindMerge } from \"tailwind-merge\";\n\nconst twMerge = extendTailwindMerge({\n  extend: { theme: { radius: [\"control\", \"surface\", \"overlay\"], shadow: [\"overlay\"] } },\n});\n\nexport function cn(...inputs: ClassValue[]) {\n  return twMerge(clsx(inputs));\n}\n"},{"path":"ui/password-field.tsx","type":"registry:ui","target":"components/ui/password-field.tsx","content":"\"use client\";\n\nimport { Eye } from \"lucide-react\";\nimport { useId, useState, type ComponentProps } from \"react\";\nimport { Input } from \"./input\";\nimport { Label } from \"./label\";\nimport { cn } from \"./lib/cn\";\nimport \"./shared/chip-option.css\";\nimport \"./password-field.css\";\n\nexport function PasswordField({\n  label,\n  description,\n  id,\n  messages,\n  className,\n  onFocus,\n  onBlur,\n  onKeyUp,\n  ...props\n}: {\n  label: string;\n  description?: string;\n  messages?: { show?: string; hide?: string };\n} & Omit<ComponentProps<\"input\">, \"type\">) {\n  const generated = useId();\n  const fieldId = id ?? generated;\n  const descriptionId = `${fieldId}-description`;\n  const capsId = `${fieldId}-caps`;\n  const [visible, setVisible] = useState(false);\n  const [caps, setCaps] = useState(false);\n  const [focused, setFocused] = useState(false);\n  const show = messages?.show ?? \"Show password\";\n  const hide = messages?.hide ?? \"Hide password\";\n  const describedBy = [description ? descriptionId : null, focused && caps ? capsId : null].filter(Boolean).join(\" \") || undefined;\n\n  return (\n    <div className={cn(\"grid content-start gap-1.5\", className)}>\n      <Label htmlFor={fieldId}>{label}</Label>\n      <div className=\"relative\">\n        <Input\n          {...props}\n          id={fieldId}\n          type={visible ? \"text\" : \"password\"}\n          spellCheck={false}\n          autoCapitalize=\"off\"\n          autoCorrect=\"off\"\n          aria-describedby={describedBy}\n          className=\"pr-11\"\n          onFocus={(event) => {\n            setFocused(true);\n            onFocus?.(event);\n          }}\n          onBlur={(event) => {\n            setFocused(false);\n            onBlur?.(event);\n          }}\n          onKeyUp={(event) => {\n            setCaps(event.getModifierState(\"CapsLock\"));\n            onKeyUp?.(event);\n          }}\n        />\n        <button\n          data-slot=\"password-toggle\"\n          type=\"button\"\n          aria-pressed={visible}\n          aria-label={visible ? hide : show}\n          className=\"absolute top-1/2 right-1 grid size-8 -translate-y-1/2 place-items-center rounded-control text-muted-foreground outline-none hover:text-foreground focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring\"\n          onClick={() => setVisible((value) => !value)}\n        >\n          <span className=\"relative grid size-4 place-items-center\">\n            <Eye aria-hidden=\"true\" className=\"size-4\" />\n            <span data-slot=\"password-slash\" data-drawn={!visible} />\n          </span>\n        </button>\n      </div>\n      {description ? (\n        <p id={descriptionId} className=\"text-xs leading-[18px] text-muted-foreground\">\n          {description}\n        </p>\n      ) : null}\n      <p id={capsId} role=\"status\" className={cn(\"text-xs leading-[18px] text-warning\", !(focused && caps) && \"sr-only\")}>\n        {focused && caps ? \"Caps Lock is on.\" : \"\"}\n      </p>\n    </div>\n  );\n}\n"},{"path":"ui/sign-in-form.tsx","type":"registry:ui","target":"components/ui/sign-in-form.tsx","content":"\"use client\";\nimport { useEffect, useRef, useState, type FormEvent, type ReactNode } from \"react\";\nimport { Alert } from \"./alert\";\nimport { Button } from \"./button\";\nimport { Checkbox } from \"./checkbox\";\nimport { Field, isEmail } from \"./field\";\nimport { Input } from \"./input\";\nimport { Label } from \"./label\";\nimport { cn } from \"./lib/cn\";\nimport { PasswordField } from \"./password-field\";\n\nexport type AuthProvider = { id: string; label: string; icon?: ReactNode; onClick: () => void };\nexport type SignInResult = void | { error?: string; fields?: { email?: string; password?: string } };\n\nexport function Providers({ providers, disabled, verb = \"Continue with\" }: { providers: readonly AuthProvider[]; disabled?: boolean; verb?: string }) {\n  return (\n    <div className=\"grid gap-2\">\n      <div className=\"grid gap-2\">\n        {providers.map((p) => (\n          <Button key={p.id} type=\"button\" variant=\"secondary\" disabled={disabled} onClick={p.onClick}>\n            {p.icon}\n            {verb} {p.label}\n          </Button>\n        ))}\n      </div>\n      <div role=\"separator\" aria-label=\"or\" className=\"flex items-center gap-3 text-xs 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    </div>\n  );\n}\n\n/** Email and password sign in with inline validation, a server error area and optional single sign-on buttons. */\nexport function SignInForm({\n  title = \"Sign in\",\n  description,\n  onSubmit,\n  providers,\n  forgotHref,\n  onForgot,\n  signUp,\n  rememberMe = true,\n  defaultEmail = \"\",\n  className,\n}: {\n  title?: string;\n  description?: string;\n  onSubmit: (values: { email: string; password: string; remember: boolean }) => Promise<SignInResult> | SignInResult;\n  providers?: readonly AuthProvider[];\n  forgotHref?: string;\n  onForgot?: () => void;\n  /** Where people without an account go. */\n  signUp?: { href?: string; onClick?: () => void };\n  rememberMe?: boolean;\n  defaultEmail?: string;\n  className?: string;\n}) {\n  const [values, setValues] = useState({ email: defaultEmail, password: \"\", remember: true });\n  const [touched, setTouched] = useState({ email: false, password: false });\n  const [server, setServer] = useState<{ error?: string; fields?: { email?: string; password?: string } }>({});\n  const [pending, setPending] = useState(false);\n  const form = useRef<HTMLFormElement>(null);\n  const refocus = useRef<string | null>(null);\n  // Fields are disabled while sending; move focus to the first problem once they can take it.\n  useEffect(() => {\n    if (pending || !refocus.current) return;\n    form.current?.querySelector<HTMLElement>(`[name=\"${refocus.current}\"]`)?.focus();\n    refocus.current = null;\n  }, [pending]);\n\n  const local = {\n    email: !values.email.trim() ? \"Enter your email address.\" : !isEmail(values.email) ? \"Enter a valid email address, like name@example.com.\" : \"\",\n    password: !values.password ? \"Enter your password.\" : \"\",\n  };\n  const errors = {\n    email: (touched.email && local.email) || server.fields?.email || \"\",\n    password: (touched.password && local.password) || server.fields?.password || \"\",\n  };\n\n  const submit = async (event: FormEvent) => {\n    event.preventDefault();\n    if (pending) return;\n    setTouched({ email: true, password: true });\n    setServer({});\n    const first = local.email ? \"email\" : local.password ? \"password\" : null;\n    if (first) {\n      form.current?.querySelector<HTMLElement>(`[name=\"${first}\"]`)?.focus();\n      return;\n    }\n    setPending(true);\n    let target: string | null = null;\n    try {\n      const result = await onSubmit({ email: values.email.trim(), password: values.password, remember: values.remember });\n      if (result && (result.error || result.fields)) {\n        setServer(result);\n        target = result.fields?.email ? \"email\" : result.fields?.password ? \"password\" : null;\n      }\n    } catch (error) {\n      setServer({ error: error instanceof Error ? error.message : \"Something went wrong. Try again.\" });\n    } finally {\n      setPending(false);\n    }\n    if (target) refocus.current = target;\n  };\n\n  return (\n    <form ref={form} noValidate data-slot=\"sign-in-form\" aria-label={title} onSubmit={submit} className={cn(\"grid gap-5\", className)}>\n      <div className=\"grid gap-1\">\n        <h1 className=\"text-xl font-semibold tracking-tight\">{title}</h1>\n        {description && <p className=\"text-sm text-muted-foreground\">{description}</p>}\n      </div>\n      {server.error && (\n        <Alert variant=\"error\" title={server.error} />\n      )}\n      {providers && providers.length > 0 && <Providers providers={providers} disabled={pending} />}\n      <Field label=\"Email\" error={errors.email} required>\n        {(control) => (\n          <Input\n            {...control}\n            name=\"email\"\n            type=\"email\"\n            inputMode=\"email\"\n            autoComplete=\"username\"\n            autoCapitalize=\"none\"\n            spellCheck={false}\n            value={values.email}\n            disabled={pending}\n            onChange={(e) => {\n              setValues({ ...values, email: e.target.value });\n              if (server.fields?.email || server.error) setServer({});\n            }}\n            onBlur={() => setTouched((t) => ({ ...t, email: true }))}\n          />\n        )}\n      </Field>\n      <div className=\"grid gap-1.5\">\n        <div className=\"relative\">\n          <PasswordField\n            label=\"Password\"\n            name=\"password\"\n            autoComplete=\"current-password\"\n            required\n            aria-invalid={errors.password ? true : undefined}\n            value={values.password}\n            disabled={pending}\n            onChange={(e) => {\n              setValues({ ...values, password: e.target.value });\n              if (server.fields?.password || server.error) setServer({});\n            }}\n            onBlur={() => setTouched((t) => ({ ...t, password: true }))}\n          />\n          {(forgotHref || onForgot) && (\n            <a\n              href={forgotHref ?? \"#\"}\n              onClick={(event) => {\n                if (onForgot) {\n                  event.preventDefault();\n                  onForgot();\n                }\n              }}\n              className=\"absolute right-0 top-0 rounded-control text-xs text-muted-foreground underline underline-offset-4 outline-none hover:text-foreground focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring\"\n            >\n              Forgot password?\n            </a>\n          )}\n        </div>\n        {errors.password && (\n          <p role=\"alert\" className=\"text-xs leading-[18px] text-danger\">\n            {errors.password}\n          </p>\n        )}\n      </div>\n      {rememberMe && (\n        <div className=\"flex items-center gap-2\">\n          <Checkbox id=\"remember\" checked={values.remember} disabled={pending} onChange={(e) => setValues({ ...values, remember: e.target.checked })} />\n          <Label htmlFor=\"remember\" className=\"font-normal\">\n            Keep me signed in on this device\n          </Label>\n        </div>\n      )}\n      <Button type=\"submit\" loading={pending} className=\"w-full\">\n        {pending ? \"Signing in…\" : \"Sign in\"}\n      </Button>\n      {signUp && (\n        <p className=\"text-center text-sm text-muted-foreground\">\n          No account yet?{\" \"}\n          <a\n            href={signUp.href ?? \"#\"}\n            onClick={(event) => {\n              if (signUp.onClick) {\n                event.preventDefault();\n                signUp.onClick();\n              }\n            }}\n            className=\"rounded-control font-medium text-foreground underline underline-offset-4 outline-none focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring\"\n          >\n            Create one\n          </a>\n        </p>\n      )}\n    </form>\n  );\n}\n"},{"path":"ui/shared/alert.css","type":"registry:file","target":"components/ui/shared/alert.css","content":"/* Shared by alert.tsx, toast.tsx; each imports it. Edit freely. */\n@layer theme, base, components, utilities;\n\n@layer components {\n  [data-slot=\"feedback-message\"] {\n    display: block;\n    animation: caliper-fade-in var(--duration-normal) var(--ease-out);\n  }\n  :is([data-slot=\"alert\"], [data-slot=\"toast\"])[data-variant=\"success\"]\n    [data-slot=\"feedback-icon\"] {\n    background: var(--success-subtle);\n    color: var(--success);\n  }\n  :is([data-slot=\"alert\"], [data-slot=\"toast\"])[data-variant=\"warning\"]\n    [data-slot=\"feedback-icon\"] {\n    background: var(--warning-subtle);\n    color: var(--warning);\n  }\n  :is([data-slot=\"alert\"], [data-slot=\"toast\"])[data-variant=\"error\"]\n    [data-slot=\"feedback-icon\"] {\n    background: var(--destructive-subtle);\n    color: var(--destructive);\n  }\n  @container (max-width: 22rem) {\n    [data-slot=\"feedback-copy\"] {\n      display: contents;\n    }\n    [data-slot=\"feedback-title\"] {\n      grid-column: 2;\n      grid-row: 1;\n      min-width: 0;\n      padding-top: 0.25rem;\n    }\n    [data-slot=\"feedback-description\"],\n    [data-slot=\"feedback-action\"] {\n      grid-column: 1 / -1;\n      margin-top: 0;\n    }\n    [data-slot=\"feedback-description\"] {\n      grid-row: 2;\n    }\n    [data-slot=\"feedback-action\"] {\n      grid-row: 3;\n    }\n  }\n\n  @media (prefers-reduced-motion: reduce) {\n    [data-slot=\"feedback-message\"] {\n      animation: none;\n    }\n  }\n}\n"},{"path":"ui/alert.css","type":"registry:file","target":"components/ui/alert.css","content":"/* alert.tsx's styles; it imports this file. Edit freely. */\n@layer theme, base, components, utilities;\n\n@layer components {\n  [data-slot=\"alert\"] {\n    container-type: inline-size;\n    opacity: 1;\n    transform: translateY(0);\n    transition-property: opacity, transform, display;\n    transition-duration: var(--duration-normal);\n    transition-timing-function: var(--ease-out);\n    transition-behavior: allow-discrete;\n  }\n  [data-slot=\"alert\"][hidden] {\n    display: none !important;\n    opacity: 0;\n    pointer-events: none;\n    transition-duration: var(--duration-fast);\n  }\n  @starting-style {\n    [data-slot=\"alert\"]:not([hidden]) {\n      opacity: 0;\n      transform: translateY(var(--motion-enter-distance));\n    }\n  }\n  @container (max-width: 22rem) {\n    [data-slot=\"alert\"] > [data-slot=\"button\"] {\n      grid-column: 3;\n      grid-row: 1;\n    }\n  }\n\n  @media (prefers-reduced-motion: reduce) {\n    [data-slot=\"alert\"] {\n      transition: none;\n      transform: none !important;\n    }\n    @starting-style {\n      [data-slot=\"alert\"]:not([hidden]) {\n        opacity: 1;\n        transform: none;\n      }\n    }\n  }\n}\n"},{"path":"ui/shared/loading-indicator.css","type":"registry:file","target":"components/ui/shared/loading-indicator.css","content":"/* Shared by button.tsx, confirm-morph.tsx, expanding-button-group.tsx, field.tsx; each imports it. Edit freely. */\n@layer theme, base, components, utilities;\n\n@layer components {\n  [data-slot=\"loading-indicator\"] {\n    animation: caliper-spin var(--duration-loading) var(--ease-linear) infinite;\n  }\n\n  @media (prefers-reduced-motion: reduce) {\n    [data-slot=\"loading-indicator\"] {\n      animation: none;\n    }\n  }\n}\n"},{"path":"ui/button.css","type":"registry:file","target":"components/ui/button.css","content":"/* button.tsx's styles; it imports this file. Edit freely. */\n@layer theme, base, components, utilities;\n\n@layer components {\n  [data-slot=\"button\"] {\n    transition-property: background-color, color, border-color;\n    transition-duration: var(--duration-fast);\n    transition-timing-function: var(--ease-out);\n  }\n\n  /* Button material. Raised to press: a lit top edge and a small lift; the\n     press travels 1px down and swaps the lift for an inner shade. Only\n     translate animates (release on the settle curve); shadows swap. */\n  [data-slot=\"button\"] {\n    --b-bg: var(--raised);\n    --b-bg-hover: var(--raised-hover);\n    --b-bg-press: var(--raised-press);\n    --b-fg: var(--foreground);\n    --b-shadow: var(--shadow-raised);\n    --b-shadow-press: var(--shadow-raised-press);\n    background-color: var(--b-bg);\n    color: var(--b-fg);\n    box-shadow: var(--b-shadow);\n    transition-property: background-color, color, border-color, translate, scale;\n    transition-duration:\n      var(--duration-fast), var(--duration-fast), var(--duration-fast),\n      var(--duration-normal), var(--duration-normal);\n    transition-timing-function:\n      var(--ease-out), var(--ease-out), var(--ease-out), var(--ease-settle),\n      var(--ease-settle);\n  }\n  [data-slot=\"button\"][data-variant=\"default\"] {\n    --b-bg: var(--primary);\n    --b-bg-hover: var(--primary-hover);\n    --b-bg-press: var(--primary-press);\n    --b-fg: var(--primary-foreground);\n    --b-shadow: var(--shadow-accent);\n    --b-shadow-press: var(--shadow-accent-press);\n  }\n  [data-slot=\"button\"][data-variant=\"destructive\"] {\n    --b-bg: var(--danger-fill);\n    --b-bg-hover: var(--danger-fill-hover);\n    --b-bg-press: var(--danger-fill-press);\n    --b-fg: var(--danger-fill-foreground);\n    --b-shadow: var(--shadow-danger);\n    --b-shadow-press: var(--shadow-danger-press);\n  }\n  [data-slot=\"button\"][data-variant=\"ghost\"] {\n    --b-bg: transparent;\n    --b-bg-hover: var(--muted);\n    --b-bg-press: var(--muted);\n    --b-fg: var(--muted-foreground);\n    --b-shadow: none;\n    --b-shadow-press: none;\n  }\n  @media (hover: hover) {\n    [data-slot=\"button\"]:hover {\n      background-color: var(--b-bg-hover);\n    }\n    [data-slot=\"button\"][data-variant=\"ghost\"]:hover {\n      color: var(--foreground);\n    }\n  }\n  [data-slot=\"button\"]:active:not(:disabled):not([aria-disabled=\"true\"]):not(\n      [aria-busy=\"true\"]\n    ) {\n    translate: 0 var(--motion-press-travel);\n    scale: var(--motion-press-scale);\n    background-color: var(--b-bg-press);\n    box-shadow: var(--b-shadow-press);\n    transition-duration:\n      var(--duration-fast), var(--duration-fast), var(--duration-fast), 90ms,\n      90ms;\n    transition-timing-function: var(--ease-out);\n  }\n  [data-slot=\"button\"]:is(:disabled, [aria-disabled=\"true\"]):not([aria-busy=\"true\"]) {\n    background-color: var(--sunken);\n    color: var(--muted-foreground);\n  }\n  [data-slot=\"button\"][data-variant=\"ghost\"]:is(:disabled, [aria-disabled=\"true\"]):not(\n      [aria-busy=\"true\"]\n    ) {\n    background-color: transparent;\n    box-shadow: none;\n  }\n  /* Loading keeps the exact width: the label stays in flow but invisible. */\n  [data-slot=\"button-label\"] {\n    display: inline-flex;\n    align-items: center;\n    gap: inherit;\n  }\n  /* Opacity, not visibility, so the label still names the button. */\n  [data-slot=\"button-label\"][data-hidden=\"true\"] {\n    opacity: 0;\n  }\n  [data-slot=\"button-busy\"] {\n    position: absolute;\n    inset: 0;\n    display: grid;\n    place-items: center;\n  }\n  [data-slot=\"button-feedback\"] {\n    display: inline-flex;\n    align-items: center;\n    gap: inherit;\n    overflow: clip;\n    transition: width var(--duration-normal) var(--ease-out);\n  }\n  [data-slot=\"button-feedback-label\"] {\n    display: inline-flex;\n    flex-shrink: 0;\n    align-items: center;\n    gap: inherit;\n    width: max-content;\n  }\n  [data-slot=\"button-feedback-label\"][data-enter=\"true\"] {\n    animation: caliper-feedback-enter var(--duration-normal) var(--ease-out);\n  }\n\n  [data-slot=\"button\"][aria-busy=\"true\"] {\n    pointer-events: none;\n  }\n  [data-slot=\"button\"][data-action-phase=\"error\"] {\n    color: var(--danger);\n  }\n\n  @media (prefers-reduced-motion: reduce) {\n    [data-slot=\"button\"],\n    [data-slot=\"button-feedback\"] {\n      transition: none;\n    }\n    [data-slot=\"button\"]:active:not(:disabled):not([aria-disabled=\"true\"]):not(\n        [aria-busy=\"true\"]\n      ) {\n      translate: none;\n    }\n    [data-slot=\"button-feedback-label\"],\n    [data-slot=\"button-feedback-label\"][data-enter=\"true\"] {\n      animation: none;\n    }\n  }\n\n  /* Toggle: pressed is recessed, as a toggled tool in a button group is. */\n  /* Four attributes, so it wins over the group and toolbar pressed rules in any stylesheet order. */\n  [data-slot=\"button\"][data-variant=\"ghost\"][data-toggle][aria-pressed=\"true\"] {\n    --b-bg: var(--raised-press);\n    --b-bg-hover: var(--raised-press);\n    --b-bg-press: var(--raised-press);\n    --b-fg: var(--foreground);\n    --b-shadow: var(--shadow-sunken);\n    --b-shadow-press: var(--shadow-sunken);\n  }\n}\n"},{"path":"ui/checkbox.css","type":"registry:file","target":"components/ui/checkbox.css","content":"/* checkbox.tsx's styles; it imports this file. Edit freely. */\n@layer theme, base, components, utilities;\n\n@layer components {\n  /* The native input fills the target; the smaller indicator is decorative. */\n  [data-slot=\"checkbox-root\"] {\n    position: relative;\n    display: inline-flex;\n    align-items: center;\n    justify-content: center;\n    flex-shrink: 0;\n    width: var(--control-height);\n    height: var(--control-height);\n    vertical-align: middle;\n  }\n\n  [data-slot=\"checkbox\"] {\n    position: absolute;\n    inset: 0;\n    width: 100%;\n    height: 100%;\n    margin: 0;\n    appearance: none;\n    border: 0;\n    background: transparent;\n    outline: none;\n    cursor: pointer;\n    touch-action: manipulation;\n  }\n\n  /* Choice marks: one 18px recessed mark for checkbox and radio. Checked\n     marks fill with ink; the check stroke draws itself and the radio dot\n     settles in. The switch thumb stretches while pressed, then settles. */\n  [data-slot=\"checkbox-indicator\"] {\n    box-sizing: border-box;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    pointer-events: none;\n    background: var(--field);\n    box-shadow: var(--shadow-field);\n    transition:\n      background-color var(--duration-fast) var(--ease-out),\n      box-shadow var(--duration-fast) var(--ease-out);\n  }\n\n  [data-slot=\"checkbox-indicator\"] {\n    width: 18px;\n    height: 18px;\n  }\n\n  [data-slot=\"checkbox-indicator\"] {\n    border-radius: var(--radius-mark);\n    color: var(--accent-foreground);\n  }\n  [data-slot=\"checkbox-indicator\"] svg {\n    width: 12px;\n    height: 12px;\n    stroke: currentColor;\n    stroke-width: 2;\n    stroke-linecap: round;\n    stroke-linejoin: round;\n  }\n  [data-slot=\"checkbox-indicator\"] path {\n    stroke-dasharray: 20;\n    stroke-dashoffset: 20;\n    transition: stroke-dashoffset 200ms var(--ease-out);\n  }\n  [data-slot=\"checkbox\"]:checked:not(:indeterminate) + [data-slot=\"checkbox-indicator\"] [data-mark=\"check\"],\n  [data-slot=\"checkbox\"]:indeterminate + [data-slot=\"checkbox-indicator\"] [data-mark=\"mixed\"] {\n    stroke-dashoffset: 0;\n  }\n\n  [data-slot=\"checkbox\"]:checked + [data-slot=\"checkbox-indicator\"],\n  [data-slot=\"checkbox\"]:indeterminate + [data-slot=\"checkbox-indicator\"] {\n    background: var(--accent);\n    box-shadow: 0 0 0 1px var(--accent), inset 0 1px 0 rgb(255 255 255 / 14%);\n  }\n\n  @media (hover: hover) {\n    [data-slot=\"checkbox\"]:hover:not(:disabled):not(:checked)\n      + [data-slot=\"checkbox-indicator\"] {\n      box-shadow: var(--shadow-field-hover);\n    }\n  }\n\n  [data-slot=\"checkbox\"]:focus-visible + [data-slot=\"checkbox-indicator\"] {\n    outline: 2px solid var(--ring);\n    outline-offset: 2px;\n  }\n\n  [data-slot=\"checkbox\"][aria-invalid=\"true\"]\n    + [data-slot=\"checkbox-indicator\"] {\n    box-shadow: var(--shadow-field-invalid);\n    outline-color: var(--destructive);\n  }\n\n  [data-slot=\"checkbox\"]:disabled {\n    cursor: not-allowed;\n  }\n  [data-slot=\"checkbox\"]:disabled + [data-slot=\"checkbox-indicator\"] {\n    background: var(--sunken);\n    box-shadow: var(--shadow-field-quiet);\n    color: var(--muted-foreground);\n  }\n  [data-slot=\"checkbox\"]:disabled:is(:checked, :indeterminate) + [data-slot=\"checkbox-indicator\"] {\n    background: var(--border);\n    box-shadow: none;\n  }\n\n  @media (forced-colors: active) {\n    [data-slot=\"checkbox-indicator\"] {\n      forced-color-adjust: none;\n      background: Canvas;\n      border-color: CanvasText;\n    }\n    [data-slot=\"checkbox\"]:checked + [data-slot=\"checkbox-indicator\"],\n    [data-slot=\"checkbox\"]:indeterminate + [data-slot=\"checkbox-indicator\"] {\n      background: Highlight;\n      border-color: Highlight;\n    }\n    [data-slot=\"checkbox\"]:is(:checked, :indeterminate) + [data-slot=\"checkbox-indicator\"] {\n      color: HighlightText;\n    }\n    [data-slot=\"checkbox-indicator\"] {\n      border: 1px solid CanvasText;\n      box-shadow: none;\n    }\n    [data-slot=\"checkbox\"]:hover:not(:disabled)\n      + [data-slot=\"checkbox-indicator\"] {\n      border-color: CanvasText;\n    }\n    [data-slot=\"checkbox\"]:focus-visible + [data-slot=\"checkbox-indicator\"] {\n      outline-color: Highlight;\n    }\n  }\n\n  @media (prefers-reduced-motion: reduce) {\n    [data-slot=\"checkbox-indicator\"],\n    [data-slot=\"checkbox-indicator\"] path {\n      transition: none;\n    }\n  }\n}\n"},{"path":"ui/feedback.css","type":"registry:file","target":"components/ui/feedback.css","content":"/* feedback.tsx's styles; it imports this file. Edit freely. */\n@layer theme, base, components, utilities;\n\n@layer components {\n  [data-slot=\"feedback-icon\"] {\n    display: flex;\n    width: 2rem;\n    height: 2rem;\n    flex-shrink: 0;\n    align-items: center;\n    justify-content: center;\n    border-radius: var(--radius-surface);\n    background: var(--muted);\n    color: var(--muted-foreground);\n    transition:\n      color var(--duration-fast) var(--ease-out),\n      background-color var(--duration-fast) var(--ease-out);\n  }\n  [data-slot=\"feedback-symbol\"] {\n    display: flex;\n    animation: caliper-feedback-symbol-enter var(--duration-normal) var(--ease-out);\n  }\n  [data-slot=\"feedback-icon\"] svg {\n    width: 1rem;\n    height: 1rem;\n  }\n\n  @media (prefers-reduced-motion: reduce) {\n    [data-slot=\"feedback-icon\"] {\n      transition: none;\n      transform: none !important;\n    }\n    [data-slot=\"feedback-symbol\"] {\n      animation: none;\n    }\n  }\n}\n"},{"path":"ui/shared/field-message.css","type":"registry:file","target":"components/ui/shared/field-message.css","content":"/* Shared by date-input.tsx, field.tsx, scrub-field.tsx; each imports it. Edit freely. */\n@layer theme, base, components, utilities;\n\n@layer components {\n  [data-slot=\"field-message\"] {\n    display: flex;\n    align-items: flex-start;\n    gap: 6px;\n    min-height: 18px;\n    margin: 0;\n    font-size: 12px;\n    line-height: 18px;\n    color: var(--muted-foreground);\n  }\n  [data-slot=\"field-message\"] svg {\n    flex: none;\n    width: 14px;\n    height: 14px;\n    margin-top: 2px;\n  }\n  [data-slot=\"field-message\"][data-tone=\"error\"] {\n    color: var(--danger);\n  }\n  [data-slot=\"field-message\"][data-tone=\"success\"] {\n    color: var(--success);\n  }\n}\n"},{"path":"ui/field.css","type":"registry:file","target":"components/ui/field.css","content":"/* field.tsx's styles; it imports this file. Edit freely. */\n@layer theme, base, components, utilities;\n\n@layer components {\n  [data-slot=\"field-count\"] {\n    margin-left: auto;\n    color: var(--muted-foreground);\n    font-variant-numeric: tabular-nums;\n    font-size: 12px;\n    font-variant-numeric: tabular-nums;\n  }\n}\n"},{"path":"ui/shared/input.css","type":"registry:file","target":"components/ui/shared/input.css","content":"/* Shared by combobox.tsx, input.tsx; each imports it. Edit freely. */\n@layer theme, base, components, utilities;\n\n@layer components {\n  [data-slot=\"input\"] {\n    transition-property: background-color, color, border-color;\n    transition-duration: var(--duration-fast);\n    transition-timing-function: var(--ease-out);\n  }\n\n  /* Recessed to fill. One ring for every field: 3:1 at rest, darker on\n     hover, a 2px ember ring with a soft halo on focus, danger when invalid.\n     Disabled and read-only drop into the sunken fill and stay legible. */\n  [data-slot=\"input\"] {\n    border: 0;\n    background-color: var(--field);\n    box-shadow: var(--shadow-field);\n    transition: box-shadow var(--duration-fast) var(--ease-out);\n  }\n\n  @media (prefers-reduced-motion: reduce) {\n    [data-slot=\"input\"] {\n      transition: none;\n    }\n  }\n}\n"},{"path":"ui/shared/input-2.css","type":"registry:file","target":"components/ui/shared/input-2.css","content":"/* Shared by combobox.tsx, input.tsx, select-menu.tsx, select.tsx, textarea.tsx; each imports it. Edit freely. */\n@layer theme, base, components, utilities;\n\n@layer components {\n  @media (hover: hover) {\n    :is([data-slot=\"input\"], [data-slot=\"textarea\"], [data-slot=\"select\"]):hover:enabled:not(:focus-visible):not([aria-invalid=\"true\"]) {\n      box-shadow: var(--shadow-field-hover);\n    }\n  }\n  :is([data-slot=\"input\"], [data-slot=\"textarea\"], [data-slot=\"select\"]):focus-visible {\n    outline: none;\n    box-shadow: var(--shadow-field-focus);\n    transition: none;\n  }\n  :is([data-slot=\"input\"], [data-slot=\"textarea\"], [data-slot=\"select\"])[aria-invalid=\"true\"] {\n    box-shadow: var(--shadow-field-invalid);\n  }\n  :is([data-slot=\"input\"], [data-slot=\"textarea\"], [data-slot=\"select\"])[aria-invalid=\"true\"]:focus-visible {\n    box-shadow:\n      var(--shadow-field-invalid),\n      0 0 0 4px color-mix(in srgb, var(--danger) 18%, transparent);\n  }\n  :is([data-slot=\"input\"], [data-slot=\"textarea\"], [data-slot=\"select\"]):disabled {\n    background-color: var(--sunken);\n    box-shadow: var(--shadow-field-quiet);\n    color: var(--muted-foreground);\n  }\n  :is([data-slot=\"input\"], [data-slot=\"textarea\"])[readonly] {\n    background-color: var(--sunken);\n    box-shadow: var(--shadow-field-quiet);\n  }\n}\n"},{"path":"ui/shared/input-group.css","type":"registry:file","target":"components/ui/shared/input-group.css","content":"/* Shared by input.tsx, money-field.tsx, phone-field.tsx; each imports it. Edit freely. */\n@layer theme, base, components, utilities;\n\n@layer components {\n  @media (hover: hover) {\n    :is([data-slot=\"input-group\"], [data-slot=\"money-field\"], [data-slot=\"phone-field-control\"]):not([data-disabled]):not([data-invalid]):hover:not(:focus-within) {\n      box-shadow: var(--shadow-field-hover);\n    }\n  }\n  :is([data-slot=\"input-group\"], [data-slot=\"money-field\"], [data-slot=\"phone-field-control\"]):focus-within {\n    outline: none;\n    box-shadow: var(--shadow-field-focus);\n    transition: none;\n  }\n}\n"},{"path":"ui/input.css","type":"registry:file","target":"components/ui/input.css","content":"/* input.tsx's styles; it imports this file. Edit freely. */\n@layer theme, base, components, utilities;\n\n@layer components {\n  /* Recessed to fill. One ring for every field: 3:1 at rest, darker on\n     hover, a 2px ember ring with a soft halo on focus, danger when invalid.\n     Disabled and read-only drop into the sunken fill and stay legible. */\n  [data-slot=\"input-group\"] {\n    border: 0;\n    background-color: var(--field);\n    box-shadow: var(--shadow-field);\n    transition: box-shadow var(--duration-fast) var(--ease-out);\n  }\n  [data-slot=\"input-group\"][data-invalid] {\n    box-shadow: var(--shadow-field-invalid);\n  }\n  [data-slot=\"input-group\"][data-invalid]:focus-within {\n    box-shadow:\n      var(--shadow-field-invalid),\n      0 0 0 4px color-mix(in srgb, var(--danger) 18%, transparent);\n  }\n  [data-slot=\"input-group\"][data-disabled] {\n    background-color: var(--sunken);\n    box-shadow: var(--shadow-field-quiet);\n    color: var(--muted-foreground);\n  }\n  [data-slot=\"input-group\"][data-readonly] {\n    background-color: var(--sunken);\n    box-shadow: var(--shadow-field-quiet);\n  }\n  [data-slot=\"input-bare\"] {\n    border: 0;\n    box-shadow: none;\n    outline: none;\n  }\n  [data-slot=\"input-affix\"] {\n    display: inline-flex;\n    align-items: center;\n    height: 20px;\n    padding-inline-end: 10px;\n    margin-inline-end: 2px;\n    color: var(--muted-foreground);\n    box-shadow: 1px 0 0 var(--border);\n    white-space: nowrap;\n  }\n  [data-slot=\"input-affix\"]:dir(rtl) {\n    box-shadow: -1px 0 0 var(--border);\n  }\n  [data-slot=\"input-affix\"]:has(> svg:only-child) {\n    padding-inline-end: 0;\n    box-shadow: none;\n  }\n  [data-slot=\"input-trailing\"] {\n    display: inline-flex;\n    align-items: center;\n    gap: 6px;\n    color: var(--muted-foreground);\n    white-space: nowrap;\n    font-size: 12px;\n  }\n  :is([data-slot=\"input-affix\"], [data-slot=\"input-trailing\"]) svg {\n    width: 16px;\n    height: 16px;\n  }\n  [data-slot=\"docs-toolbar\"] [data-slot=\"input-group\"] { max-width: 24rem; }\n}\n"},{"path":"ui/shared/chip-option.css","type":"registry:file","target":"components/ui/shared/chip-option.css","content":"/* Shared by calendar.tsx, chart-parts.tsx, chip-group.tsx, data-table.tsx, number-field.tsx, password-field.tsx, stepper.tsx; each imports it. Edit freely. */\n@layer theme, base, components, utilities;\n\n@layer components {\n  /* Depth sets 2 and 3 end */\n\n  /* Press feedback (2026-10-20, motion audit): every pressable control answers a press. Compact controls take the\n     system press scale, as Button does; wide rows deepen their fill instead, since scaling a full-width row reads as a\n     jump. Disabled controls stay still. */\n  :is([data-slot=\"chip-option\"], [data-slot=\"number-field\"] button, [data-slot=\"password-toggle\"], [data-slot=\"calendar\"] button, [data-slot=\"chart-legend-item\"], [data-slot=\"sort-button\"], [data-slot=\"stepper\"] button):active:not(:disabled):not([aria-disabled=\"true\"]) {\n    scale: var(--motion-press-scale);\n  }\n}\n"},{"path":"ui/password-field.css","type":"registry:file","target":"components/ui/password-field.css","content":"/* password-field.tsx's styles; it imports this file. Edit freely. */\n@layer theme, base, components, utilities;\n\n@layer components {\n  [data-slot=\"password-slash\"] {\n    position: absolute;\n    top: 50%;\n    left: 50%;\n    width: 1.15rem;\n    height: 1.5px;\n    border-radius: 1px;\n    background: currentColor;\n    translate: -50% -50%;\n    rotate: -40deg;\n    scale: 0 1;\n    transition: scale var(--duration-travel) var(--ease-showcase);\n  }\n  [data-slot=\"password-slash\"][data-drawn=\"true\"] {\n    scale: 1 1;\n  }\n\n  @media (prefers-reduced-motion: reduce) {\n    [data-slot=\"password-slash\"] {\n      transition: scale 400ms var(--ease-showcase);\n    }\n  }\n}\n"}],"categories":["free-account"],"meta":{"tier":"free","license":"MIT","family":"account-entry","docs":"/docs/components/sign-in-form"}}