(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9097],{63:(e,s,t)=>{"use strict";var a=t(7260);t.o(a,"usePathname")&&t.d(s,{usePathname:function(){return a.usePathname}}),t.o(a,"useRouter")&&t.d(s,{useRouter:function(){return a.useRouter}}),t.o(a,"useSearchParams")&&t.d(s,{useSearchParams:function(){return a.useSearchParams}})},1424:(e,s,t)=>{Promise.resolve().then(t.bind(t,9209))},9209:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>d});var a=t(5155),l=t(5239),i=t(63),r=t(2115);function d(e){let{children:s}=e,t=(0,i.useRouter)(),[d,n]=(0,r.useState)(!0);return((0,r.useEffect)(()=>{if(localStorage.getItem("adminToken")){var e;let s=null==(e=document.cookie.split("; ").find(e=>e.startsWith("userRole=")))?void 0:e.split("=")[1];t.push("admin"===s?"/admin":"/dashboard")}else n(!1)},[t]),d)?(0,a.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-background",children:(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary mx-auto mb-4"}),(0,a.jsx)("p",{className:"text-muted-foreground",children:"Loading..."})]})}):(0,a.jsxs)("div",{className:"min-h-screen flex",children:[(0,a.jsxs)("div",{className:"hidden lg:flex lg:w-[45%] flex-col items-center justify-center p-12 relative overflow-hidden",style:{background:"linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 40%, #2563eb 70%, #3b82f6 100%)"},children:[(0,a.jsx)("div",{className:"absolute -top-24 -left-24 w-72 h-72 rounded-full bg-white/5"}),(0,a.jsx)("div",{className:"absolute -bottom-32 -right-16 w-96 h-96 rounded-full bg-white/5"}),(0,a.jsx)("div",{className:"absolute top-1/4 right-[8%] w-28 h-28 rounded-full bg-white/10"}),(0,a.jsx)("div",{className:"absolute bottom-1/4 left-[5%] w-16 h-16 rounded-full bg-white/10"}),(0,a.jsxs)("div",{className:"relative z-10 text-center max-w-sm",children:[(0,a.jsx)("div",{className:"flex items-center justify-center mb-6",children:(0,a.jsx)("div",{className:"bg-white/20 backdrop-blur-sm rounded-2xl p-4 border border-white/30",children:(0,a.jsx)(l.default,{src:"/t-coin.png",alt:"T-Coin",width:72,height:72,className:"object-contain"})})}),(0,a.jsx)("h1",{className:"text-4xl font-bold text-white mb-3",children:"TCoin Admin"}),(0,a.jsx)("p",{className:"text-blue-100 text-base leading-relaxed",children:"Secure and powerful administration portal for managing the T-Coin digital ecosystem."}),(0,a.jsx)("div",{className:"mt-10 grid grid-cols-3 gap-4",children:[{label:"Secure",icon:"\uD83D\uDD12"},{label:"Fast",icon:"⚡"},{label:"Reliable",icon:"✅"}].map(e=>(0,a.jsxs)("div",{className:"bg-white/15 backdrop-blur-sm rounded-xl p-3 border border-white/20",children:[(0,a.jsx)("div",{className:"text-2xl mb-1",children:e.icon}),(0,a.jsx)("div",{className:"text-white text-xs font-semibold",children:e.label})]},e.label))})]})]}),(0,a.jsx)("div",{className:"flex-1 flex items-center justify-center p-6 sm:p-10 bg-background",children:(0,a.jsx)("div",{className:"w-full max-w-md",children:s})})]})}}},e=>{e.O(0,[5239,8441,1255,7358],()=>e(e.s=1424)),_N_E=e.O()}]);