'use client';

import * as React from 'react';
import { cn } from '@/lib/cn';

export const Input = React.forwardRef<HTMLInputElement, React.InputHTMLAttributes<HTMLInputElement>>(
  ({ className, ...props }, ref) => (
    <input
      ref={ref}
      className={cn(
        'w-full rounded-[var(--r)] border border-line bg-surface text-text px-[11px] py-2',
        'focus:border-accent focus:outline-none focus:shadow-[0_0_0_3px_var(--accent-soft)]',
        'placeholder:text-muted',
        className,
      )}
      {...props}
    />
  ),
);
Input.displayName = 'Input';
