import{b as u,j as e,H as x,L as f}from"./app-vYFZLebK.js";import{I as t}from"./InputError-Cj3POQLM.js";import{I as i}from"./InputLabel-B7-VnScM.js";import{P as g}from"./PrimaryButton-Byh_hOgr.js";import{T as n}from"./TextInput-BXnk3iOU.js";import{G as v}from"./GuestLayout-DU0lQkT0.js";import{U as h}from"./user-JeEYrpfa.js";import{M as j}from"./mail-CgMp0qFW.js";import{L as m}from"./lock-DcNWzbNP.js";import{L as w}from"./loader-circle-2uXAsV7z.js";import{A as y}from"./arrow-right-CmkD3lqC.js";import"./ProBackground-HBykvu3f.js";import"./ThemeSwitcher-C0dt0hQX.js";import"./fingerprint-pattern-ByR3x1eT.js";import"./cpu-CnpbxAHg.js";function G(){const{data:a,setData:r,post:c,processing:l,errors:o,reset:d}=u({name:"",email:"",password:"",password_confirmation:""}),p=s=>{s.preventDefault(),c(route("register"),{onFinish:()=>d("password","password_confirmation")})};return e.jsxs(v,{children:[e.jsx(x,{title:"Register"}),e.jsxs("form",{onSubmit:p,className:"space-y-6",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(i,{htmlFor:"name",value:"Name"}),e.jsxs("div",{className:"relative group",children:[e.jsx(h,{className:"absolute left-4 top-1/2 -translate-y-1/2 text-slate-500 group-focus-within:text-cyan-500 transition-colors",size:16}),e.jsx(n,{id:"name",name:"name",value:a.name,className:"w-full pl-12 bg-[var(--bg-main)] border-[var(--border)] focus:border-cyan-500 focus:ring-cyan-500/20 rounded-xl py-3 font-mono text-sm",autoComplete:"name",isFocused:!0,onChange:s=>r("name",s.target.value),required:!0,placeholder:"Full Name"})]}),e.jsx(t,{message:o.name})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(i,{htmlFor:"email",value:"Email Address"}),e.jsxs("div",{className:"relative group",children:[e.jsx(j,{className:"absolute left-4 top-1/2 -translate-y-1/2 text-slate-500 group-focus-within:text-cyan-500 transition-colors",size:16}),e.jsx(n,{id:"email",type:"email",name:"email",value:a.email,className:"w-full pl-12 bg-[var(--bg-main)] border-[var(--border)] focus:border-cyan-500 focus:ring-cyan-500/20 rounded-xl py-3 font-mono text-sm",autoComplete:"username",onChange:s=>r("email",s.target.value),required:!0,placeholder:"name@example.com"})]}),e.jsx(t,{message:o.email})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(i,{htmlFor:"password",value:"Password"}),e.jsxs("div",{className:"relative group",children:[e.jsx(m,{className:"absolute left-4 top-1/2 -translate-y-1/2 text-slate-500 group-focus-within:text-cyan-500 transition-colors",size:16}),e.jsx(n,{id:"password",type:"password",name:"password",value:a.password,className:"w-full pl-12 bg-[var(--bg-main)] border-[var(--border)] focus:border-cyan-500 focus:ring-cyan-500/20 rounded-xl py-3 font-mono text-sm",autoComplete:"new-password",onChange:s=>r("password",s.target.value),required:!0,placeholder:"••••••••••••"})]}),e.jsx(t,{message:o.password})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(i,{htmlFor:"password_confirmation",value:"Confirm Password"}),e.jsxs("div",{className:"relative group",children:[e.jsx(m,{className:"absolute left-4 top-1/2 -translate-y-1/2 text-slate-500 group-focus-within:text-cyan-500 transition-colors",size:16}),e.jsx(n,{id:"password_confirmation",type:"password",name:"password_confirmation",value:a.password_confirmation,className:"w-full pl-12 bg-[var(--bg-main)] border-[var(--border)] focus:border-cyan-500 focus:ring-cyan-500/20 rounded-xl py-3 font-mono text-sm",autoComplete:"new-password",onChange:s=>r("password_confirmation",s.target.value),required:!0,placeholder:"••••••••••••"})]}),e.jsx(t,{message:o.password_confirmation})]}),e.jsx("div",{className:"pt-4",children:e.jsx(g,{className:"w-full justify-center py-4 text-[10px] tracking-[0.2em] relative overflow-hidden group",disabled:l,children:e.jsxs("span",{className:"relative z-10 flex items-center gap-3",children:[l&&e.jsx(w,{className:"animate-spin",size:14}),"Register ",e.jsx(y,{size:14,className:"group-hover:translate-x-1 transition-transform"})]})})}),e.jsx("div",{className:"text-center pt-4 border-t border-[var(--border)]",children:e.jsxs(f,{href:route("login"),className:"text-[9px] font-bold text-slate-500 uppercase tracking-widest hover:text-white transition-colors",children:["Already have an account? ",e.jsx("span",{className:"text-cyan-500",children:"Log In"})]})})]})]})}export{G as default};
