import{u,g as r,b as s,s as b,j as m,h as n,v as i,e as o,t as p,i as c,x,o as a}from"./app-BJF24m-a.js";const f={class:"min-h-screen bg-gradient-to-br from-slate-900 via-blue-900 to-slate-900 flex items-center justify-center p-4"},g={class:"w-full max-w-md"},w={class:"bg-white rounded-3xl shadow-2xl p-8"},v={key:0,class:"text-red-500 text-xs mt-1"},h={class:"flex items-center justify-between"},y={class:"flex items-center gap-2 cursor-pointer"},k=["disabled"],j={key:0},V={key:1},N={__name:"Login",props:{title:String},setup(C){const t=u({email:"",password:"",remember:!1}),d=()=>{t.post(route("ajustador.login.post"),{onFinish:()=>t.reset("password")})};return(_,e)=>(a(),r("div",f,[s("div",g,[e[8]||(e[8]=b('<div class="text-center mb-8"><div class="inline-flex items-center justify-center w-16 h-16 bg-blue-600 rounded-2xl shadow-lg shadow-blue-600/30 mb-4"><svg class="w-8 h-8 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg></div><h1 class="text-2xl font-bold text-white">INNOVA</h1><p class="text-blue-300 text-sm mt-1">Portal del Ajustador</p></div>',1)),s("div",w,[e[6]||(e[6]=s("h2",{class:"text-xl font-bold text-slate-800 mb-2"},"Iniciar Sesión",-1)),e[7]||(e[7]=s("p",{class:"text-slate-500 text-sm mb-6"},"Ingresa tus credenciales para acceder a tus casos asignados",-1)),s("form",{onSubmit:m(d,["prevent"]),class:"space-y-5"},[s("div",null,[e[3]||(e[3]=s("label",{class:"block text-sm font-semibold text-slate-700 mb-2"},"Correo Electrónico",-1)),n(s("input",{"onUpdate:modelValue":e[0]||(e[0]=l=>o(t).email=l),type:"email",class:"w-full px-4 py-3 bg-slate-50 border border-slate-200 rounded-xl focus:ring-2 focus:ring-blue-500 focus:border-blue-500 transition-all text-slate-700",placeholder:"ajustador@ejemplo.com",required:"",autofocus:""},null,512),[[i,o(t).email]]),o(t).errors.email?(a(),r("p",v,p(o(t).errors.email),1)):c("",!0)]),s("div",null,[e[4]||(e[4]=s("label",{class:"block text-sm font-semibold text-slate-700 mb-2"},"Contraseña",-1)),n(s("input",{"onUpdate:modelValue":e[1]||(e[1]=l=>o(t).password=l),type:"password",class:"w-full px-4 py-3 bg-slate-50 border border-slate-200 rounded-xl focus:ring-2 focus:ring-blue-500 focus:border-blue-500 transition-all text-slate-700",placeholder:"••••••••",required:""},null,512),[[i,o(t).password]])]),s("div",h,[s("label",y,[n(s("input",{"onUpdate:modelValue":e[2]||(e[2]=l=>o(t).remember=l),type:"checkbox",class:"w-4 h-4 text-blue-600 rounded focus:ring-blue-500 border-slate-300"},null,512),[[x,o(t).remember]]),e[5]||(e[5]=s("span",{class:"text-sm text-slate-600"},"Recordarme",-1))])]),s("button",{type:"submit",disabled:o(t).processing,class:"w-full py-3 bg-blue-600 text-white font-bold rounded-xl hover:bg-blue-700 transition-all disabled:opacity-50 disabled:cursor-not-allowed shadow-lg shadow-blue-600/20"},[o(t).processing?(a(),r("span",j,"Ingresando...")):(a(),r("span",V,"Ingresar"))],8,k)],32)]),e[9]||(e[9]=s("p",{class:"text-center text-slate-500 text-xs mt-6"}," ¿Problemas para ingresar? Contacta a tu coordinador ",-1))])]))}};export{N as default};
