@extends('layouts.app')

@section('content')
    <!-- center column -->
    <div id="login" class="col-2">
        <div class="content content-last">
            <div class="content-bg">
                <div class="content-bg-bottom">
                    <h2>{{ __('auth.login.title') }}</h2>
                    <div class="inner-form-border">
                        <div class="inner-form-box">
                            <h3><a id="topwLost" href="{{ url('user/passwordlostrequest') }}" title="{{ __('auth.login.forgot-password') }}">{{ __('auth.login.forgot-password') }}</a>{{ __('auth.login.title') }}</h3>
                            <div class="trenner"></div>
                            <form name="loginForm" id="loginForm" action="{{ url('user/login') }}" method="post">
                                @csrf

                                <div>
                                    <label for="username">{{ __('auth.login.username') }}: *</label>
                                    <input type="text" class="validate[required,custom[noSpecialCharacters]]" id="username" name="login" maxlength="16" value="{{ old('login') }}"/>
                                </div>
                                <div>
                                    <label for="password">{{ __('auth.login.password') }}: *</label>
                                    <input type="password" class="validate[required,length[5,16]]" id="password" name="password" maxlength="16" value="{{ old('password') }}" />
                                </div>
                                <div id="checkerror">
                                    <p>{{ __('auth.login.terms-accept') }} <a href="{{ url('legal/terms') }}" target="_blank"><strong>{{ __('auth.login.terms-link') }}</strong></a>.</p>
                                </div>
                                <input id="submitBtn" class="btn-big" type="submit" name="SubmitLoginForm" value="{{ __('auth.login.submit') }}"/>
                                <script type="text/javascript">
                                    @error('login')
                                        $.validationEngine.buildPrompt("#username", "{{ $message }}", "error");
                                    @enderror
                                    @error('password')
                                        $.validationEngine.buildPrompt("#password", "{{ $message }}", "error");
                                    @enderror
                                </script>
                            </form>
                            <p id="regLegend">* {{ __('auth.login.required') }}</p>
                            <div class="trenner"></div>
                            <div id="subscribe">
                                <h3>{{ __('auth.login.no-account') }}</h3>
                                <p>{{ __('auth.login.create-account-text') }}</p>
                                <a class="btn-big" href="{{ url('user/register') }}" title="{{ __('auth.login.create-account') }}">{{ __('auth.login.create-account') }}</a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
