diff --git a/frontend/src/pages/Login.jsx b/frontend/src/pages/Login.jsx
index 12bc4c0..7b81dfe 100644
--- a/frontend/src/pages/Login.jsx
+++ b/frontend/src/pages/Login.jsx
@@ -4,6 +4,7 @@ import { ArrowLeft, Eye, EyeOff, FileText } from 'lucide-react';
import { authAPI } from '../utils/api';
import toast from 'react-hot-toast';
import authContext from '../context/AuthProvider';
+import themeContext from '../context/ThemeProvider';
import OAuthButtons from '../components/OAuthButtons';
import Input from '../components/ui/Input';
@@ -16,6 +17,7 @@ const Login = () => {
const navigate = useNavigate();
const location = useLocation();
const { setuser } = useContext(authContext);
+ const { theme, settheme } = useContext(themeContext);
// Handle OAuth errors from URL parameters
useEffect(() => {
@@ -136,17 +138,49 @@ const Login = () => {
- {/* Right Side - Login Form */}
-
- {/* Back Link */}
-
-
-
-
Home
-
+
+
+
+
{
+ e.preventDefault();
+ if (window.history.length > 1) navigate(-1);
+ else navigate('/');
+ }}
+ className="flex items-center gap-2 text-base-content/70 hover:text-base-content transition-colors"
+ >
+
+
Back
+
+
+
+
{/* Mobile Logo (visible on small screens) */}
diff --git a/frontend/src/pages/Signup.jsx b/frontend/src/pages/Signup.jsx
index 667f25a..ccde8b0 100644
--- a/frontend/src/pages/Signup.jsx
+++ b/frontend/src/pages/Signup.jsx
@@ -4,6 +4,7 @@ import { ArrowLeft, Eye, EyeOff, FileText } from 'lucide-react';
import { authAPI } from '../utils/api';
import toast from 'react-hot-toast';
import authContext from '../context/AuthProvider';
+import themeContext from '../context/ThemeProvider';
import OAuthButtons from '../components/OAuthButtons';
import Input from '../components/ui/Input';
@@ -18,6 +19,7 @@ const Signup = () => {
const navigate = useNavigate();
const location = useLocation();
const { setuser } = useContext(authContext);
+ const { theme, settheme } = useContext(themeContext);
// Handle OAuth errors from URL params
useEffect(() => {
@@ -156,17 +158,49 @@ const Signup = () => {
- {/* Right Side - Signup Form */}
-
- {/* Back Link */}
-
-
-
-
Home
-
+
+
+
+
{
+ e.preventDefault();
+ if (window.history.length > 1) navigate(-1);
+ else navigate('/');
+ }}
+ className="flex items-center gap-2 text-base-content/70 hover:text-base-content transition-colors"
+ >
+
+
Back
+
+
+
+
{/* Mobile Logo (visible on small screens) */}