@model TwoFactorRecoveryViewModel
@{
    ViewData["Title"] = "Use a recovery code";
}

<div class="page-heading compact">
    <div>
        <p class="eyebrow">Account</p>
        <h1>Use a recovery code</h1>
        <p class="lead-text">Use one of your emergency recovery codes if you cannot access your authenticator app.</p>
    </div>
</div>

<section class="edit-panel">
    <form asp-action="TwoFactorRecovery" method="post" class="asset-create-form">
        <input asp-for="ReturnUrl" type="hidden" />
        <div asp-validation-summary="ModelOnly" class="alert alert-warning"></div>

        <div class="row g-3">
            <div class="col-md-6">
                <label class="form-label" asp-for="RecoveryCode">Recovery code</label>
                <input class="form-control" asp-for="RecoveryCode" autocomplete="off" />
                <span class="text-danger" asp-validation-for="RecoveryCode"></span>
            </div>
        </div>

        <div class="button-row mt-3">
            <button class="btn btn-primary" type="submit">Use recovery code</button>
            <a class="btn btn-outline-secondary" asp-action="TwoFactor" asp-route-returnUrl="@Model.ReturnUrl">Back to authenticator code</a>
        </div>
    </form>
</section>

@section Scripts {
    <partial name="_ValidationScriptsPartial" />
}
