diff --git a/src/pages/login.tsx b/src/pages/login.tsx
index 9c5d9141..e93569fd 100644
--- a/src/pages/login.tsx
+++ b/src/pages/login.tsx
@@ -13,6 +13,7 @@ import Link from "next/link";
export default function Login() {
const [email, setEmail] = useState("");
const [password, setPassword] = useState("");
+ const [showPassword, setShowPassword] = useState(false);
const [isLoading, setIsLoading] = useState(false);
const {mutateUser} = useUser({
@@ -71,15 +72,23 @@ export default function Login() {
className="px-8 py-6 text-sm font-normal placeholder:text-mti-gray-cool bg-white rounded-full shadow-xl shadow-mti-gray-anti-flash focus:outline-none"
/>
-
+
-
setPassword(e.target.value)}
- placeholder="Password"
- className="px-8 py-6 text-sm font-normal placeholder:text-mti-gray-cool bg-white rounded-full shadow-xl shadow-mti-gray-anti-flash focus:outline-none"
- />
+
+
setPassword(e.target.value)}
+ placeholder="Password"
+ className="w-full px-8 py-6 text-sm font-normal placeholder:text-mti-gray-cool bg-white rounded-full shadow-xl shadow-mti-gray-anti-flash focus:outline-none"
+ />
+
setShowPassword((prev) => !prev)}
+ className="text-xs cursor-pointer absolute bottom-1/2 translate-y-1/2 right-8">
+ {showPassword ? "Hide" : "Show"}
+
+