diff --git a/src/components/auth/auth-page.tsx b/src/components/auth/auth-page.tsx index 5b23341..efb558c 100644 --- a/src/components/auth/auth-page.tsx +++ b/src/components/auth/auth-page.tsx @@ -5,21 +5,68 @@ import { SignInForm } from "./signin-form" import { SignUpForm } from "./signup-form" export function AuthPage() { - const [isSignIn, setIsSignIn] = useState(true) + const [isSignIn, setIsSignIn] = useState(false) - return ( -
-
-
-

Codenuk

-

AI-Powered Project Builder

-
- {isSignIn ? ( - setIsSignIn(false)} /> - ) : ( - setIsSignIn(true)} /> - )} -
-
- ) + return ( +
+
+ {/* Left: Gradient panel with steps */} +
+
+ {/* subtle grain */} +
+
+
+ + {/* soft circular accents (minimal) */} +
+
+
+ +
+
+

Codenuk

+
+

Get Started with Us

+

Complete these easy steps to register your account.

+ +
+ {/* Step 1 */} +
+
1
+ Sign up your account +
+ {/* Step 2 */} +
+
2
+ Set up your workspace +
+ {/* Step 3 */} + {/*
+
3
+ Set up your profile +
*/} +
+
+
+
+ + {/* Right: Form area */} +
+
+
+

{isSignIn ? "Sign In Account" : "Sign Up Account"}

+

{isSignIn ? "Enter your credentials to access your account." : "Enter your personal data to create your account."}

+
+ + {isSignIn ? ( + setIsSignIn(false)} /> + ) : ( + setIsSignIn(true)} /> + )} +
+
+
+
+ ) } diff --git a/src/components/auth/signin-form.tsx b/src/components/auth/signin-form.tsx index 27314bd..e15d5bf 100644 --- a/src/components/auth/signin-form.tsx +++ b/src/components/auth/signin-form.tsx @@ -7,7 +7,6 @@ import { useRouter } from "next/navigation" import { Button } from "@/components/ui/button" import { Input } from "@/components/ui/input" import { Label } from "@/components/ui/label" -import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card" import { Eye, EyeOff, Loader2 } from "lucide-react" import { useAuth } from "@/contexts/auth-context" @@ -47,71 +46,66 @@ export function SignInForm({ onToggleMode }: SignInFormProps) { } return ( - - - Sign In - Enter your credentials to access your account - - -
-
- +
+ +
+ + setFormData({ ...formData, email: e.target.value })} + required + className="h-11 bg-white/5 border-white/10 text-white placeholder:text-white/40 focus:border-white/30 focus:ring-white/30" + /> +
+
+ +
setFormData({ ...formData, email: e.target.value })} + id="password" + type={showPassword ? "text" : "password"} + placeholder="Enter your password" + value={formData.password} + onChange={(e) => setFormData({ ...formData, password: e.target.value })} required + className="h-11 bg-white/5 border-white/10 text-white placeholder:text-white/40 focus:border-white/30 focus:ring-white/30 pr-12" /> -
-
- -
- setFormData({ ...formData, password: e.target.value })} - required - /> - -
-
- - {/* Error Message */} - {error && ( -
- {error} -
- )} - - -
-
- - - +
+ + {error && ( +
+ {error} +
+ )} + + +
+ +
+ +
) } diff --git a/src/components/auth/signup-form.tsx b/src/components/auth/signup-form.tsx index 5f052fe..5a31652 100644 --- a/src/components/auth/signup-form.tsx +++ b/src/components/auth/signup-form.tsx @@ -56,15 +56,15 @@ export function SignUpForm({ onToggleMode }: SignUpFormProps) { } return ( - - - Sign Up - Create your account to get started + + + Sign Up + Create your account to get started - -
+ +
- + setFormData({ ...formData, name: e.target.value })} required + className="h-11 bg-white/5 border-white/10 text-white placeholder:text-white/40 focus:border-white/30 focus:ring-white/30" />
- + setFormData({ ...formData, email: e.target.value })} required + className="h-11 bg-white/5 border-white/10 text-white placeholder:text-white/40 focus:border-white/30 focus:ring-white/30" />
- +
setFormData({ ...formData, password: e.target.value })} required + className="h-11 bg-white/5 border-white/10 text-white placeholder:text-white/40 focus:border-white/30 focus:ring-white/30 pr-12" />
- +
setFormData({ ...formData, confirmPassword: e.target.value })} required + className="h-11 bg-white/5 border-white/10 text-white placeholder:text-white/40 focus:border-white/30 focus:ring-white/30 pr-12" />
- {/* Error Message */} {error && ( -
+
{error}
)} -
-
@@ -157,3 +169,4 @@ export function SignUpForm({ onToggleMode }: SignUpFormProps) { ) } +