<?= $this->extend('layouts/main') ?>
<?= $this->section('content') ?>

<div class="container">
    <div class="card auth-card shadow-sm">
        <div class="card-body p-4">
            <h4 class="mb-3 text-center">Forgot Password</h4>
            <p class="text-muted text-center">Enter your email and we'll send you a reset link.</p>
            <form method="post" action="<?= base_url('forgot-password') ?>">
                <?= csrf_field() ?>
                <div class="mb-3">
                    <label class="form-label">Email</label>
                    <input type="email" name="email" class="form-control" required autofocus>
                </div>
                <button type="submit" class="btn btn-primary w-100">Send Reset Link</button>
            </form>
            <p class="text-center mt-3 mb-0"><a href="<?= base_url('login') ?>">Back to login</a></p>
        </div>
    </div>
</div>

<?= $this->endSection() ?>
