diff --git a/frontend/src/components/Auth/AuthModal.tsx b/frontend/src/components/Auth/AuthModal.tsx index 7613322..91eeb90 100644 --- a/frontend/src/components/Auth/AuthModal.tsx +++ b/frontend/src/components/Auth/AuthModal.tsx @@ -48,9 +48,9 @@ const AuthModal: React.FC = ({ onClose }) => { id="auth-modal" className="fixed inset-0 flex items-start justify-center z-[9000] h-[95vh] m-auto pt-[15vh] rounded-[5rem] transition-all animate-floating" > -
+
{/* Login/Register Buttons Container */} -
+
{/* Login Toggle */} = ({ onClose }) => { {/* Form Container */}
{/*Border Container*/}
{authSwitch()}
diff --git a/frontend/src/components/Auth/LoginForm.tsx b/frontend/src/components/Auth/LoginForm.tsx index 54d0ee0..cabad08 100644 --- a/frontend/src/components/Auth/LoginForm.tsx +++ b/frontend/src/components/Auth/LoginForm.tsx @@ -100,72 +100,69 @@ const LoginForm: React.FC = ({ onSubmit, onForgotPassword }) => { return ( <> -
+

Login

-
-
- {errors.general && ( -

- {errors.general} -

- )} + + {errors.general && ( +

+ {errors.general} +

+ )} - {errors.username && ( -

- {errors.username} -

- )} + {errors.username && ( +

+ {errors.username} +

+ )} + + + {errors.password && ( +

+ {errors.password} +

+ )} + +
- - {errors.password && ( -

- {errors.password} -

- )} - -
- -
- -
+ > +
+
- - - +
+ -
+
); diff --git a/frontend/src/components/Auth/RegisterForm.tsx b/frontend/src/components/Auth/RegisterForm.tsx index 9572116..43b3bef 100644 --- a/frontend/src/components/Auth/RegisterForm.tsx +++ b/frontend/src/components/Auth/RegisterForm.tsx @@ -108,97 +108,86 @@ const RegisterForm: React.FC = ({ onSubmit }) => { return ( <> -
-
-

- Register -

-
-
-
- {errors.general && ( -

- {errors.general} -

- )} - - {errors.username && ( -

- {errors.username} -

- )} - -
- -
- {errors.email && ( -

- {errors.email} -

- )} - -
- -
- {errors.password && ( -

- {errors.password} -

- )} - -
-
- {errors.confirmPassword && ( -

- {errors.confirmPassword} -

- )} - -
- - -
-
-
+
+

+ Register +

+
+ {errors.general && ( +

+ {errors.general} +

+ )} + + {errors.username && ( +

+ {errors.username} +

+ )} + + + {errors.email && ( +

+ {errors.email} +

+ )} + + + {errors.password && ( +

+ {errors.password} +

+ )} + + + {errors.confirmPassword && ( +

+ {errors.confirmPassword} +

+ )} + + + +
);