url = "/login"
layout = "mainN"
title = "Login"
==
{%partial "bread" title='login.title'|_ %}

<!-- LOGIN AREA START -->
<div class="ltn__login-area pb-85">
    <div class="container">
        <!-- <div class="row">
            <div class="col-lg-12">
                <div class="section-title-area text-center">
                    <h1>Sign In <br>To  Your Account</h1>
                    <p>Lorem ipsum dolor, sit amet consectetur adipisicing elit. <br>
                         Sit aliquid,  Non distinctio vel iste.</p>
                </div>
            </div>
        </div> -->
        <div class="row">
            <div class="col-lg-6">
                <div class="account-login-inner">
                    <form class="ltn__form-box contact-form-box">
                        <input type="text" name="phone" placeholder="{{'form.phone'|_}}*">
                        <input type="password" name="password" placeholder="{{'form.pass'|_}}*">
                        <div class="btn-wrapper mt-0">
                            <button class="theme-btn-1 btn btn-block" type="button"
                                onClick="login();">{{'login.title'|_}}</button>
                            {% partial 'loader/form' %}
                        </div>
                        <div class="go-to-btn mt-20" id="errors" style="display: inline-grid;">

                        </div>
                    </form>
                    {%partial 'hidden/form'%}
                </div>
            </div>
            <div class="col-lg-6">
                <div class="account-create text-center pt-50">
                    <h4>{{'dont.have.account'|_}}</h4>
                    <p>{{'register.desc'|_}}</p>
                    <div class="btn-wrapper">
                        <a href="{{'register'|page}}" class="theme-btn-1 btn black-btn">{{'register.title'|_}}</a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- LOGIN AREA END -->

{% partial 'home/brand' %}
{% partial 'scripts/auth' %}

{% put scripts %}
<script>

    function onSetData(token, nameF, phoneF) {

        $(this).request('onSetSessionNurgul', {
            data: { nurgulToken: token, name: nameF, phone: phoneF },
            success: function (data) {
                console.log(data);
            }
        });
    };

</script>
{% endput %}