- {copy.signUpTitle}
+ {isLogin ? copy.welcomeBack : copy.signUpTitle}
{copy.subtitle}
@@ -350,9 +369,21 @@ export function LoginClient({ nextPath, initialMode }: LoginClientProps) {
-
+
+
+ {isLogin && !resetSent ? (
+
+ ) : null}
+
setPassword(event.target.value)}
- placeholder={copy.passwordSignupPlaceholder}
+ placeholder={isLogin ? copy.passwordLoginPlaceholder : copy.passwordSignupPlaceholder}
className="w-full rounded-lg border border-slate-300 bg-white py-2.5 pl-10 pr-10 text-sm text-slate-950 placeholder:text-slate-400 transition-all focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-500/20"
/>
-
- {copy.termsAgreement}
-
+ {!isLogin && (
+
+ {copy.termsAgreement}
+
+ )}
@@ -407,144 +440,20 @@ export function LoginClient({ nextPath, initialMode }: LoginClientProps) {
{errorText ?
{errorText}
: null}
{infoText ?
{infoText}
: null}
-
-
- {copy.alreadyHave}{" "}
-
-
+ {errorText && isLogin && errorText.includes("Invalid login") ? (
+
{copy.loginFailedHint}
+ ) : null}
+ {infoText === copy.signupCheckEmail ? (
+
{copy.resendVerify}
+ ) : null}