1import{j as e,u as g,r as n,L as f,s as b,t as d}from"./index-l7uiS_yB.js";function y(){const s=g(),[t,a]=n.useState(""),[o,x]=n.useState(""),[i,l]=n.useState(!1);async function p(r){r.preventDefault(),l(!0);const c="/join",{error:u}=await b.auth.signUp({email:t,password:o,options:{emailRedirectTo:window.location.origin+c}});if(l(!1),u){d.error(u.message);return}d.success("Account created â let's set up your profile."),s({to:c})}return e.jsxs(h,{title:"Create your Metis account",subtitle:"Start scoring jobs in 30 seconds.",children:[e.jsxs("form",{onSubmit:p,className:"space-y-4",children:[e.jsx(m,{label:"Email",children:e.jsx("input",{type:"email",required:!0,value:t,onChange:r=>a(r.target.value),className:"w-full rounded-md border border-input bg-background px-3 py-2 text-sm outline-none focus:ring-2 focus:ring-ring"})}),e.jsx(m,{label:"Password",children:e.jsx("input",{type:"password",required:!0,minLength:6,value:o,onChange:r=>x(r.target.value),className:"w-full rounded-md border border-input bg-background px-3 py-2 text-sm outline-none focus:ring-2 focus:ring-ring"})}),e.jsx("button",{type:"submit",disabled:i,className:"w-full rounded-md bg-primary px-4 py-2.5 text-sm font-semibold text-primary-foreground hover:opacity-90 disabled:opacity-60",children:i?"Creating accountâ¦":"Create account"})]}),e.jsxs("p",{className:"mt-6 text-center text-sm text-muted-foreground",children:["Already have an account?"," ",e.jsx(f,{to:"/login",className:"font-medium text-primary hover:underline",children:"Log in"})]})]})}function h({title:s,subtitle:t,children:a}){return e.jsx("main",{className:"flex min-h-[calc(100vh-3.5rem)] flex-col",children:e.jsx("div",{className:"flex flex-1 items-center justify-center px-6 py-10",children:e.jsxs("div",{className:"w-full max-w-md rounded-2xl border border-border bg-card p-8 shadow-sm",children:[e.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:s}),e.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:t}),e.jsx("div",{className:"mt-6",children:a})]})})})}function m({label:s,children:t}){return e.jsxs("label",{className:"block",children:[e.jsx("span",{className:"mb-1.5 block text-sm font-medium",children:s}),t]})}export{h as AuthShell,m as Field,y as component};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.