(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,94542,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)(""),[n,l]=(0,a.useState)(""),{login:o,loading:c}=(0,r.useAuth)(),d=async t=>{t.preventDefault();try{await o(e,n)}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:"Iniciar Sesión"}),(0,t.jsxs)("p",{className:"mt-2 text-center text-sm text-gray-600",children:["O"," ",(0,t.jsx)(s.default,{href:"/register",className:"font-bold text-indigo-600 hover:text-indigo-500 transition-colors",children:"crea una cuenta nueva"})]})]}),(0,t.jsxs)("form",{className:"mt-8 space-y-6",onSubmit:d,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:"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:n,onChange:e=>l(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:"••••••••"})]})]}),(0,t.jsx)("div",{children:(0,t.jsx)("button",{type:"submit",disabled:c,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:c?"Cargando...":"Entrar"})})]})]})})}e.s(["default",()=>i])}]);