@page
@model LoginModel
@{
    ViewData["Title"] = "로그인";
}


<div class="row" style="margin-top:20px">
    <div class="col-md-5">
        <h1><a href="javascript:history.back()" class="glyphicon glyphicon-menu-left" aria-hidden="true"></a>@ViewData["Title"]</h1>

        <p>JTK PC방의 다양한 서비스를 이용하려면 먼저 로그인해야합니다.</p>
        <hr />
        <form method="post" id="form">
            <div asp-validation-summary="ModelOnly" class="text-danger"></div>
            <div class="form-group">
                <label asp-for="Login.Id" class="control-label"></label>
                <input asp-for="Login.Id" class="form-control" />
                <span asp-validation-for="Login.Id" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="Login.Password" class="control-label"></label>
                <input asp-for="Login.Password" class="form-control" type="password" />
                <span asp-validation-for="Login.Password" class="text-danger"></span>
            </div>
            <div class="form-group">
                <span class="text-danger field-validation-error">@Model.ErrorMessage</span>
            </div>
            <div class="form-group">
                @*<input type="submit" value="로그인" class="btn btn-warning" style="width:100%" />*@
                <input type="submit" hidden="hidden" />
                <a style="width:100%" href="javascript:document.getElementById('form').submit()" class="btn btn-warning"><span class="glyphicon glyphicon-log-in"></span> 로그인</a>
                <div style="margin-top:10px; float:right">
                    <span>아직 회원이 아니라면</span>
                    <a asp-page="/Join/Index" class="btn btn-default"><span style="font-size:small" class="glyphicon glyphicon-new-window"></span> 회원가입</a>
                </div>
            </div>
        </form>
    </div>
</div>

<div>
    <a asp-page="Index">홈으로 이동</a>
</div>

@section Scripts {
    @{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
}