(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[920],{3162:function(e,r,t){Promise.resolve().then(t.bind(t,8003))},8003:function(e,r,t){"use strict";t.r(r),t.d(r,{default:function(){return i}});var a=t(7437),n=t(2265);t(3079);var s=t(2119);(0,s.$)("ccf5884294b487f79bafd30258e29ad07abdbb6d");var l=(0,s.$)("6ee61151aa07026b914729de0b4f064b59a26a11"),d=t(4226),o=t(8068);function i(){let[e,r]=(0,n.useState)(""),[t,s]=(0,n.useState)(!1);async function i(e){e.preventDefault(),s(!0),r("");let t=new FormData(e.currentTarget),a=await l(t);(null==a?void 0:a.error)&&(r(a.error),s(!1))}return(0,a.jsx)("div",{className:"min-h-screen bg-gradient-to-br from-brand-dark to-brand flex items-center justify-center px-4",children:(0,a.jsxs)("div",{className:"w-full max-w-sm",children:[(0,a.jsxs)("div",{className:"text-center mb-8",children:[(0,a.jsx)("div",{className:"inline-flex items-center justify-center w-16 h-16 bg-brand-gold rounded-2xl mb-4 shadow-lg",children:(0,a.jsx)("span",{className:"font-black text-brand-dark text-2xl",children:"I"})}),(0,a.jsx)("h1",{className:"text-2xl font-extrabold text-white",children:"ICONO Seguros"}),(0,a.jsx)("p",{className:"text-blue-200 text-sm mt-1",children:"Panel Administrador"})]}),(0,a.jsxs)("div",{className:"bg-white rounded-2xl shadow-2xl p-8",children:[(0,a.jsx)("h2",{className:"text-lg font-bold text-brand-dark mb-6 text-center",children:"Iniciar sesi\xf3n"}),(0,a.jsxs)("form",{onSubmit:i,className:"space-y-5",children:[(0,a.jsx)(o.I,{label:"Email",name:"email",type:"email",required:!0,placeholder:"admin@icono.uy",autoComplete:"email"}),(0,a.jsx)(o.I,{label:"Contrase\xf1a",name:"password",type:"password",required:!0,placeholder:"••••••••",autoComplete:"current-password"}),e&&(0,a.jsx)("div",{className:"bg-red-50 border border-red-200 text-red-700 text-sm px-4 py-3 rounded-xl",children:e}),(0,a.jsx)(d.z,{type:"submit",size:"lg",loading:t,className:"w-full",children:"Ingresar →"})]})]})]})})}},4226:function(e,r,t){"use strict";t.d(r,{z:function(){return n}});var a=t(7437);function n(e){let{variant:r="primary",size:t="md",loading:n=!1,children:s,className:l="",disabled:d,...o}=e;return(0,a.jsx)("button",{className:"".concat("inline-flex items-center justify-center font-semibold rounded-xl transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-60 disabled:cursor-not-allowed"," ").concat({primary:"bg-brand-gold hover:bg-brand-gold-dark text-brand-dark focus:ring-brand-gold shadow-md hover:shadow-lg",secondary:"bg-brand-dark hover:bg-brand text-white focus:ring-brand shadow-md hover:shadow-lg",ghost:"bg-transparent hover:bg-white/10 text-white border border-white/30 focus:ring-white",danger:"bg-red-600 hover:bg-red-700 text-white focus:ring-red-500 shadow-md"}[r]," ").concat({sm:"px-4 py-2 text-sm",md:"px-6 py-3 text-base",lg:"px-8 py-4 text-lg"}[t]," ").concat(l),disabled:d||n,...o,children:n?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("svg",{className:"animate-spin -ml-1 mr-2 h-4 w-4",fill:"none",viewBox:"0 0 24 24",children:[(0,a.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,a.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),"Procesando..."]}):s})}},8068:function(e,r,t){"use strict";t.d(r,{I:function(){return n}});var a=t(7437);let n=(0,t(2265).forwardRef)((e,r)=>{let{label:t,error:n,hint:s,className:l="",id:d,...o}=e,i=null!=d?d:t.toLowerCase().replace(/\s+/g,"-");return(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsxs)("label",{htmlFor:i,className:"text-sm font-medium text-gray-700",children:[t,o.required&&(0,a.jsx)("span",{className:"text-red-500 ml-1",children:"*"})]}),(0,a.jsx)("input",{ref:r,id:i,className:"w-full px-4 py-3 rounded-xl border transition-all duration-200\n            focus:outline-none focus:ring-2 focus:ring-brand focus:border-transparent\n            bg-white text-gray-900 placeholder-gray-400\n            ".concat(n?"border-red-400 bg-red-50":"border-gray-300 hover:border-brand","\n            ").concat(l),...o}),n&&(0,a.jsx)("p",{className:"text-sm text-red-600",children:n}),s&&!n&&(0,a.jsx)("p",{className:"text-xs text-gray-500",children:s})]})});n.displayName="Input"},2119:function(e,r,t){"use strict";Object.defineProperty(r,"$",{enumerable:!0,get:function(){return n}});let a=t(3079);function n(e){let{createServerReference:r}=t(6671);return r(e,a.callServer)}}},function(e){e.O(0,[971,117,744],function(){return e(e.s=3162)}),_N_E=e.O()}]);