@model RegisterViewModel
@{
    ViewData["Title"] = "Registrieren";
}

<section class="auth-container">
    <div class="auth-card">
        <h1>Account erstellen</h1>
        <p class="lead">Lege dein persönliches Profil an und verwalte alle Bewerbungen zentral.</p>

        <form asp-action="Register" method="post" class="form-grid">
            @Html.AntiForgeryToken()
            <div asp-validation-summary="ModelOnly" class="validation-summary"></div>

            <div class="form-group">
                <label asp-for="FullName"></label>
                <input asp-for="FullName" />
                <span asp-validation-for="FullName" class="text-danger"></span>
            </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">
                <label asp-for="ConfirmPassword"></label>
                <input asp-for="ConfirmPassword" />
                <span asp-validation-for="ConfirmPassword" class="text-danger"></span>
            </div>

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

        <p class="auth-switch">
            Bereits ein Konto? <a asp-action="Login">Jetzt anmelden</a>
        </p>
    </div>
</section>

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