From 526343f406eaba3e162d2c67aa908ceb99b65122 Mon Sep 17 00:00:00 2001 From: Shanidhya01 Date: Sat, 20 Jun 2026 23:56:39 +0530 Subject: [PATCH] fix: make login and signup pages fit within viewport height --- client/package-lock.json | 2 +- client/src/index.css | 15 ++++++++ client/src/pages/Login.jsx | 35 ++++++++++-------- client/src/pages/Signup.jsx | 71 ++++++++++++++++++++----------------- 4 files changed, 74 insertions(+), 49 deletions(-) diff --git a/client/package-lock.json b/client/package-lock.json index ec620f83..0e10b799 100644 --- a/client/package-lock.json +++ b/client/package-lock.json @@ -22,7 +22,7 @@ "lottie-react": "^2.4.1", "react": "^19.2.0", "react-dom": "^19.2.0", - "react-icons": "^5.5.0", + "react-icons": "^5.6.0", "react-router-dom": "^7.10.1", "socket.io-client": "^4.8.1", "tailwind-merge": "^3.4.0", diff --git a/client/src/index.css b/client/src/index.css index 0a79c74d..cabba88b 100644 --- a/client/src/index.css +++ b/client/src/index.css @@ -238,4 +238,19 @@ html{ html::-webkit-scrollbar { display: none !important; width: 0px !important +} + +/* Hide scrollbar but keep scroll functionality */ +.scrollbar-none { + scrollbar-width: none; + -ms-overflow-style: none; +} +.scrollbar-none::-webkit-scrollbar { + display: none; +} + +/* Auth left panel dot grid texture */ +.auth-panel-bg { + background-image: radial-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px); + background-size: 28px 28px; } \ No newline at end of file diff --git a/client/src/pages/Login.jsx b/client/src/pages/Login.jsx index 5a0316bc..ca6af6d1 100644 --- a/client/src/pages/Login.jsx +++ b/client/src/pages/Login.jsx @@ -195,21 +195,25 @@ const Login = () => { }; return ( -
+
{/* Left: Form */} + {/* Decorative ambient glows */} +
+
+
@@ -222,11 +226,12 @@ const Login = () => { -

- Welcome back to
+

+ Welcome back to
Infinity.

-

Login to access your high-performance workspace.

+
+

Login to access your high-performance workspace.

{error && ( @@ -251,7 +256,7 @@ const Login = () => { )} -
+
@@ -299,7 +304,7 @@ const Login = () => { whileTap={{ scale: loading ? 1 : 0.98 }} type="submit" disabled={loading} - className={`w-full bg-gradient-to-r from-indigo-600 to-purple-600 hover:from-indigo-500 hover:to-purple-500 text-white font-bold py-4 rounded-xl shadow-lg shadow-indigo-500/25 flex items-center justify-center gap-2 group transition-all mt-4 ${loading ? 'opacity-50 cursor-not-allowed' : ''}`} + className={`w-full bg-gradient-to-r from-indigo-600 to-purple-600 hover:from-indigo-500 hover:to-purple-500 text-white font-bold py-3.5 rounded-xl shadow-lg shadow-indigo-500/25 flex items-center justify-center gap-2 group transition-all mt-3 ${loading ? 'opacity-50 cursor-not-allowed' : ''}`} > {loading ? ( <> @@ -314,8 +319,8 @@ const Login = () => { -
-
+
+
or
@@ -326,14 +331,14 @@ const Login = () => { type="button" onClick={handleGoogleClick} disabled={loading} - className={`w-full bg-slate-800/40 hover:bg-slate-800/60 text-white font-semibold py-4 rounded-xl border border-slate-700/80 hover:border-slate-600 flex items-center justify-center gap-2 transition-all ${loading ? 'opacity-50 cursor-not-allowed' : ''}`} + className={`w-full bg-slate-800/40 hover:bg-slate-800/60 text-white font-semibold py-3.5 rounded-xl border border-slate-700/80 hover:border-slate-600 flex items-center justify-center gap-2 transition-all ${loading ? 'opacity-50 cursor-not-allowed' : ''}`} > Continue with Google
-

+

New to EduBoard?{' '} Create an account @@ -408,7 +413,7 @@ const Login = () => { className="flex flex-col items-center" > -

+

Welcome Back, Scholar! 🚀

@@ -427,7 +432,7 @@ const Login = () => { className="flex flex-col items-center" > -
+

Welcome Back, Educator! 🎓

@@ -446,7 +451,7 @@ const Login = () => { className="flex flex-col items-center" > -
+

Welcome to EduBoard! 👋

diff --git a/client/src/pages/Signup.jsx b/client/src/pages/Signup.jsx index 595f509f..f783740d 100644 --- a/client/src/pages/Signup.jsx +++ b/client/src/pages/Signup.jsx @@ -172,21 +172,25 @@ const Signup = () => { }; return ( -
+
{/* Left: Form */} + {/* Decorative ambient glows */} +
+
+
@@ -199,85 +203,86 @@ const Signup = () => { -

- Start your
+

+ Start your
Journey.

-

Join the platform redefining digital collaboration.

+
+

Join the platform redefining digital collaboration.

{error && (
{error}
)} -
+
- +
- +
- +
- +
- +
- + {showPassword ? ( - setShowPassword(false)} /> + setShowPassword(false)} /> ) : ( - setShowPassword(true)} /> + setShowPassword(true)} /> )}
-

- Password must contain at least 8 characters with a number, uppercase letter, and special character. +

+ Min. 8 chars with a number, uppercase & special character.

{/* Role Selection */}
- +
- - @@ -394,7 +399,7 @@ const Signup = () => { whileTap={{ scale: loading ? 1 : 0.98 }} type="submit" disabled={loading} - className={`w-full bg-gradient-to-r from-cyan-600 to-blue-600 hover:from-cyan-500 hover:to-blue-500 text-white font-bold py-4 rounded-xl shadow-lg shadow-cyan-500/25 flex items-center justify-center gap-2 group transition-all mt-4 ${loading ? 'opacity-50 cursor-not-allowed' : '' + className={`w-full bg-gradient-to-r from-cyan-600 to-blue-600 hover:from-cyan-500 hover:to-blue-500 text-white font-bold py-3 rounded-xl shadow-lg shadow-cyan-500/25 flex items-center justify-center gap-2 group transition-all mt-1 ${loading ? 'opacity-50 cursor-not-allowed' : '' }`} > {loading ? ( @@ -412,8 +417,8 @@ const Signup = () => { {formData.role === 'student' && ( -
-
+
+
or
@@ -424,7 +429,7 @@ const Signup = () => { type="button" onClick={handleGoogleClick} disabled={loading} - className={`w-full bg-slate-800/40 hover:bg-slate-800/60 text-white font-semibold py-4 rounded-xl border border-slate-700/80 hover:border-slate-600 flex items-center justify-center gap-2 transition-all ${loading ? 'opacity-50 cursor-not-allowed' : ''}`} + className={`w-full bg-slate-800/40 hover:bg-slate-800/60 text-white font-semibold py-3 rounded-xl border border-slate-700/80 hover:border-slate-600 flex items-center justify-center gap-2 transition-all ${loading ? 'opacity-50 cursor-not-allowed' : ''}`} > Continue with Google @@ -432,7 +437,7 @@ const Signup = () => {
)} -

+

Already have an account?{' '} Sign In @@ -490,7 +495,7 @@ const Signup = () => { className="flex flex-col items-center" > -

+

Start Your Learning Journey! 🚀

@@ -509,7 +514,7 @@ const Signup = () => { className="flex flex-col items-center" > -
+

Empower the Next Generation! 🎓