<?php declare(strict_types=1); ?>
<section class="content-section form-section">
    <div class="container narrow-container auth-card">
        <p class="eyebrow"><?= quaeriva_t($translator, 'auth.resend_verification') ?></p>
        <h1><?= quaeriva_t($translator, 'auth.resend_title') ?></h1>
        <p class="section-lede"><?= quaeriva_t($translator, 'auth.resend_intro') ?></p>
        <?php if (($error ?? '') !== ''): ?><p class="notice notice-error" role="alert"><?= quaeriva_escape($error) ?></p><?php endif; ?>
        <?php if (($notice ?? '') !== ''): ?><p class="notice notice-muted" role="status"><?= quaeriva_escape($notice) ?></p><?php endif; ?>
        <form class="question-form" method="post" action="<?= quaeriva_escape(quaeriva_url('resend-verification')) ?>">
            <input type="hidden" name="_csrf" value="<?= quaeriva_escape($csrfToken) ?>">
            <div class="field-group"><label for="resend-email"><?= quaeriva_t($translator, 'auth.email') ?></label><input id="resend-email" name="email" type="email" required autocomplete="email" value="<?= quaeriva_escape($email ?? '') ?>"></div>
            <button class="button" type="submit"><?= quaeriva_t($translator, 'auth.resend_verification') ?></button>
        </form>
    </div>
</section>
