import{u as x,r as n,j as e,a as d,b as g,L as h,t as i}from"./index-mTtQkoYJ.js";const f="/admin/assets/wave.png",u="/admin/assets/mock_details_background.png";function p(){const{config:s,isLoading:t,error:o,fetchConfig:l}=x();return n.useEffect(()=>{s||l()},[s,l]),e.jsxs("div",{className:"relative top-0 left-0 flex items-center justify-center  text-black  w-full h-screen lg:h-full lg:block  bg-primary ",children:[e.jsx("div",{className:"absolute inset-0 flex items-center justify-center opacity-50",children:e.jsx("img",{src:u,className:"object-cover w-full h-full",alt:"Blended Background"})}),e.jsxs("div",{className:"relative z-10 px-6 text-left 2xl:top-[520px] lg:top-[520px] xl:top-[500px] left-16",children:[e.jsxs("div",{className:"flex gap-2 place-items-center",children:[e.jsx("h1",{className:"font-semibold text-left 2xl:text-5xl lg:text-5xl xl:text-3xl font-poppins",children:"Hello"}),e.jsx("img",{src:f,alt:"hello",className:"w-6 h-6"})]}),e.jsxs("div",{className:"py-4 text-left",children:[e.jsx("p",{className:"max-w-md 2xl:text-xl lg:text-xl xl:text-base ",children:"Skip repetitive and manual sakes "}),e.jsx("p",{className:"max-w-md 2xl:text-xl lg:text-xl xl:text-base",children:"marketing task, get highly productive"}),e.jsx("p",{className:"max-w-md 2xl:text-xl lg:text-xl xl:text-base",children:"through automation and save tones of "}),e.jsx("p",{className:"max-w-md 2xl:text-xl lg:text-xl xl:text-base",children:"time"})]})]}),e.jsx("p",{className:"absolute bottom-10 w-full text-center left-1/2 transform -translate-x-1/2 text-opacity-[41%]",children:s==null?void 0:s.copyright_text})]})}const j="/admin/assets/vector_bottom.png",v=()=>{const s=d(),{config:t,isLoading:o,error:l,fetchConfig:c}=x();n.useEffect(()=>{t||c()},[t,c]);const r=()=>{i.success("Login successful!"),s("/dashboard")},m=a=>{i.error(a.message||"Failed to login. Please try again.")};return g(a=>a.resolvedTheme),e.jsx("div",{className:"min-h-screen bg-gradient-to- bg-secondary ",children:e.jsx("div",{className:"container mx-auto h-screen lg:max-w-none",children:e.jsxs("div",{className:"grid h-full lg:grid-cols-2",children:[e.jsx("div",{className:"hidden lg:flex",children:e.jsx(p,{})}),e.jsx("div",{className:"flex flex-col items-center  bg-[#FFF]    justify-center p-4 sm:p-6 lg:p-8",children:e.jsxs("div",{className:"w-full max-w-lg space-y-8",children:[e.jsx("div",{className:"text-cente ml-[-1rem]",children:e.jsx("img",{src:t==null?void 0:t.web_logo_light,alt:"Logo",className:"h-20"})}),e.jsx("div",{className:"text-center lg:text-left",children:e.jsxs("h2",{className:"font-bold   text-[#424242] text-2xl sm:text-3xl lg:text-4xl xl:text-5xl leading-tight max-w-md lg:max-w-lg",children:["Welcome back! Please"," ",e.jsxs("span",{className:"relative inline-block",children:["Sign in to",e.jsx("img",{src:j,className:"absolute left-0 top-full w-full mt-1 image-color",alt:"Underline decoration"})]})," ","continue."]})}),e.jsx("div",{className:"w-full ",children:e.jsx(h,{onSuccess:r,onError:m})})]})})]})})})};export{v as default};
