// Login page translations - English
export const loginEn = {
  loginTitle: "Log in",
  loginSubtitle: "Welcome back",
  emailOrPhone: "Email or Phone Number",
  forgotPassword: "Forgot password?",
  loginButton: "Log in",
  loginWithOTP: "Log in with OTP",
  enterOTP: "Enter OTP",
  dontHaveAccount: "Don't have an account?",

  // OTP Tab labels
  passwordTab: "Password",
  otpTab: "OTP Login",

  // OTP specific
  otpTitle: "OTP Login",
  otpSubtitle: "Enter your email to receive a one-time code",
  sendOTPButton: "Send OTP",
  verifyOTPButton: "Verify & Login",
  otpSentTo: "OTP sent to",
  enterOTPCode: "Enter the 6-digit code",
  resendOTP: "Resend code",
  resendingOTP: "Sending...",
  resendIn: "Resend in",
  seconds: "s",
  changeEmail: "Change email",
  backToPassword: "Use password instead",

  // 🎯 Customized error messages
  errors: {
    userNotFound:
      "No account found with this email address. Please check your email or sign up.",
    invalidPassword: (remaining: number) =>
      `Incorrect password. ${remaining} ${remaining === 1 ? "attempt" : "attempts"} remaining before account lockout.`,
    accountLocked: (minutes: number) =>
      `Account locked due to multiple failed login attempts. Please try again in ${minutes} minutes or reset your password.`,
    noPasswordSet:
      'This account was created with Google. Please use "Continue with Google" to log in.',
    missingCredentials: "Please enter both email and password.",
    genericError: "Authentication failed. Please try again.",
    invalidOTP: "Invalid or expired OTP. Please try again.",
    otpExpired: "OTP has expired. Please request a new one.",
    otpSendFailed: "Failed to send OTP. Please try again.",
    tooManyOTPAttempts: "Too many attempts. Please try again later.",
  },
};
