'use client' import { useState } from 'react' import { signIn } from 'next-auth/react' import { useRouter } from 'next/navigation' import { Shield, Lock, ArrowRight, Loader2, KeyRound, Sparkles, Eye, EyeOff } from 'lucide-react' export default function LoginPage() { const router = useRouter() const [username, setUsername] = useState('') const [password, setPassword] = useState('') const [showPassword, setShowPassword] = useState(false) const [error, setError] = useState('') const [loading, setLoading] = useState(false) async function handleSubmit(e: React.FormEvent) { e.preventDefault() setLoading(true) setError('') const result = await signIn('credentials', { username, password, redirect: false, }) setLoading(false) if (result?.ok) { router.push('/dashboard') } else { setError('Geçersiz kullanıcı adı veya şifre') } } return (
{/* Brand header */}

ConfigVault v1.0

Merkezi Remote Config & Gizli Anahtar Yönetimi

{/* Glass Card */}
{/* Subtle top glow line */}
setUsername(e.target.value)} required autoFocus className="w-full glass-input rounded-xl px-4 py-3 text-white placeholder-slate-500 focus:outline-none text-sm font-medium" placeholder="admin" />
setPassword(e.target.value)} required className="w-full glass-input rounded-xl px-4 py-3 pr-11 text-white placeholder-slate-500 focus:outline-none text-sm font-medium" placeholder="••••••••" />
{error && (
{error}
)} {/* Security details pill */}
JWT & Bcrypt Korumalı
SSL / TLS Güvenli
{/* Footer info */}

ConfigVault • Tüm ortam ve dinamik ayarlarınız güvende

) }