<section class="min-h-screen flex items-center justify-center bg-slate-100 py-20">
    <div class="w-full max-w-md bg-white rounded-3xl border border-slate-200 p-8 shadow-2xl">
        <h1 class="text-3xl font-bold text-slate-950">Admin Login</h1>
        <p class="mt-2 text-slate-600">Secure access to the Balorp Ventures management dashboard.</p>
        <?php if (!empty($error)): ?>
            <div class="mt-6 rounded-2xl bg-rose-50 border border-rose-200 p-4 text-rose-700"><?= htmlspecialchars($error) ?></div>
        <?php endif; ?>
        <?php if (!empty($debug)): ?>
            <div class="mt-4 rounded-2xl bg-amber-50 border border-amber-200 p-4 text-amber-800 text-xs"><?= htmlspecialchars($debug) ?></div>
        <?php endif; ?>
        <form id="admin-login-form" method="post" action="<?= htmlspecialchars($baseUrl) ?>/login" class="mt-8 space-y-6">
            <?= CSRF::input() ?>
            <div>
                <label class="block text-sm font-medium text-slate-700">Email</label>
                <input type="email" name="email" required class="mt-2 w-full rounded-2xl border border-slate-300 p-3" />
            </div>
            <div>
                <label class="block text-sm font-medium text-slate-700">Password</label>
                <input type="password" name="password" required class="mt-2 w-full rounded-2xl border border-slate-300 p-3" />
            </div>
            <button id="signin-btn" type="submit" class="w-full rounded-full bg-charcoal text-white px-6 py-3 text-sm font-semibold">Sign In</button>
        </form>
        <p class="mt-4 text-xs text-slate-500 text-center">Default: admin@balorpventures.com / admin123</p>
    </div>
</section>
