@extends('layouts.app')

@section('content')
<div class="container">

    <div class="card">

        <form method="POST" action="{{ route('login') }}">
            @csrf

            <h2> Вход в аккаунт </h2>

            <div class="form-group row">

                <p><b>Электронная почта</b></p>
                <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 class="form-group row">

                <p><b>Пароль</b></p>
                <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 class="form-group row mb-0">
                <button type="submit" class="btn btn-primary">
                    Войти
                </button>
            </div>
        </form>
    </div>

</div>
@endsection
