(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,86906,e=>{"use strict";var t=e.i(43476),a=e.i(71645),r=e.i(32341),s=e.i(22016);function i(){let[e,i]=(0,a.useState)(""),[l,n]=(0,a.useState)(""),[o,c]=(0,a.useState)(""),{register:d,loading:u}=(0,r.useAuth)(),g=async t=>{t.preventDefault();try{await d(e,l,o)}catch(e){}};return(0,t.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-gray-50 py-12 px-4 sm:px-6 lg:px-8",children:(0,t.jsxs)("div",{className:"max-w-md w-full space-y-8 bg-white p-10 rounded-3xl shadow-xl",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"mt-6 text-center text-3xl font-black text-gray-900 uppercase tracking-tighter",children:"Crear Cuenta"}),(0,t.jsxs)("p",{className:"mt-2 text-center text-sm text-gray-600",children:["O"," ",(0,t.jsx)(s.default,{href:"/login",className:"font-bold text-indigo-600 hover:text-indigo-500 transition-colors",children:"inicia sesión si ya tienes cuenta"})]})]}),(0,t.jsxs)("form",{className:"mt-8 space-y-6",onSubmit:g,children:[(0,t.jsxs)("div",{className:"rounded-md shadow-sm space-y-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-[10px] font-black text-gray-400 uppercase tracking-widest mb-2 ml-1",children:"Nombre Completo"}),(0,t.jsx)("input",{type:"text",required:!0,value:o,onChange:e=>c(e.target.value),className:"w-full p-4 bg-gray-50 border border-gray-100 rounded-2xl outline-none focus:ring-2 focus:ring-indigo-500 font-bold transition-all",placeholder:"Juan Pérez"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-[10px] font-black text-gray-400 uppercase tracking-widest mb-2 ml-1",children:"Email"}),(0,t.jsx)("input",{type:"email",required:!0,value:e,onChange:e=>i(e.target.value),className:"w-full p-4 bg-gray-50 border border-gray-100 rounded-2xl outline-none focus:ring-2 focus:ring-indigo-500 font-bold transition-all",placeholder:"email@ejemplo.com"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-[10px] font-black text-gray-400 uppercase tracking-widest mb-2 ml-1",children:"Contraseña"}),(0,t.jsx)("input",{type:"password",required:!0,value:l,onChange:e=>n(e.target.value),className:"w-full p-4 bg-gray-50 border border-gray-100 rounded-2xl outline-none focus:ring-2 focus:ring-indigo-500 font-bold transition-all",placeholder:"Mínimo 8 caracteres"})]})]}),(0,t.jsx)("div",{children:(0,t.jsx)("button",{type:"submit",disabled:u,className:"group relative w-full flex justify-center py-4 px-4 border border-transparent text-sm font-black uppercase tracking-widest rounded-2xl text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 transition-all shadow-xl shadow-indigo-100 disabled:opacity-50",children:u?"Cargando...":"Registrarse"})})]})]})})}e.s(["default",()=>i])}]);