+
+

+
+ {headerText}
+
+
+
+
+ {authPage === AuthPage.SignupStepTwo && (
+ <>
+
+
+ setFirstName(e.target.value)}
+ className="w-full py-5 focus:ring-[2.5px] focus:ring-[#007B64]"
+ id="first-name"
+ />
+
+
+
+ setLastName(e.target.value)}
+ className="w-full py-5 focus:ring-[2.5px] focus:ring-[#007B64] mb-14"
+ id="last-name"
+ />
+
+ >
+ )}
+
+ {(authPage === AuthPage.Login ||
+ authPage === AuthPage.SignupStepOne ||
+ authPage === AuthPage.ForgotPassword) && (
+ <>
+
+
+ setEmail(e.target.value)}
+ className={`w-full py-5 focus:ring-[2.5px] focus:ring-[#007B64] peer invalid:[&:not(:placeholder-shown):not(:focus)]:ring-[2.5px] invalid:[&:not(:placeholder-shown):not(:focus)]:ring-[#B4444D] invalid:[&:not(:placeholder-shown):not(:focus)]:bg-[#FFFAFA] ${
+ showAuthFieldError
+ ? 'ring-[2.5px] ring-[#B4444D] bg-[#FFFAFA]'
+ : ''
+ }`}
+ id="email"
+ />
+
+ Please enter a valid email address
+
+
+ {(authPage === AuthPage.Login ||
+ authPage === AuthPage.SignupStepOne) && (
+ <>
+
+
+
+ setPassword(e.target.value)}
+ placeholder="Password"
+ className={`focus:ring-[#007B64] ${
+ showAuthFieldError ? 'bg-[#FFFAFA]' : ''
+ }`}
+ />
+ setShowPassword(!showPassword)}
+ >
+ {showPassword ? : }
+
+
+
+ {authPage === AuthPage.SignupStepOne && (
+
+
+
+ setConfirmPassword(e.target.value)}
+ placeholder="Re-enter Password"
+ className="focus:ring-[#007B64]"
+ />
+
+ setShowConfirmPassword(!showConfirmPassword)
+ }
+ >
+ {showConfirmPassword ? : }
+
+
+
+ )}
+ >
+ )}
+ >
+ )}
+
+ {authPage === AuthPage.SignupStepOne ? (
+
+ ) : (
+ authPage === AuthPage.Login && (
+
+ {error && (
+
{error}
+ )}
+
+
+ )
+ )}
+
+ {authPage === AuthPage.Login ? (
+
+ ) : authPage === AuthPage.ForgotPassword ? (
+
+ ) : authPage === AuthPage.SignupStepOne ? (
+
+ ) : (
+
+ )}
+
+
+ {authPage === AuthPage.ForgotPassword ? (
+ <>
+
Go back to
+
+ >
+ ) : (
+ <>
+
+ {authPage === AuthPage.Login
+ ? "Don't have an account?"
+ : 'Already have an account?'}
+
+
+ >
+ )}
+
+
+