<?= $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">Join your team on Job Portal</h4>
            <form method="post" action="<?= base_url('accept-invitation') ?>/<?= esc($token) ?>">
                <?= csrf_field() ?>
                <div class="mb-3">
                    <label class="form-label">Your Full Name</label>
                    <input type="text" name="name" class="form-control" required autofocus>
                </div>
                <div class="mb-3">
                    <label class="form-label">Set a Password</label>
                    <input type="password" name="password" class="form-control" minlength="8" required>
                </div>
                <button type="submit" class="btn btn-primary w-100">Join Team</button>
            </form>
        </div>
    </div>
</div>

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