@extends('layouts.base')

@section('content')
    <div class="fluid-container h-100">
        <div class="row no-margin" style=" min-height: 100%; ">
            <div class="col no-padding" style="background-image: url({{asset('images/shipping_bg.jpeg')}}); background-position: center; background-size: cover;">
                <div class="w-100 h-100 bg-primary" style="position: absolute; opacity: 0.1;"></div>
                <span class="login-triangle"></span>
            </div>
            <div class="col-4 padding-50 bg-white">
                <div class="row m-t-50">
                    <div class="col m-t-50 p-l-0">
                        <img src="{{asset('images/logo.png')}}" alt="logo" height="35">
                    </div>
                </div>
                <div class="row m-t-50">
                    <div class="col">
                        <div class="inline v-align-middle">
                            <h4 class="font-heading no-margin lh-28">User Login</h4>
                            <p class="no-margin hint-text lh-18">Sign in using your credentials</p>
                        </div>
                    </div>
                </div>
                <div class="row m-t-10">
                    <div class="col">
                        <div class="row">
                            <div class="col">
                                @if($errors->any())
                                    @foreach ($errors->all() as $error)
                                        <div class="error">{{ $error }}</div>
                                    @endforeach
                                @endif
                            </div>
                        </div>
                        <!-- START Login Form -->
                        <form method="post" id="form-login" class="p-t-15" action="{{route('auth.login')}}">
                            <div class="form-group form-group-default">
                                <label>Username</label>
                                <div class="controls">
                                    <input name="email" placeholder="Email Address" class="form-control">
                                </div>
                            </div>
                            <div class="form-group form-group-default">
                                <label>Password</label>
                                <div class="controls">
                                    <input type="password" class="form-control" name="password" placeholder="Credentials">
                                </div>
                            </div>
                            <div class="row justify-content-center align-items-center">
                                <div class="col no-padding">
                                    <div class="row">
                                        <div class="col no-padding">
                                            <div class="pretty p-icon p-round p-smooth">
                                                <input type="checkbox" name="remember" />
                                                <div class="state p-success">
                                                    <i class="icon fa fa-check"></i>
                                                    <label class="fs-13">Keep me signed in</label>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col no-padding">
                                            <a href="{{ route("password.forgot") }}"><small class="text-complete">Forgot your password?</small></a>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-auto">
                                    {{ csrf_field() }}
                                    <button class="btn btn-primary btn-cons pull-right m-r-0 b-rad-none">Sign in</button>
                                </div>
                            </div>

                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection