diff --git a/frontend/src/components/auth/LoginForm.tsx b/frontend/src/components/auth/LoginForm.tsx
index ae5ad0e..d9b3a2c 100644
--- a/frontend/src/components/auth/LoginForm.tsx
+++ b/frontend/src/components/auth/LoginForm.tsx
@@ -1,103 +1,63 @@
-import { useState } from 'react';
-import { useAuth } from '../../contexts/AuthContext';
-import { useNavigate, Link } from 'react-router-dom';
-import { Button } from '../ui/button';
-import { Input } from '../ui/input';
-import { Label } from '../ui/label';
-import { Alert, AlertDescription } from '../ui/alert';
-
-// Icons
-const CodeIntelLogo = () => (
-
- CI
-
-)
-
-const GitHubIcon = () => (
-
-)
-
-const SparklesIcon = () => (
-
-)
+import { useState } from 'react'
+import { useAuth } from '@/contexts/AuthContext'
+import { useNavigate, Link } from 'react-router-dom'
+import { Button } from '@/components/ui/button'
+import { Input } from '@/components/ui/input'
+import { Label } from '@/components/ui/label'
+import { Alert, AlertDescription } from '@/components/ui/alert'
+import { Navbar } from '@/components/landing'
+import { Github, Loader2, Mail, Lock } from 'lucide-react'
export function LoginForm() {
- const [email, setEmail] = useState('');
- const [password, setPassword] = useState('');
- const [error, setError] = useState('');
- const [loading, setLoading] = useState(false);
- const { signIn } = useAuth();
- const navigate = useNavigate();
+ const [email, setEmail] = useState('')
+ const [password, setPassword] = useState('')
+ const [error, setError] = useState('')
+ const [loading, setLoading] = useState(false)
+ const { signIn } = useAuth()
+ const navigate = useNavigate()
const handleSubmit = async (e: React.FormEvent) => {
- e.preventDefault();
- setError('');
- setLoading(true);
+ e.preventDefault()
+ setError('')
+ setLoading(true)
try {
- await signIn(email, password);
- navigate('/dashboard');
+ await signIn(email, password)
+ navigate('/dashboard')
} catch (err: any) {
- setError(err.message || 'Login failed');
+ setError(err.message || 'Login failed')
} finally {
- setLoading(false);
+ setLoading(false)
}
- };
+ }
return (
-
- {/* Navigation */}
-
+
+
- {/* Main Content */}
-
- {/* Header */}
+
-
-
- Welcome back
-
-
+
Sign in to CodeIntel
-
- Continue your AI-powered code exploration
+
+ Enter your credentials to continue
- {/* Login Card */}
-