import{G as e,K as t,et as n,i as r,n as i,r as a,st as o,ut as s}from"./branding-ClCX8iZg.js";import{t as c}from"./shield-CGWs7KvF.js";import{t as l}from"./zap-CDnx4jih.js";import{E as u,I as d,P as f,x as p}from"./index-CQbBgNYK.js";import{t as m}from"./use-document-meta-Br4UMxjt.js";import{t as h}from"./api-toast-BFyXHsNH.js";var g=s(o(),1),_=r(),v=[{icon:p,title:`Workflow Orchestration`,description:`Build and run multi-step workflows with shell, HTTP, and AI agent steps.`},{icon:l,title:`Real-time Monitoring`,description:`Track workflow executions, costs, and durations from a single dashboard.`},{icon:c,title:`Built-in AI Agents`,description:`Leverage Claude to analyze, summarize, and act on workflow data.`}];function y(){let[r,o]=(0,g.useState)(``),[s,c]=(0,g.useState)(``),[l,p]=(0,g.useState)(``),[y,b]=(0,g.useState)(!1),x=n(),S=f(),C=i();return m({title:`Sign up`,description:`Create your ${C.name} account.`}),(0,_.jsxs)(`div`,{className:`grid min-h-screen lg:grid-cols-2`,children:[(0,_.jsxs)(`div`,{className:`relative hidden lg:flex flex-col justify-between bg-gradient-to-b from-neutral-900 to-neutral-950 p-10 text-white overflow-hidden`,children:[(0,_.jsx)(`div`,{className:`absolute -top-24 -left-24 size-96 rounded-full bg-primary/20 blur-3xl`}),(0,_.jsx)(`div`,{className:`absolute -bottom-32 -right-32 size-96 rounded-full bg-primary/15 blur-3xl`}),(0,_.jsxs)(`div`,{className:`relative flex items-center gap-3`,children:[(0,_.jsx)(`img`,{src:C.logoUrl,alt:C.name,className:`size-9 rounded-lg`}),(0,_.jsx)(`span`,{className:`text-xl font-bold tracking-tight`,children:C.name})]}),(0,_.jsx)(`div`,{className:`relative space-y-8`,children:v.map(e=>(0,_.jsxs)(`div`,{className:`flex gap-4`,children:[(0,_.jsx)(`div`,{className:`flex size-10 shrink-0 items-center justify-center rounded-lg border border-white/10 bg-white/5 backdrop-blur-sm`,children:(0,_.jsx)(e.icon,{className:`size-5 text-primary`})}),(0,_.jsxs)(`div`,{children:[(0,_.jsx)(`h3`,{className:`font-semibold`,children:e.title}),(0,_.jsx)(`p`,{className:`text-neutral-400 text-sm mt-1`,children:e.description})]})]},e.title))}),(0,_.jsxs)(`p`,{className:`relative text-xs text-neutral-500`,children:[`© `,new Date().getFullYear(),` `,C.copyright]})]}),(0,_.jsxs)(`div`,{className:`relative flex flex-col p-6 sm:p-10 overflow-hidden`,children:[(0,_.jsxs)(`div`,{className:`relative flex items-center gap-3 lg:hidden mb-auto`,children:[(0,_.jsx)(`img`,{src:C.logoUrl,alt:C.name,className:`size-9 rounded-lg`}),(0,_.jsx)(`span`,{className:`text-xl font-bold tracking-tight`,children:C.name})]}),(0,_.jsx)(`div`,{className:`relative flex flex-1 flex-col items-center justify-center`,children:(0,_.jsxs)(`div`,{className:`w-full max-w-sm space-y-8`,children:[(0,_.jsxs)(`div`,{className:`space-y-2 text-center lg:text-left`,children:[(0,_.jsx)(`h1`,{className:`text-2xl font-bold tracking-tight`,children:`Create account`}),(0,_.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:`Sign up to start orchestrating workflows`})]}),(0,_.jsxs)(`form`,{onSubmit:t=>{t.preventDefault(),b(!0),h(e.post(`/auth/sign-up`,{email:r,username:s,password:l}).then(()=>S(d())),{loading:`Creating account...`,success:`Account created!`,error:`Sign up failed`}).then(()=>x(`/`)).catch(()=>{}).finally(()=>b(!1))},className:`space-y-4`,children:[(0,_.jsxs)(`div`,{className:`space-y-2`,children:[(0,_.jsx)(`label`,{htmlFor:`email`,className:`text-sm font-medium`,children:`Email`}),(0,_.jsx)(u,{id:`email`,type:`email`,placeholder:`you@example.com`,value:r,onChange:e=>o(e.target.value),required:!0})]}),(0,_.jsxs)(`div`,{className:`space-y-2`,children:[(0,_.jsx)(`label`,{htmlFor:`username`,className:`text-sm font-medium`,children:`Username`}),(0,_.jsx)(u,{id:`username`,type:`text`,placeholder:`johndoe`,value:s,onChange:e=>c(e.target.value),required:!0,minLength:3})]}),(0,_.jsxs)(`div`,{className:`space-y-2`,children:[(0,_.jsx)(`label`,{htmlFor:`password`,className:`text-sm font-medium`,children:`Password`}),(0,_.jsx)(u,{id:`password`,type:`password`,placeholder:`Min 8 characters`,value:l,onChange:e=>p(e.target.value),required:!0,minLength:8})]}),(0,_.jsx)(a,{type:`submit`,className:`w-full`,size:`lg`,disabled:y,children:y?`Creating account...`:`Create account`})]}),(0,_.jsxs)(`p`,{className:`text-center text-sm text-muted-foreground`,children:[`Already have an account?`,` `,(0,_.jsx)(t,{to:`/sign-in`,className:`font-medium text-foreground hover:underline`,children:`Sign in`})]})]})})]})]})}export{y as Component};