diff --git a/client/src/pages/LoginPage.tsx b/client/src/pages/LoginPage.tsx index e23dcd1..9bbaff7 100644 --- a/client/src/pages/LoginPage.tsx +++ b/client/src/pages/LoginPage.tsx @@ -119,9 +119,14 @@ export default function LoginPage() { {/* Main Login Card */} - Welcome Back + + {isRegisterMode ? "Create Account" : "Welcome Back"} + - Sign in to your TaskFin account to access your voice-powered productivity tools + {isRegisterMode + ? "Join TaskFin to manage your tasks and finances with AI" + : "Sign in to your TaskFin account to access your voice-powered productivity tools" + } {/* Features Badge */} @@ -147,6 +152,62 @@ export default function LoginPage() { )} + {/* Registration Fields */} + {isRegisterMode && ( + <> +
+
+ + handleInputChange("firstName", e.target.value)} + disabled={isSubmitting} + required + /> +
+
+ + handleInputChange("lastName", e.target.value)} + disabled={isSubmitting} + required + /> +
+
+ +
+ + handleInputChange("username", e.target.value)} + disabled={isSubmitting} + required + /> +
+ +
+ + +
+ + )} + {/* Email Field */}
@@ -177,6 +238,23 @@ export default function LoginPage() { />
+ {/* Confirm Password Field - Registration Only */} + {isRegisterMode && ( +
+ + handleInputChange("confirmPassword", e.target.value)} + disabled={isSubmitting} + required + className="focus-ring" + /> +
+ )} + {/* Remember Me & Forgot Password */}
@@ -210,18 +288,31 @@ export default function LoginPage() { + {/* Switch between Login/Register */} +
+ + {isRegisterMode ? "Already have an account? " : "Don't have an account? "} + + + {isRegisterMode ? "Sign in" : "Create one"} + +
+ {/* Divider */}