(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2626],{8562:function(e,s,l){Promise.resolve().then(l.bind(l,422))},451:function(e,s,l){"use strict";l.d(s,{B:function(){return t}});let t="3f201b7c-bc34-4cf9-81b7-a39e1e4b0b62"},1280:function(e,s,l){"use strict";l.d(s,{T:function(){return t}});let t="https://certsgang.com"},9107:function(e,s,l){"use strict";l.d(s,{Z:function(){return i}});var t=l(7437),a=l(6463),r=l(2265);function i(e){return function(s){let l;let i=(0,a.useRouter)();return(l=JSON.parse(localStorage.getItem("loginResponse")),(0,r.useEffect)(()=>{(null==l?void 0:l.is_logged_in)&&i.push("/account/products")},[l,i]),null==l?void 0:l.is_logged_in)?null:(0,t.jsx)(e,{...s})}}},422:function(e,s,l){"use strict";l.r(s),l.d(s,{default:function(){return g}});var t=l(7437),a=l(9107),r=l(8472),i=l(451),n=l(1280),c=l(7138),o=l(6463),m=l(2265),d=l(6779),x=l(8165),u=()=>{let[e,s]=(0,m.useState)(""),[l,a]=(0,m.useState)(""),[u,g]=(0,m.useState)(!1),h=(0,o.useRouter)(),[f,p]=(0,m.useState)({}),[b,j]=(0,m.useState)(""),[v,N]=(0,m.useState)(""),[w,y]=(0,m.useState)(""),[S,k]=(0,m.useState)(!1);(0,m.useEffect)(()=>{!async function(){let e=await fetch("/api/get-client-ip");y((await e.json()).ip)}()},[]);let _=async s=>{if(s.preventDefault(),j(""),N(""),e||j("Email is required"),l||N("Password is required"),l.length<8&&N("Password must be at least 8 characters long"),!b&&!v)try{let s=await r.Z.post("".concat(n.T,"/v1/account/login"),{email:e,password:l,ip:w},{headers:{"x-api-key":i.B}});if(p(s.data),k(!0),s.data.is_logged_in){let e=Date.now();localStorage.setItem("loginResponse",JSON.stringify({...s.data,expiryTime:e+72e5})),window.location.reload()}else h.push("/login")}catch(e){console.error("Error:",e),alert("Something went wrong. Please try again later.")}};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d.Z,{open:S,autoHideDuration:6e3,onClose:()=>k(!1),anchorOrigin:{vertical:"top",horizontal:"right"},children:(0,t.jsx)(x.Z,{onClose:()=>k(!1),severity:(null==f?void 0:f.is_logged_in)?"success":"error",variant:"filled",sx:{width:"100%"},children:f&&(null==f?void 0:f.message)})}),(0,t.jsx)("section",{className:"relative py-20 2xl:py-10 overflow-hidden",children:(0,t.jsx)("div",{className:"container px-4 mx-auto",children:(0,t.jsx)("div",{className:"max-w-7xl mx-auto",children:(0,t.jsxs)("div",{className:"flex flex-wrap -mx-4",children:[(0,t.jsx)("div",{className:"w-full lg:w-1/2 px-4 mb-16 lg:mb-0 lg:order-first",children:(0,t.jsxs)("div",{className:"max-w-3xl lg:pt-8 2xl:pt-16 lg:pb-8 mx-auto 2xl:mr-0",children:[(0,t.jsx)("h3",{className:"font-heading text-5xl sm:text-6xl text-blue-500 font-bold mb-4",children:"Welcome!"}),(0,t.jsx)("p",{className:"text-lg text-gray-500 mb-15",children:"Forgot Your Account And Save Your Progress."}),(0,t.jsxs)("div",{className:"flex flex-wrap mb-6 items-center -mx-2",children:[(0,t.jsx)("div",{className:"w-full md:w-1/2 px-2 mb-3 md:mb-0"}),(0,t.jsx)("div",{className:"w-full md:w-1/2 px-2"})]}),(0,t.jsxs)("div",{className:"flex mb-6 items-center",children:[(0,t.jsx)("div",{className:"w-full h-px bg-gray-300"}),(0,t.jsx)("span",{className:"mx-4 text-sm font-semibold text-gray-500",children:"Study4Pass.com"}),(0,t.jsx)("div",{className:"w-full h-px bg-gray-300"})]}),(0,t.jsxs)("form",{onSubmit:_,children:[(0,t.jsxs)("div",{className:"mb-6",children:[(0,t.jsx)("label",{className:"block mb-1.5 text-sm text-gray-900 font-semibold",htmlFor:"email",children:"Email"}),(0,t.jsx)("input",{className:"w-full py-3 px-4 text-sm text-gray-900 placeholder-gray-400 border border-gray-200 focus:border-purple-500 focus:outline-purple rounded-lg",type:"email",id:"email",placeholder:"",value:e,onChange:e=>s(e.target.value)}),b&&(0,t.jsx)("p",{className:"text-red-500 text-xs mt-1",children:b})]}),(0,t.jsxs)("div",{className:"mb-6",children:[(0,t.jsx)("label",{className:"block mb-1.5 text-sm text-gray-900 font-semibold",htmlFor:"password",children:"Password"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{className:"w-full py-3 px-4 text-sm text-gray-900 placeholder-gray-400 border border-gray-200 focus:border-purple-500 focus:outline-purple rounded-lg",type:"password",id:"password",placeholder:"********",value:l,onChange:e=>a(e.target.value)}),(0,t.jsx)("button",{className:"absolute top-1/2 right-0 mr-3 transform -translate-y-1/2 inline-block hover:scale-110 transition duration-100",children:(0,t.jsx)("img",{src:"saturn-assets/images/sign-up/icon-eye.svg",alt:""})})]}),v&&(0,t.jsx)("p",{className:"text-red-500 text-xs mt-1",children:v})]}),(0,t.jsxs)("div",{className:"flex justify-between",children:[(0,t.jsxs)("div",{className:"flex mb-6 items-center",children:[(0,t.jsx)("input",{type:"checkbox",id:"rememberMe",checked:u,onChange:e=>g(e.target.checked)}),(0,t.jsx)("label",{className:"ml-2 text-xs text-gray-800",htmlFor:"rememberMe",children:"Remember me"})]}),(0,t.jsx)(c.default,{href:"/forgot-password",className:"flex mb-6 items-center",children:(0,t.jsx)("div",{className:"ml-2 text-xs text-blue-500",children:"Forgot Password ?"})})]}),(0,t.jsxs)("button",{className:"relative group block w-full mb-8 py-3 px-5 text-center text-sm font-semibold text-orange-50 bg-blue-600 rounded-full overflow-hidden",type:"submit",children:[(0,t.jsx)("div",{className:"absolute top-0 right-full w-full h-full bg-gray-900 transform group-hover:translate-x-full group-hover:scale-102 transition duration-500"}),(0,t.jsx)("span",{className:"relative",children:"LOGIN"})]}),(0,t.jsxs)("div",{className:"flex mb-6 items-center",children:[(0,t.jsx)("div",{className:"w-full h-px bg-gray-300"}),(0,t.jsx)("div",{className:"w-full h-px bg-gray-300"})]}),(0,t.jsx)("div",{className:"text-center",children:(0,t.jsxs)("span",{className:"text-base font-semibold text-gray-700",children:[(0,t.jsx)("span",{children:"Don't have an account?"}),(0,t.jsx)(c.default,{className:"inline-block ml-1 text-blue-600 hover:text-blue-700",href:"/register",children:"Register"})]})})]})]})}),(0,t.jsx)("div",{className:"w-full lg:w-1/2 px-4 hidden lg:block",children:(0,t.jsxs)("div",{className:"relative max-w-lg mx-auto lg:mx-0 lg:max-w-2xl h-full",children:[(0,t.jsx)("img",{className:"block w-full rounded-3xl h-142 sm:h-full object-cover rounded-5xl",src:"/image.jpg",alt:""}),(0,t.jsx)("div",{className:"absolute bottom-0 w-full left-0 h-full flex items-center justify-center p-10",children:(0,t.jsxs)("div",{className:"max-w-md mx-auto",children:[(0,t.jsx)("h4",{className:"font-heading text-3xl sm:text-4xl lg:text-5xl text-white font-bold mb-8",children:"Study4Pass.com By IT Professional"}),(0,t.jsxs)("div",{className:"md:flex mb-20",children:[(0,t.jsx)("div",{className:"mb-6 md:mb-0 md:mr-8 pt-3 text-gray-600",children:(0,t.jsx)("svg",{width:"84",height:"10",viewBox:"0 0 84 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M1 4.25C0.585786 4.25 0.25 4.58579 0.25 5C0.25 5.41421 0.585786 5.75 1 5.75L1 4.25ZM84 5.00001L76.5 0.669879L76.5 9.33013L84 5.00001ZM1 5.75L77.25 5.75001L77.25 4.25001L1 4.25L1 5.75Z",fill:"#FAFBFC"})})}),(0,t.jsx)("div",{children:(0,t.jsx)("p",{className:"text-lg font-semibold text-gray-200",children:"Over 30000+ Exams, Certifications and Video Courses Available."})})]}),(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsxs)("div",{className:"flex mr-4 items-center",children:[(0,t.jsx)("img",{className:"w-10 h-10",src:"/avatar-purple-border.png",alt:""}),(0,t.jsx)("img",{className:"w-10 h-10 -ml-3",src:"/avatar-purple-border-4.png",alt:""}),(0,t.jsx)("img",{className:"w-10 h-10 -ml-3",src:"/avatar-purple-border-3.png",alt:""}),(0,t.jsx)("img",{className:"w-10 h-10 -ml-3",src:"/avatar-purple-border-2.png",alt:""}),(0,t.jsx)("div",{className:"flex -ml-3 items-center justify-center w-10 h-10 border-2 border-purple-600 bg-gray-50 rounded-full",children:(0,t.jsx)("span",{className:"text-gray-900 text-sm font-medium",children:"13k+"})})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)("img",{className:"mr-1",src:"/yellow-star.svg",alt:""}),(0,t.jsx)("img",{className:"mr-1",src:"/yellow-star.svg",alt:""}),(0,t.jsx)("img",{className:"mr-1",src:"/yellow-star.svg",alt:""}),(0,t.jsx)("img",{className:"mr-1",src:"/yellow-star.svg",alt:""}),(0,t.jsx)("img",{className:"mr-2",src:"/yellow-star.svg",alt:""}),(0,t.jsx)("span",{className:"font-semibold text-gray-50",children:"5.0"})]}),(0,t.jsx)("span",{className:"font-semibold text-gray-50",children:"13000+ Users"})]})]})]})})]})})]})})})})]})},g=(0,a.Z)(()=>(0,t.jsx)(u,{}))},7138:function(e,s,l){"use strict";l.d(s,{default:function(){return a.a}});var t=l(231),a=l.n(t)},6463:function(e,s,l){"use strict";var t=l(1169);l.o(t,"useRouter")&&l.d(s,{useRouter:function(){return t.useRouter}}),l.o(t,"useSearchParams")&&l.d(s,{useSearchParams:function(){return t.useSearchParams}})}},function(e){e.O(0,[231,8666,8472,6810,6205,6779,8165,2971,7023,1744],function(){return e(e.s=8562)}),_N_E=e.O()}]);