@model LoginViewModel
@{
    ViewData["Title"] = "Anmelden";
}

<section class="auth-container">
    <div class="auth-card">
        <h1>Willkommen zurück</h1>
        <p class="lead">Melde dich an, um deine Bewerbungen zu verwalten.</p>

        <form asp-action="Login" method="post" class="form-grid">
            @Html.AntiForgeryToken()
            <input type="hidden" asp-for="ReturnUrl" />
            <div asp-validation-summary="ModelOnly" class="validation-summary"></div>

            <div class="form-group">
                <label asp-for="Email"></label>
                <input asp-for="Email" />
                <span asp-validation-for="Email" class="text-danger"></span>
            </div>

            <div class="form-group">
                <label asp-for="Password"></label>
                <input asp-for="Password" />
                <span asp-validation-for="Password" class="text-danger"></span>
            </div>

            <div class="form-group form-check">
                <input asp-for="RememberMe" />
                <label asp-for="RememberMe"></label>
            </div>

            <button type="submit" class="btn btn-primary">Anmelden</button>
        </form>

        <p class="auth-switch">
            Noch kein Konto? <a asp-action="Register">Jetzt registrieren</a>
        </p>
    </div>
</section>

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