<?php include app()->basePath('app/Views/partials/header.php'); ?>

<section class="panel narrow">
    <p class="eyebrow">Acesso</p>
    <h1>Entrar</h1>
    <form method="post" action="/login" class="form">
        <?= csrf_field() ?>
        <label>
            Email
            <input type="email" name="email" value="<?= e((string) old('email')) ?>" required>
        </label>
        <label>
            Senha
            <input type="password" name="password" required>
        </label>
        <button class="button" type="submit">Entrar</button>
    </form>
    <p class="small">
        Admin local: <strong>admin@mozcursos.local</strong> / <strong>Admin12345</strong>
    </p>
    <p class="small"><a href="/forgot-password">Esqueci a senha</a></p>
</section>

<?php include app()->basePath('app/Views/partials/footer.php'); ?>
