module.exports=[55606,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(56025),e=a.i(38246);function f(){let[a,f]=(0,c.useState)(""),[g,h]=(0,c.useState)(""),[i,j]=(0,c.useState)(""),{register:k,loading:l}=(0,d.useAuth)(),m=async b=>{b.preventDefault();try{await k(a,g,i)}catch(a){}};return(0,b.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,b.jsxs)("div",{className:"max-w-md w-full space-y-8 bg-white p-10 rounded-3xl shadow-xl",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("h2",{className:"mt-6 text-center text-3xl font-black text-gray-900 uppercase tracking-tighter",children:"Crear Cuenta"}),(0,b.jsxs)("p",{className:"mt-2 text-center text-sm text-gray-600",children:["O"," ",(0,b.jsx)(e.default,{href:"/login",className:"font-bold text-indigo-600 hover:text-indigo-500 transition-colors",children:"inicia sesión si ya tienes cuenta"})]})]}),(0,b.jsxs)("form",{className:"mt-8 space-y-6",onSubmit:m,children:[(0,b.jsxs)("div",{className:"rounded-md shadow-sm space-y-4",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("label",{className:"block text-[10px] font-black text-gray-400 uppercase tracking-widest mb-2 ml-1",children:"Nombre Completo"}),(0,b.jsx)("input",{type:"text",required:!0,value:i,onChange:a=>j(a.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,b.jsxs)("div",{children:[(0,b.jsx)("label",{className:"block text-[10px] font-black text-gray-400 uppercase tracking-widest mb-2 ml-1",children:"Email"}),(0,b.jsx)("input",{type:"email",required:!0,value:a,onChange:a=>f(a.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,b.jsxs)("div",{children:[(0,b.jsx)("label",{className:"block text-[10px] font-black text-gray-400 uppercase tracking-widest mb-2 ml-1",children:"Contraseña"}),(0,b.jsx)("input",{type:"password",required:!0,value:g,onChange:a=>h(a.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,b.jsx)("div",{children:(0,b.jsx)("button",{type:"submit",disabled:l,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:l?"Cargando...":"Registrarse"})})]})]})})}a.s(["default",()=>f])}];

//# sourceMappingURL=src_app_register_page_tsx_463ddc00._.js.map