<?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-6 col-lg-5">
        <div class="card border-0 shadow-sm">
            <div class="card-body p-4">
                <h1 class="h4 mb-1">Create your account</h1>
                <p class="text-secondary small mb-4">Start protecting your traffic in minutes.</p>
                <form method="post" action="/register" novalidate>
                    <?= $csrf->field() ?>
                    <div class="mb-3">
                        <label class="form-label">Name</label>
                        <input type="text" name="name" class="form-control" required autofocus>
                    </div>
                    <div class="mb-3">
                        <label class="form-label">Email</label>
                        <input type="email" name="email" class="form-control" required>
                    </div>
                    <div class="row g-3">
                        <div class="col-sm-6 mb-3">
                            <label class="form-label">Password</label>
                            <input type="password" name="password" class="form-control" required minlength="8">
                        </div>
                        <div class="col-sm-6 mb-3">
                            <label class="form-label">Confirm</label>
                            <input type="password" name="password_confirmation" class="form-control" required minlength="8">
                        </div>
                    </div>
                    <button class="btn btn-primary w-100" type="submit">Create account</button>
                </form>
                <hr class="my-4">
                <p class="text-center small mb-0">Already registered? <a href="/login">Sign in</a></p>
            </div>
        </div>
    </div>
</div>
