@model ResendVerificationEmailViewModel
@{
    ViewData["Title"] = "Resend verification email";
}

<div class="page-heading compact">
    <div>
        <p class="eyebrow">Account</p>
        <h1>Resend verification email</h1>
        <p class="lead-text">If your verification email did not arrive or the link has expired, request a new one here.</p>
    </div>
</div>

@if (TempData["AuthMessage"] is string authMessage)
{
    <div class="alert alert-info">@authMessage</div>
}

<section class="edit-panel">
    <form asp-action="ResendVerificationEmail" method="post" class="asset-create-form">
        <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="Email">Email address</label>
                <input class="form-control" asp-for="Email" autocomplete="email" />
                <span class="text-danger" asp-validation-for="Email"></span>
            </div>
        </div>

        <div class="button-row mt-3">
            <button class="btn btn-primary" type="submit">Send verification email</button>
            <a class="btn btn-outline-secondary" asp-action="Login">Back to Login</a>
            <a class="btn btn-outline-secondary" asp-action="Register">Back to Register</a>
        </div>
    </form>
</section>

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