module.exports=[19107,a=>{"use strict";let b=(0,a.i(64831).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);a.s(["ArrowLeft",0,b],19107)},93482,a=>{"use strict";var b=a.i(87924),c=a.i(38246),d=a.i(74896),e=a.i(19107),f=a.i(72131),g=a.i(75003),h=a.i(50944);a.s(["default",0,function(){let[a,i]=(0,f.useState)(""),[j,k]=(0,f.useState)(""),[l,m]=(0,f.useState)(!1),n=(0,h.useRouter)(),o=async()=>{if(!a||!j)return alert("Vui lòng nhập đủ Email và Mật khẩu");m(!0);let b=await (0,g.signIn)("credentials",{email:a,password:j,redirect:!1});m(!1),b?.error?alert(b.error):(n.refresh(),"admin@revshare.vn"===a?n.push("/admin"):n.push("/dashboard"))};return(0,b.jsxs)("div",{className:"min-h-screen bg-[#030712] relative overflow-hidden flex items-center justify-center pt-20 pb-20",children:[(0,b.jsx)("div",{className:"absolute inset-0 bg-[linear-gradient(to_right,#334155_1px,transparent_1px),linear-gradient(to_bottom,#334155_1px,transparent_1px)] bg-[size:4rem_4rem] [mask-image:radial-gradient(ellipse_60%_50%_at_50%_0%,#000_70%,transparent_100%)] opacity-20 pointer-events-none"}),(0,b.jsxs)("div",{className:"relative z-10 w-full max-w-md mx-auto px-4",children:[(0,b.jsxs)(c.default,{href:"/",className:"inline-flex items-center gap-2 text-slate-400 hover:text-blue-400 mb-8 font-bold transition-colors",children:[(0,b.jsx)(e.ArrowLeft,{className:"w-4 h-4"})," Về trang chủ"]}),(0,b.jsxs)("div",{className:"bg-slate-900/80 backdrop-blur-xl border border-slate-800 rounded-2xl p-8 shadow-[0_0_30px_rgba(0,0,0,0.5)] text-center",children:[(0,b.jsx)("div",{className:"w-16 h-16 bg-blue-500/10 border border-blue-500/30 rounded-full flex items-center justify-center mx-auto mb-6 shadow-[0_0_20px_rgba(59,130,246,0.3)]",children:(0,b.jsx)(d.LogIn,{className:"w-8 h-8 text-blue-400"})}),(0,b.jsx)("h1",{className:"text-2xl font-black text-white mb-2",children:"Đăng Nhập"}),(0,b.jsx)("p",{className:"text-slate-400 mb-8 text-sm",children:"Chào mừng quay trở lại hệ thống!"}),(0,b.jsxs)("div",{className:"space-y-4",children:[(0,b.jsx)("input",{type:"email",value:a,onChange:a=>i(a.target.value),placeholder:"Email của bạn (thử admin@revshare.vn)",className:"w-full bg-slate-950 border border-slate-700 rounded-xl px-4 py-3 text-slate-200 outline-none focus:border-blue-500 transition-colors"}),(0,b.jsx)("input",{type:"password",value:j,onChange:a=>k(a.target.value),placeholder:"Mật khẩu (thử admin123)",className:"w-full bg-slate-950 border border-slate-700 rounded-xl px-4 py-3 text-slate-200 outline-none focus:border-blue-500 transition-colors"}),(0,b.jsx)("button",{onClick:o,disabled:l,className:"w-full bg-blue-600 hover:bg-blue-500 text-white font-bold rounded-xl px-4 py-3 shadow-[0_0_15px_rgba(37,99,235,0.4)] transition-colors disabled:opacity-50",children:l?"Đang xử lý...":"Tiếp tục"})]}),(0,b.jsxs)("div",{className:"mt-6 text-sm text-slate-500",children:["Chưa có tài khoản? ",(0,b.jsx)(c.default,{href:"/register",className:"text-blue-400 hover:text-blue-300 font-bold",children:"Đăng ký ngay"})]})]})]})]})}])}];

//# sourceMappingURL=_1fl7f7x._.js.map