@extends('layouts.app')

@section('content')
<div class="auth p-2">
    <div class="title-page mb-2">{{ __('Login') }}</div>
    <form method="POST" action="{{ route('login') }}">
        @csrf

        <label for="email" class="mb-1">{{ __('E-Mail') }}</label>
        <div class="mb-2">
            <input id="email" type="email" class="@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>

        <label for="password" class="mb-1">{{ __('Password') }}</label>
        <div class="mb-2">
            <input id="password" type="password" class="@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 class="mb-2">
            <input type="checkbox" name="remember" id="remember" {{ old('remember') ? 'checked' : '' }}>

            <label for="remember" class="inline">
                {{ __('Remember Me') }}
            </label>
        </div>

        <div class="flex-between">
            <button type="submit" class="btn-primary px-3">
                {{ __('Login') }}
            </button>
            @if (Route::has('password.request'))
                <a class="btn-secondary" href="{{ route('password.request') }}">
                    {{ __('Forgot Your Password?') }}
                </a>
            @endif
        </div>
    </form>

</div>
@endsection
