export const loginRules = {
  email: {
    required: 'Email is required',
    pattern: { value: /\S+@\S+\.\S+/, message: 'Invalid email address' },
  },
  password: {
    required: 'Password is required',
    minLength: { value: 8, message: 'Minimum 8 characters' },
  },
} as const;

export const registerRules = {
  email: loginRules.email,
  password: loginRules.password,
  confirmPassword: {
    required: 'Please confirm your password',
  },
} as const;

export interface LoginFormValues {
  email: string;
  password: string;
}

export interface RegisterFormValues {
  email: string;
  password: string;
  confirmPassword: string;
}
