
@{
    ViewData["Title"] = "Login";
    Layout = "~/Views/Shared/_LoginLayout.cshtml";
}

@model EForT.Models.LoginValues

@using (Html.BeginForm("Login", "Login", FormMethod.Post))
{
    <div class="app-content container center-layout">
        <div class="content-wrapper">
            <div class="content-header row">
            </div>
            <div class="content-body">
                <section class="flexbox-container">
                    <div class="col-12 d-flex align-items-center justify-content-center">
                        <div class="col-md-7 col-lg-5 col-xl-4 col-12 box-shadow-2 p-0">
                            <div class="card border-grey border-lighten-3 px-1 py-1 m-0">
                                <div class="card-header border-0">
                                    <div class="card-title text-center">
                                        <img src="~/images/apple-icon120.png" alt="branding logo">
                                    </div>
                                    <h6 class="card-subtitle line-on-side text-center font-small-3 pt-2"><span>Empowered Forex Trader</span></h6>
                                </div>
                                <div class="card-content">
                                    <p class="card-subtitle text-center font-medium-2 mx-2"><span>Start trading currencies | Log in</span></p>
                                    <div class="card-body">
                                        <div class="form-horizontal">
                                            <fieldset class="form-group position-relative has-icon-left">
                                                <input type="text" class="form-control" asp-for="UserName" id="username" placeholder="Username" required>
                                                <div class="form-control-position">
                                                    <i class="ft-user"></i>
                                                </div>
                                            </fieldset>
                                            <fieldset class="form-group position-relative has-icon-left">
                                                <input type="password" class="form-control" asp-for="UserPassword" id="userpassword" placeholder="Password" required>
                                                <div class="form-control-position">
                                                    <i class="fa fa-key"></i>
                                                </div>
                                            </fieldset>
                                            <div class="form-group row">
                                                <div class="col-md-6 col-12 text-center text-sm-left">
                                                    <fieldset>
                                                        <input type="checkbox" id="rememberme" name="rememberme" value="true" class="chk-remember">
                                                        <label for="rememberme"> Remember Me</label>
                                                    </fieldset>
                                                </div>
                                                <div class="col-md-6 col-12 float-sm-left text-center text-sm-right"><a href="@Url.Action("ForgetPassword", "Login")" class="card-link">Forgot Password?</a></div>
                                            </div>
                                            @if (ViewBag.ValidateUser != "Success")
                                            {
                                                <div class="text-danger text-center error-message my-2">
                                                    <span>@ViewBag.ValidateUser</span>
                                                </div>
                                            }
                                            <button type="submit" class="btn btn-primary btn-block"><i class="ft-unlock"></i> Login</button>
                                        </div>
                                    </div>
                                    <p class="card-subtitle line-on-side text-muted text-center font-small-3 mx-2 my-1"><span>Not a Member yet ?</span></p>
                                    <div class="card-body">
                                        <a href="@Url.Action("OpenAccount", "Login")" class="btn btn-secondary btn-block"><i class="ft-user"></i> Open an Account</a>
                                    </div>
                                </div>
                                <div class="card-footer pb-1">
                                    <div class="text-center">Copyright  &copy; @DateTime.Today.Date.Year.ToString() Empowered Forex Trader<br />All rights reserved. </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </section>
            </div>
        </div>
    </div>
}