From f9e15c066befc7fcb4822f30f604354f2c93cac0 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Tue, 2 Sep 2025 20:44:36 +0000 Subject: [PATCH] Update background and add password visibility Updated the background of the authentication page to a modern design without the previous grid effect. Added a password visibility toggle (eye icon) to the password and confirm password fields in the registration form. --- src/components/auth/RegisterFormFields.tsx | 69 ++++++++++++++++------ src/pages/Auth.tsx | 16 ++--- 2 files changed, 56 insertions(+), 29 deletions(-) diff --git a/src/components/auth/RegisterFormFields.tsx b/src/components/auth/RegisterFormFields.tsx index f6ce716..fdb9d1f 100644 --- a/src/components/auth/RegisterFormFields.tsx +++ b/src/components/auth/RegisterFormFields.tsx @@ -1,6 +1,8 @@ +import { useState } from 'react'; import { Input } from "@/components/ui/input"; import { Label } from '@/components/ui/label'; +import { Eye, EyeOff } from 'lucide-react'; interface RegisterFormFieldsProps { nome: string; @@ -33,6 +35,9 @@ const RegisterFormFields = ({ setConfirmaSenha, isLoading }: RegisterFormFieldsProps) => { + const [showPassword, setShowPassword] = useState(false); + const [showConfirmPassword, setShowConfirmPassword] = useState(false); + return ( <>