import { E as head, d as attr } from './dev-B6xUe35c.js';
import './client-BVhtM1mG.js';
import './internal-DQFuMtuQ.js';
import './utils-BSRjJDrZ.js';
import 'node:module';
import './chunk-CLZ62Ad-.js';

//#region src/lib/components/common/AuthGate.svelte
function AuthGate($$renderer, $$props) {
	$$renderer.component(($$renderer) => {
		let tokenInput = "";
		$$renderer.push(`<main class="auth-gate svelte-zhbyfn" aria-label="Admin login gate"><section class="auth-card svelte-zhbyfn"><div class="auth-brand svelte-zhbyfn"><span class="brand-icon svelte-zhbyfn"><img src="/logo-128.png" alt="OpenPalm Logo" class="svelte-zhbyfn"/></span> <div><h1 class="svelte-zhbyfn">OpenPalm Console</h1> <p class="svelte-zhbyfn">Enter your admin password to unlock the control plane.</p></div></div> <form class="auth-form svelte-zhbyfn"><label for="admin-token" class="svelte-zhbyfn">Admin Password</label> <input type="text" name="username" autocomplete="username" value="admin" class="sr-only svelte-zhbyfn" tabindex="-1" aria-hidden="true"/> <div class="token-input-wrapper svelte-zhbyfn"><input id="admin-token" name="admin-token"${attr("type", "password")}${attr("value", tokenInput)} placeholder="Enter admin password" autocomplete="current-password" class="svelte-zhbyfn"/> <button type="button" class="btn-toggle svelte-zhbyfn"${attr("aria-label", "Show token")}>`);
		$$renderer.push("<!--[-1-->");
		$$renderer.push(`<svg aria-hidden="true" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle></svg>`);
		$$renderer.push(`<!--]--></button></div> `);
		$$renderer.push("<!--[-1-->");
		$$renderer.push(`<!--]--> <button class="btn btn-primary" type="submit"${attr("disabled", !tokenInput.trim(), true)}>`);
		$$renderer.push("<!--[-1-->");
		$$renderer.push(`<!--]--> Unlock Console</button></form></section></main>`);
	});
}
//#endregion
//#region src/routes/login/+page.svelte
function _page($$renderer, $$props) {
	$$renderer.component(($$renderer) => {
		let { data } = $$props;
		head("1x05zx6", $$renderer, ($$renderer) => {
			$$renderer.title(($$renderer) => {
				$$renderer.push(`<title>Sign in — OpenPalm</title>`);
			});
		});
		AuthGate($$renderer);
	});
}

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