@using system
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用户登录界面</title>
    <link href="~/Content/bootstrap.css" rel="stylesheet" />
    <link href="~/Content/Login.css" rel="stylesheet" />
</head>


<body id="body" style="background-color:darkgray">
    <div class="container" style="filter:alpha(opacity=8);opacity: 0.8; " id="main">
        <div class="row">
            <div class="col-md-offset-3 col-md-6">
                @using (Html.BeginForm("Login", "Account", FormMethod.Post, new { @class = "form-horizontal" }))
                {
                    @Html.AntiForgeryToken()
                    <span class="heading">@CommonLibrary.SoftResources.StringResouce.SoftName<small style="font-family:'Microsoft YaHei';color:#a1a1a1;font-size:15px">用户登录</small></span>
                    <div class="form-group">
                        <input type="text" class="form-control" name="UserName" placeholder="用户名" required>
                        <i class="fa fa-user"></i>
                    </div>
                    <div class="form-group help">
                        <input type="password" class="form-control" name="UserPassword" placeholder="密　码" required>
                        <i class="fa fa-lock"></i>
                        <a href="#" class="fa fa-question-circle"></a>
                    </div>
                    <div class="form-group">
                        <button type="submit" class="btn btn-default">登录</button>
                    </div>
                }
            </div>
        </div>
    </div>

    <script type="text/javascript">
        var windowScreen = document.documentElement;
        var main_div = document.getElementById("main");
        if (((windowScreen.clientHeight - main_div.clientHeight) / 2) >= 0) {
            var main_top = (windowScreen.clientHeight - main_div.clientHeight) / 2 + "px";
            main_div.style.marginTop = main_top;
        }
    </script>

    @if (ViewData["Message"] != null)
    {
        <script type="text/javascript">alert('@ViewData["Message"]')</script>
    }

</body>
</html>