(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,11241,e=>{"use strict";let t=(0,e.i(56420).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",0,t],11241)},94542,e=>{"use strict";var t=e.i(43476),a=e.i(22016),r=e.i(97923),s=e.i(11241),l=e.i(71645),n=e.i(17255),i=e.i(18566);e.s(["default",0,function(){let[e,o]=(0,l.useState)(""),[d,c]=(0,l.useState)(""),[u,x]=(0,l.useState)(!1),h=(0,i.useRouter)(),b=async()=>{if(!e||!d)return alert("Vui lòng nhập đủ Email và Mật khẩu");x(!0);let t=await (0,n.signIn)("credentials",{email:e,password:d,redirect:!1});x(!1),t?.error?alert(t.error):(h.refresh(),"admin@revshare.vn"===e?h.push("/admin"):h.push("/dashboard"))};return(0,t.jsxs)("div",{className:"min-h-screen bg-[#030712] relative overflow-hidden flex items-center justify-center pt-20 pb-20",children:[(0,t.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,t.jsxs)("div",{className:"relative z-10 w-full max-w-md mx-auto px-4",children:[(0,t.jsxs)(a.default,{href:"/",className:"inline-flex items-center gap-2 text-slate-400 hover:text-blue-400 mb-8 font-bold transition-colors",children:[(0,t.jsx)(s.ArrowLeft,{className:"w-4 h-4"})," Về trang chủ"]}),(0,t.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,t.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,t.jsx)(r.LogIn,{className:"w-8 h-8 text-blue-400"})}),(0,t.jsx)("h1",{className:"text-2xl font-black text-white mb-2",children:"Đăng Nhập"}),(0,t.jsx)("p",{className:"text-slate-400 mb-8 text-sm",children:"Chào mừng quay trở lại hệ thống!"}),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)("input",{type:"email",value:e,onChange:e=>o(e.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,t.jsx)("input",{type:"password",value:d,onChange:e=>c(e.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,t.jsx)("button",{onClick:b,disabled:u,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:u?"Đang xử lý...":"Tiếp tục"})]}),(0,t.jsxs)("div",{className:"mt-6 text-sm text-slate-500",children:["Chưa có tài khoản? ",(0,t.jsx)(a.default,{href:"/register",className:"text-blue-400 hover:text-blue-300 font-bold",children:"Đăng ký ngay"})]})]})]})]})}])}]);