import { a7 as head, a4 as escape_html, a6 as attr } from '../../../chunks/index.js-BVnekaYQ.js';
import '../../../chunks/exports.js-8HOoaa4e.js';
import '../../../chunks/utils2.js-BQzn9ikS.js';
import '../../../chunks/utils.js-mIi_c4Oz.js';
import '../../../chunks/root.js-l4cSj5gU.js';
import '../../../chunks/state.svelte.js-DC2zSH9Y.js';
import '../../../chunks/false.js-B2gHlHjM.js';

function _page($$renderer, $$props) {
  $$renderer.component(($$renderer2) => {
    let { form } = $$props;
    head("1x05zx6", $$renderer2, ($$renderer3) => {
      $$renderer3.title(($$renderer4) => {
        $$renderer4.push(`<title>Acceso · Inventario EDUmind</title>`);
      });
    });
    $$renderer2.push(`<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">`);
    if (form?.error) {
      $$renderer2.push("<!--[0-->");
      $$renderer2.push(`<p class="rounded-lg bg-red-50 px-3 py-2 text-sm font-medium text-red-700" role="alert">${escape_html(form.error)}</p>`);
    } else {
      $$renderer2.push("<!--[-1-->");
    }
    $$renderer2.push(`<!--]--> <div><label class="label" for="email">Correo</label> <input class="input" id="email" name="email" type="email" autocomplete="username" required=""${attr("value", form?.email ?? "")}/></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>`);
  });
}

export { _page as default };
//# sourceMappingURL=_page.svelte.js-PrDuDF42.js.map
