<?php $locale = current_locale(); ?>
<section class="auth-shell">
    <div class="card auth-card auth-card-wide">
        <p class="eyebrow"><?= e(trans('common.administrator', [], $locale)) ?></p>
        <h1><?= e(trans('admin.register_heading', [], $locale)) ?></h1>
        <p class="support-copy"><?= e(trans('admin.register_copy', [], $locale)) ?></p>

        <form method="post" action="<?= e(base_url('/admin/register')) ?>" class="stack-form">
            <input type="hidden" name="_csrf" value="<?= e(csrf_token()) ?>">

            <label>
                <span><?= e(trans('participant.full_name', [], $locale)) ?></span>
                <input type="text" name="full_name" value="<?= e(old('full_name')) ?>" required>
            </label>

            <label>
                <span><?= e(trans('participant.email', [], $locale)) ?></span>
                <input type="email" name="email" value="<?= e(old('email')) ?>" required>
            </label>

            <label>
                <span><?= e(trans('common.password', [], $locale)) ?></span>
                <input type="password" name="password" required>
            </label>

            <label>
                <span><?= e(trans('admin.confirm_password', [], $locale)) ?></span>
                <input type="password" name="confirm_password" required>
            </label>

            <div class="toolbar-actions">
                <a class="ghost-button" href="<?= e(base_url('/admin/reports')) ?>"><?= e(trans('common.back', [], $locale)) ?></a>
                <button class="primary-button" type="submit"><?= e(trans('admin.register_submit', [], $locale)) ?></button>
            </div>
        </form>
    </div>
</section>