(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7150],{95193:function(e,s,t){Promise.resolve().then(t.bind(t,36296))},36296:function(e,s,t){"use strict";t.r(s);var r=t(57437),l=t(59155),a=t(98963),i=t(93073),d=t(66648),c=t(16463),n=t(2265);s.default=()=>{let{isLoaded:e,isSignedIn:s,user:t}=(0,i.aF)(),o=(0,c.useRouter)();return((0,n.useEffect)(()=>{if(e&&s){let e=null==t?void 0:t.publicMetadata.role;e?o.push("/".concat(e)):o.push("/home")}},[e,s,t,o]),e)?(0,r.jsxs)("div",{className:"h-screen flex items-center justify-center relative overflow-hidden",children:[(0,r.jsx)(d.default,{src:"/college-front.jpeg",alt:"Campus",fill:!0,priority:!0,className:"object-cover",sizes:"100vw"}),(0,r.jsx)("div",{className:"absolute inset-0 bg-black/40 backdrop-blur-[2px]"}),(0,r.jsx)("div",{className:"absolute inset-0 pointer-events-none",style:{background:"radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.6) 100%)"}}),(0,r.jsx)("div",{className:"absolute top-[-20%] left-[-10%] w-[60%] h-[60%] rounded-full bg-blue-500/5 blur-3xl animate-pulse"}),(0,r.jsx)("div",{className:"absolute bottom-[-20%] right-[-10%] w-[50%] h-[50%] rounded-full bg-emerald-500/5 blur-3xl animate-pulse delay-1000"}),(0,r.jsxs)("div",{className:"relative z-10 w-full max-w-md mx-4",children:[(0,r.jsx)("div",{className:"h-1 w-full bg-gradient-to-r from-transparent via-blue-400 to-transparent rounded-t-2xl"}),(0,r.jsxs)("div",{className:"bg-white/10 backdrop-blur-md border border-white/20 rounded-2xl p-10 shadow-2xl shadow-black/30",children:[(0,r.jsxs)("div",{className:"flex flex-col items-center mb-8",children:[(0,r.jsx)("div",{className:"w-16 h-16 rounded-full bg-white/10 backdrop-blur-sm border border-white/20 flex items-center justify-center mb-4 shadow-lg",children:(0,r.jsx)(d.default,{src:"/logo.png",alt:"GA-ATLAS",width:36,height:36})}),(0,r.jsx)("h1",{className:"text-2xl font-bold text-white tracking-wide",children:"GA-ATLAS"}),(0,r.jsx)("p",{className:"text-[11px] text-white/40 uppercase tracking-[0.25em] mt-1",children:"Garrison Academy \xb7 GASCB"})]}),(0,r.jsx)(a.fC,{children:(0,r.jsxs)(l.AF,{name:"start",className:"flex flex-col gap-4",children:[(0,r.jsx)(l.gk,{className:"text-sm text-red-300 text-center bg-red-500/10 border border-red-400/20 rounded-lg px-3 py-2"}),(0,r.jsxs)(l.gN,{name:"identifier",className:"flex flex-col gap-1.5",children:[(0,r.jsx)(l.__,{className:"text-xs text-white/60 font-medium uppercase tracking-wider",children:"Username"}),(0,r.jsx)(l.II,{type:"text",required:!0,className:"w-full p-3 rounded-lg bg-white/5 border border-white/10 text-white placeholder-white/30 focus:outline-none focus:border-blue-400/50 focus:bg-white/10 focus:ring-1 focus:ring-blue-400/30 transition-all duration-300"}),(0,r.jsx)(l.cp,{className:"text-xs text-red-300"})]}),(0,r.jsxs)(l.gN,{name:"password",className:"flex flex-col gap-1.5",children:[(0,r.jsx)(l.__,{className:"text-xs text-white/60 font-medium uppercase tracking-wider",children:"Password"}),(0,r.jsx)(l.II,{type:"password",required:!0,className:"w-full p-3 rounded-lg bg-white/5 border border-white/10 text-white placeholder-white/30 focus:outline-none focus:border-blue-400/50 focus:bg-white/10 focus:ring-1 focus:ring-blue-400/30 transition-all duration-300"}),(0,r.jsx)(l.cp,{className:"text-xs text-red-300"})]}),(0,r.jsx)(a.aU,{submit:!0,className:"mt-2 w-full py-3 rounded-lg bg-gradient-to-r from-blue-600 to-blue-500 hover:from-blue-500 hover:to-blue-400 text-white font-semibold text-sm uppercase tracking-wider shadow-lg shadow-blue-500/20 hover:shadow-blue-500/40 transition-all duration-300 active:scale-[0.98]",children:"Sign In"})]})}),(0,r.jsx)("div",{className:"mt-8 pt-4 border-t border-white/10 text-center",children:(0,r.jsx)("p",{className:"text-[10px] text-white/25 uppercase tracking-[0.3em]",children:"APS Garrison Academy Senior Campus for Boys"})})]})]})]}):(0,r.jsxs)("div",{className:"h-screen flex items-center justify-center relative overflow-hidden",children:[(0,r.jsx)(d.default,{src:"/college-front.jpeg",alt:"Campus",fill:!0,priority:!0,className:"object-cover",sizes:"100vw"}),(0,r.jsx)("div",{className:"absolute inset-0 bg-black/60"}),(0,r.jsxs)("div",{className:"relative z-10 flex flex-col items-center gap-4",children:[(0,r.jsx)("div",{className:"w-12 h-12 border-4 border-white/30 border-t-white rounded-full animate-spin"}),(0,r.jsx)("p",{className:"text-white/70 text-sm font-medium tracking-widest uppercase",children:"Initializing GA-ATLAS..."})]})]})}}},function(e){e.O(0,[8173,2398,3221,2971,7023,1744],function(){return e(e.s=95193)}),_N_E=e.O()}]);