<?php
/** @var \BotGuard\Core\View $this @var \BotGuard\Core\Csrf $csrf */
$this->layout('layouts.app');
?>
<div class="row justify-content-center py-lg-5">
    <div class="col-md-5 col-lg-4">
        <div class="card border-0 shadow-sm">
            <div class="card-body p-4">
                <h1 class="h4 mb-1">Sign in</h1>
                <p class="text-secondary small mb-4">Access your BotGuard dashboard.</p>
                <form method="post" action="/login" novalidate>
                    <?= $csrf->field() ?>
                    <div class="mb-3">
                        <label class="form-label">Email</label>
                        <input type="email" name="email" class="form-control" required autofocus>
                    </div>
                    <div class="mb-3">
                        <label class="form-label">Password</label>
                        <input type="password" name="password" class="form-control" required>
                    </div>
                    <button class="btn btn-primary w-100" type="submit">Sign in</button>
                </form>
                <hr class="my-4">
                <p class="text-center small mb-0">No account? <a href="/register">Create one</a></p>
            </div>
        </div>
    </div>
</div>
