const DEMO_PASSWORD_SUFFIX = "#HuRoomsDemo2026"

export function normalizeHumandEmail(email: string) {
  return email.trim().toLowerCase()
}

export function isHumandEmail(email: string) {
  return normalizeHumandEmail(email).endsWith("@humand.co")
}

export function buildDemoPassword(email: string) {
  return `HU_ROOMS_${normalizeHumandEmail(email)}${DEMO_PASSWORD_SUFFIX}`
}
