'use client'; import { useState } from 'react'; import { useRouter } from 'next/navigation'; import Link from 'next/link'; import { Eye, EyeOff, ArrowRight, Sparkles, Check } from 'lucide-react'; import { useAuthStore } from '@/stores/auth-store'; export default function SignupPage() { const router = useRouter(); const signup = useAuthStore((state) => state.signup); const [name, setName] = useState(''); const [email, setEmail] = useState(''); const [password, setPassword] = useState(''); const [showPassword, setShowPassword] = useState(false); const [loading, setLoading] = useState(false); const [error, setError] = useState(''); const handleSubmit = async (e: React.FormEvent) => { e.preventDefault(); setLoading(true); setError(''); if (password.length < 8) { setError('Password must be at least 8 characters'); setLoading(false); return; } try { await signup(email, password, name); router.push('/workspace'); } catch { setError('Failed to create account. Please try again.'); } finally { setLoading(false); } }; const features = [ 'Deploy unlimited AI agents', 'Real-time monitoring dashboard', 'Built-in governance tools', 'API access included', ]; return (
{/* Left side - Branding */}
B
BlackRoad OS

Start Building{' '} Today

Join thousands of developers deploying AI agents at scale.

{features.map((feature) => (
{feature}
))}
{/* Right side - Signup form */}
{/* Mobile logo */}
B
BlackRoad OS
Free to start

Create your account

Get started in minutes. No credit card required.

{error && (

{error}

)}
setName(e.target.value)} className="w-full px-4 py-3 bg-white/5 border border-white/10 rounded-xl text-white placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-hot-pink/50 focus:border-transparent transition-all" placeholder="John Doe" />
setEmail(e.target.value)} className="w-full px-4 py-3 bg-white/5 border border-white/10 rounded-xl text-white placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-hot-pink/50 focus:border-transparent transition-all" placeholder="you@example.com" />
setPassword(e.target.value)} className="w-full px-4 py-3 bg-white/5 border border-white/10 rounded-xl text-white placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-hot-pink/50 focus:border-transparent transition-all pr-12" placeholder="Create a strong password" />

Must be at least 8 characters

Or sign up with

Already have an account?{' '} Sign in

); }