From 0782da8abd9d353d72792de5165d982b947dfb1b Mon Sep 17 00:00:00 2001 From: pradeepkumar Date: Sat, 7 Mar 2026 23:51:13 +0530 Subject: [PATCH] feat: refresh forgot password page UI, integrate new icons, and update styling. --- public/assets/icons/arrow-back-icon.svg | 1 + src/app/(auth)/forgot-password/page.tsx | 86 ++++++++++++++----------- 2 files changed, 51 insertions(+), 36 deletions(-) create mode 100644 public/assets/icons/arrow-back-icon.svg diff --git a/public/assets/icons/arrow-back-icon.svg b/public/assets/icons/arrow-back-icon.svg new file mode 100644 index 0000000..6e5206f --- /dev/null +++ b/public/assets/icons/arrow-back-icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/app/(auth)/forgot-password/page.tsx b/src/app/(auth)/forgot-password/page.tsx index 8b7bdc7..a5abd4c 100644 --- a/src/app/(auth)/forgot-password/page.tsx +++ b/src/app/(auth)/forgot-password/page.tsx @@ -2,6 +2,7 @@ import { useState } from 'react'; import Link from 'next/link'; +import Image from 'next/image'; import { authService, AuthService } from '@/services'; export default function ForgotPasswordPage() { @@ -27,34 +28,36 @@ export default function ForgotPasswordPage() { if (submitted) { return ( -
-
-
- - - -
-

Check Your Email

-

- We've sent a password reset link to {email}. Please check your inbox and spam folder. -

- - Back to Login - - +
+
+ Email sent
+

Check Your Email

+

+ We've sent a password reset link to {email}. Please check your inbox and spam folder. +

+ + Back to Login + +
); } @@ -63,16 +66,16 @@ export default function ForgotPasswordPage() { <> {/* Forgot Password Heading */}
-

Forgot Password

-

- Enter your email address and we'll send you a link to reset your password +

Forget Your Password

+

+ Enter your registered email to reset your password.

{/* Forgot Password Form */}
{error && ( -
+
{error}
)} @@ -85,7 +88,7 @@ export default function ForgotPasswordPage() { value={email} onChange={(e) => setEmail(e.target.value)} required - className="w-full px-6 py-6 bg-[#f0f5fc] rounded-[20px] text-[#00293d] text-sm font-light placeholder:text-[#00293d] focus:outline-none focus:ring-2 focus:ring-[#00293d]/20 transition-all" + className="w-full px-6 py-6 bg-[#f0f5fc] rounded-[7px] text-[#00293d] text-[14px] font-light font-serif placeholder:text-[#00293d] focus:outline-none focus:ring-2 focus:ring-[#00293d]/20 transition-all" />
@@ -93,15 +96,26 @@ export default function ForgotPasswordPage() {
+ {/* Divider */} +
+
+
+ {/* Back to Login */} -
- +
+ + Back Back to Login