(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,70065,e=>{"use strict";var r=e.i(43476),a=e.i(47163);e.s(["Card",0,function({className:e,...t}){return(0,r.jsx)("div",{"data-slot":"card",className:(0,a.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})},"CardContent",0,function({className:e,...t}){return(0,r.jsx)("div",{"data-slot":"card-content",className:(0,a.cn)("px-6",e),...t})},"CardDescription",0,function({className:e,...t}){return(0,r.jsx)("div",{"data-slot":"card-description",className:(0,a.cn)("text-muted-foreground text-sm",e),...t})},"CardFooter",0,function({className:e,...t}){return(0,r.jsx)("div",{"data-slot":"card-footer",className:(0,a.cn)("flex items-center px-6 [.border-t]:pt-6",e),...t})},"CardHeader",0,function({className:e,...t}){return(0,r.jsx)("div",{"data-slot":"card-header",className:(0,a.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})},"CardTitle",0,function({className:e,...t}){return(0,r.jsx)("div",{"data-slot":"card-title",className:(0,a.cn)("leading-none font-semibold",e),...t})}])},95187,(e,r,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0});var t={callServer:function(){return n.callServer},createServerReference:function(){return i.createServerReference},findSourceMapURL:function(){return d.findSourceMapURL}};for(var s in t)Object.defineProperty(a,s,{enumerable:!0,get:t[s]});let n=e.r(32120),d=e.r(92245),i=e.r(35326)},87942,e=>{"use strict";var r=e.i(43476),a=e.i(71645),t=e.i(22016),s=e.i(56454),n=e.i(1244),d=e.i(67881),i=e.i(70065),c=e.i(95187);let l=(0,c.createServerReference)("401aa66eceeee6a419930418593565bd958d22d704",c.callServer,void 0,c.findSourceMapURL,"signIn");e.s(["default",0,function(){let[e,c]=(0,a.useState)(null),[o,u]=(0,a.useState)(!1),m=async e=>{e.preventDefault(),u(!0),c(null);let r=new FormData(e.currentTarget),a=await l(r);a?.error&&(c(a.error),u(!1))};return(0,r.jsxs)("div",{className:"min-h-screen flex flex-col",children:[(0,r.jsx)(s.Header,{isLoggedIn:!1}),(0,r.jsx)("main",{className:"flex-1 flex items-center justify-center p-4 bg-muted/30",children:(0,r.jsxs)(i.Card,{className:"w-full max-w-md",children:[(0,r.jsxs)(i.CardHeader,{className:"text-center",children:[(0,r.jsx)(i.CardTitle,{className:"text-2xl",children:"Welcome Back"}),(0,r.jsx)(i.CardDescription,{children:"Sign in to your account to manage your initiatives and partnerships."})]}),(0,r.jsx)(i.CardContent,{children:(0,r.jsxs)("form",{onSubmit:m,className:"space-y-4",children:[e&&(0,r.jsx)("div",{className:"p-3 text-sm text-red-500 bg-red-50 dark:bg-red-950/50 rounded-md",children:e}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)("label",{className:"text-sm font-medium",htmlFor:"email",children:"Email Address"}),(0,r.jsx)("input",{id:"email",name:"email",type:"email",required:!0,className:"w-full px-3 py-2 border rounded-md bg-background",placeholder:"admin@asirimpact.org"})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("label",{className:"text-sm font-medium",htmlFor:"password",children:"Password"}),(0,r.jsx)(t.default,{href:"#",className:"text-xs text-primary hover:underline",children:"Forgot password?"})]}),(0,r.jsx)("input",{id:"password",name:"password",type:"password",required:!0,className:"w-full px-3 py-2 border rounded-md bg-background"})]}),(0,r.jsx)(d.Button,{type:"submit",className:"w-full mt-6",disabled:o,children:o?"Signing in...":"Sign In"})]})}),(0,r.jsx)(i.CardFooter,{className:"justify-center border-t p-4",children:(0,r.jsxs)("p",{className:"text-sm text-muted-foreground",children:["Don't have an account?"," ",(0,r.jsx)(t.default,{href:"#",className:"text-primary hover:underline font-medium",children:"Sign up"})]})})]})}),(0,r.jsx)(n.Footer,{})]})}],87942)}]);