(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,18566,(e,t,r)=>{t.exports=e.r(76562)},1111,e=>{"use strict";var t=e.i(18050),r=e.i(71645),a=e.i(22016),o=e.i(18566);let l={width:"100%",maxWidth:420,background:"var(--surface)",border:"1px solid var(--hairline)",borderRadius:6,padding:"var(--sp-36)"},s={fontSize:"var(--fs-meta)",fontWeight:600,letterSpacing:"0.06em",textTransform:"uppercase",color:"var(--text-subtle)",marginBottom:"var(--sp-6)",display:"block"},n={padding:"10px 12px",fontSize:"var(--fs-ui)",border:"1px solid var(--hairline-strong)",borderRadius:4,background:"var(--surface)",outline:"none",width:"100%",color:"var(--text)",transition:"border-color .12s"};function i({label:e,type:a,value:o,onChange:l,placeholder:c,autoComplete:u,children:d}){let[p,h]=(0,r.useState)(!1);return(0,t.jsxs)("div",{style:{marginBottom:"var(--sp-16)"},children:[(0,t.jsx)("label",{style:s,children:e}),(0,t.jsx)("input",{type:a,value:o,onChange:l,placeholder:c,autoComplete:u,onFocus:()=>h(!0),onBlur:()=>h(!1),style:{...n,borderColor:p?"var(--text)":"var(--hairline-strong)"}}),d]})}e.s(["default",0,function(){let e=(0,o.useRouter)(),[s,n]=(0,r.useState)(""),[c,u]=(0,r.useState)(""),[d,p]=(0,r.useState)(""),[h,v]=(0,r.useState)(""),m=(0,r.useMemo)(()=>{let e;return e=0,(d.length>=8&&e++,d.length>=12&&e++,/[A-Z]/.test(d)&&/[a-z]/.test(d)&&e++,/\d/.test(d)&&e++,/[^A-Za-z0-9]/.test(d)&&e++,0===d.length)?{score:0,label:"",color:"var(--hairline-strong)"}:e<=1?{score:1,label:"Weak",color:"var(--danger)"}:2===e?{score:2,label:"Fair",color:"var(--warn)"}:3===e?{score:3,label:"Good",color:"var(--accent)"}:{score:4,label:"Strong",color:"var(--success)"}},[d]);return(0,t.jsxs)("div",{style:l,children:[(0,t.jsxs)("div",{style:{marginBottom:"var(--sp-28)"},children:[(0,t.jsx)("h1",{style:{fontSize:"var(--fs-h3)",fontWeight:600,letterSpacing:"-0.01em",margin:0},children:"Create your account"}),(0,t.jsx)("p",{style:{fontSize:"var(--fs-ui)",color:"var(--text-muted)",margin:"6px 0 0"},children:"Start your team workspace in under a minute."})]}),(0,t.jsxs)("form",{onSubmit:t=>{t.preventDefault(),e.push("/setup")},children:[(0,t.jsx)(i,{label:"Full name",type:"text",value:s,onChange:e=>n(e.target.value),placeholder:"Jane Cooper",autoComplete:"name"}),(0,t.jsx)(i,{label:"Work email",type:"email",value:c,onChange:e=>u(e.target.value),placeholder:"you@company.com",autoComplete:"email"}),(0,t.jsx)(i,{label:"Password",type:"password",value:d,onChange:e=>p(e.target.value),placeholder:"At least 8 characters",autoComplete:"new-password",children:(0,t.jsxs)("div",{style:{marginTop:"var(--sp-8)"},children:[(0,t.jsx)("div",{style:{display:"flex",gap:"var(--sp-4)",marginBottom:"var(--sp-4)"},children:[0,1,2,3].map(e=>(0,t.jsx)("div",{style:{flex:1,height:3,borderRadius:2,background:e<m.score?m.color:"var(--hairline)",transition:"background .15s"}},e))}),(0,t.jsx)("div",{style:{fontSize:"var(--fs-meta)",color:m.label?m.color:"var(--text-subtle)",minHeight:14},children:m.label||"Use 8+ characters with letters, numbers, and a symbol."})]})}),(0,t.jsx)(i,{label:"Company name",type:"text",value:h,onChange:e=>v(e.target.value),placeholder:"Acme Inc.",autoComplete:"organization"}),(0,t.jsx)("button",{type:"submit",className:"btn primary lg",style:{width:"100%",justifyContent:"center",marginTop:"var(--sp-8)"},children:"Create account"})]}),(0,t.jsxs)("p",{style:{marginTop:"var(--sp-24)",fontSize:"var(--fs-sm)",textAlign:"center",color:"var(--text-muted)"},children:["Already have an account?"," ",(0,t.jsx)(a.default,{href:"/login",style:{color:"var(--text)",fontWeight:500,textDecoration:"none"},children:"Sign in"})]})]})}])}]);