- {done
- ? 'Your password has been changed. Redirecting to login…'
- : step === 'email'
- ? "Enter your email address and we'll send you a 6-digit verification code."
- : step === 'code'
- ? `We emailed a ${CODE_LENGTH}-digit code to ${email}. It is valid for 10 minutes.`
- : 'Choose a strong new password that meets the security policy.'}
-
-
+ const title = done
+ ? 'Password Reset Complete'
+ : step === 'email'
+ ? 'Forgot Password'
+ : step === 'code'
+ ? 'Enter Verification Code'
+ : 'Create New Password';
+ const subtitle = done
+ ? 'Your password has been changed. Redirecting to login…'
+ : step === 'email'
+ ? "Enter your email address and we'll send you a 6-digit verification code."
+ : step === 'code'
+ ? `We emailed a ${CODE_LENGTH}-digit code to ${email}. It is valid for 10 minutes.`
+ : 'Choose a strong new password that meets the security policy.';
+ return (
+
{error && (
@@ -175,35 +173,33 @@ export function ForgotPasswordPage() {
{message}