@extends('layouts.app')
@section('content')

    <a href="{{ url('/') }}">
        <span style=" z-index: 10; top:5px; left: 2px; position: absolute;"><img src={{URL::asset('/resources/images/logo-top.png')}} alt=""/></span>
    </a>
    <div style="height: 69px; width: 100%;background-repeat: repeat;background-image: url({{URL::asset('/resources/images/bg-top1.png')}});"></div>

    <div class="row justify-content-center mt-5 w-100" style="padding-left: 20%;">
        <div class="col-md-8">
            <div class="card" style="width: 600px;">
                <div class="card-header">{{ __('Přihlášení do Administrace') }}</div>

                <div class="card-body">
                    <form method="POST" action="{{ route('login') }}">
                        @csrf

                        <div class="form-group row">
                            <label for="email" class="col-md-4 col-form-label text-md-right">{{ __('Přihlašovací email') }}</label>

                            <div class="col-md-6">
                                <input id="email" type="email" class="form-control @error('email') is-invalid @enderror" name="email" value="{{ old('email') }}" required autocomplete="email" autofocus>

                                @error('email')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>
                        </div>

                        <div class="form-group row">
                            <label for="password" class="col-md-4 col-form-label text-md-right">{{ __('Heslo') }}</label>

                            <div class="col-md-6">
                                <input id="password" type="password" class="form-control @error('password') is-invalid @enderror" name="password" required autocomplete="current-password">

                                @error('password')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>
                        </div>

                        <div class="form-group row mb-0">
                            <div class="col-md-8 offset-md-4">
                                <button type="submit" class="btn btn-primary">
                                    {{ __('Přihlásit') }}
                                </button>
                            </div>
                        </div>
                        <a href="{{route('obnovitHeslo')}}">Obnovit heslo</a>
                    </form>
                </div>
            </div>
        </div>
    </div>
@endsection
