import"../chunks/Bzak7iHL.js";import{p as b,t as p,a as c,b as h,k as g,s as n,d as r,c as u,$ as _,r as s,n as w,e as y}from"../chunks/CiQWViEs.js";import{i as E}from"../chunks/CEkQpEF5.js";import{h as I}from"../chunks/DG4rvltU.js";import{a as D,e as U}from"../chunks/BblGoPVU.js";import{r as j,s as k}from"../chunks/zaEOnEon.js";var q=u('<p class="rounded-lg bg-red-50 px-3 py-2 text-sm font-medium text-red-700" role="alert"> </p>'),C=u('<main class="mx-auto flex min-h-screen max-w-md flex-col justify-center px-4 py-10"><div class="mb-6 text-center"><img src="/logo-edumind.png" alt="Inventario EDUmind" class="mx-auto mb-3 h-24 w-24 rounded-2xl object-contain shadow-sm ring-1 ring-slate-200"/> <h1 class="text-2xl font-bold text-slate-900">Inventario EDUmind</h1> <p class="mt-1 text-slate-600">Inicia sesión para gestionar el inventario del centro.</p></div> <form method="POST" class="card space-y-4 p-6"><!> <div><label class="label" for="email">Correo</label> <input class="input" id="email" name="email" type="email" autocomplete="username" required=""/></div> <div><label class="label" for="password">Contraseña</label> <input class="input" id="password" name="password" type="password" autocomplete="current-password" required=""/></div> <button class="btn-primary w-full" type="submit">Entrar</button></form></main>');function B(f,t){b(t,!0);var o=C();I("1x05zx6",a=>{g(()=>{_.title="Acceso · Inventario EDUmind"})});var i=n(r(o),2),l=r(i);{var v=a=>{var e=q(),x=r(e,!0);s(e),p(()=>y(x,t.form.error)),c(a,e)};E(l,a=>{var e;(e=t.form)!=null&&e.error&&a(v)})}var m=n(l,2),d=n(r(m),2);j(d),s(m),w(4),s(i),D(i,a=>{var e;return(e=U)==null?void 0:e(a)}),s(o),p(()=>{var a;return k(d,((a=t.form)==null?void 0:a.email)??"")}),c(f,o),h()}export{B as component};
