import{a as R}from"/build/_shared/chunk-BHTWJZ4I.js";import"/build/_shared/chunk-3X23XH62.js";import{a as f,b}from"/build/_shared/chunk-KTCKOGJM.js";import{A as i,B as d,D as m,I as o,N as g,P as p,v as a,y as n}from"/build/_shared/chunk-C3GUTQLB.js";import{D as l,a as L,t as r,z as u}from"/build/_shared/chunk-UT3CV7CR.js";import{d as t}from"/build/_shared/chunk-G5WX4PPA.js";var s=t(L());var h=t(R());var e=t(l());var B=()=>({title:"Login | Runnable"});function y(){let x=s.useRef(null),w=s.useRef(null),{strategies:c}=u(),F=(0,e.jsxs)(o,{spacing:4,children:[(0,e.jsxs)(n,{id:"email",children:[(0,e.jsx)(i,{children:"Email address"}),(0,e.jsx)(m,{ref:x,type:"email",name:"email",required:!0})]}),(0,e.jsxs)(n,{id:"password",children:[(0,e.jsx)(i,{children:"Password"}),(0,e.jsx)(m,{ref:w,type:"password",name:"password",required:!0})]}),(0,e.jsxs)(o,{spacing:10,children:[(0,e.jsx)(o,{direction:{base:"column",sm:"row"},align:"start",justify:"space-between",children:(0,e.jsx)(d,{id:"remember",name:"remember",children:"Remember me"})}),(0,e.jsx)(a,{type:"submit",bg:"blue.400",color:"white",_hover:{bg:"blue.500"},children:"Log in"})]})]});return(0,e.jsx)(p,{minH:"100vh",align:"center",justify:"center",bg:"gray.50",children:(0,e.jsx)(g,{rounded:"lg",bg:"white",boxShadow:"lg",width:"340px",children:(0,e.jsxs)(o,{spacing:8,mx:"auto",maxW:"lg",py:12,px:6,children:[(0,e.jsx)(r,{method:"post",action:"?/form",children:c.includes("form")&&F}),(0,e.jsx)(r,{method:"post",action:"?/google",children:c.includes("google")&&(0,e.jsx)(a,{type:"submit",bg:"blue.400",color:"white",width:"100%",_hover:{bg:"blue.500"},children:"Log in with Google"})})]})})})}export{f as CatchBoundary,b as ErrorBoundary,y as default,B as meta};
