<?php $this->layout('layouts/auth'); ?>

<?php _message(); ?>
<div class="card card-md">
	<div class="card-body">
		<h2 class="h2 text-center mb-1"><?php e__('Recover TFA') ?></h2>
		<p class="text-muted mb-5 text-center">
			<?php e__('Submit a recovery request to access your account.') ?>
		</p>
		<form data-toggle="form-submit-with-loader" action="<?php echo url('tfa.recover.send') ?>" method="post">
			<?php _csrf(); ?>
			<div class="mb-3">
				<label for="email" class="form-label"><?php e__('Email') ?></label>
				<input type="email" class="form-control" name="email" id="email" value="<?php _old('email'); ?>">
			</div>
			<div class="form-footer mt-4">
				<button type="submit" class="btn btn-primary w-100">
					<?php e__('Send') ?>
				</button>
			</div>
		</form>
	</div>
</div>
<a class="d-block text-center text-secondary mt-3" href="<?php echo url('tfa.index') ?>">
	<?php e__('Back to verification') ?>
</a>