@extends('layouts.auth')
@section('styles')
@endsection
@section('app')
    <div class="container-fluid">
        <div class="row">
            <div class="col-xl-7 order-1">
                <img class="bg-img-cover bg-center" src="{{ asset('assets/images/login-cover.jpeg') }}" alt="looginpage">
            </div>
            <div class="col-xl-5 p-0">
                <div class="login-card login-dark">
                    <div>
                        <div>
                            <img class="img-fluid for-light" src="{{ asset('assets/images/logo/logo.png') }}"
                                alt="looginpage">
                            <img class="img-fluid for-dark" src="{{ asset('assets/images/logo/logo_dark.png') }}"
                                alt="looginpage">
                        </div>
                        <div class="login-main">
                            <form class="theme-form" action="{{ route('auth.login') }}" method="post">
                                @csrf
                                <h4>Masuk Akun</h4>
                                <p>Akses admin panel menggunakan <b>email</b> atau <b>nama pengguna</b> dan <b>kata
                                        sandi</b>.</p>
                                <div class="form-group">
                                    <label class="col-form-label">Email Atau Nama Pengguna</label>
                                    <input name="login" class="form-control @error('login') is-invalid @enderror"
                                        type="text" placeholder="Masukan email atau nama pengguna" autocomplete="off">
                                    @error('login')
                                        <div class="invalid-feedback">
                                            {{ $message }}
                                        </div>
                                    @enderror
                                </div>
                                <div class="form-group">
                                    <label class="col-form-label">Kata Sandi</label>
                                    <div class="form-input position-relative">
                                        <input name="password" class="form-control @error('password') is-invalid @enderror"
                                            type="password" placeholder="Masukan kata sandi" autocomplete="off"
                                            id="password">
                                        <div class="show-hide"><span class="show"> </span></div>
                                    </div>
                                    @error('password')
                                        <div class="invalid-feedback">
                                            {{ $message }}
                                        </div>
                                    @enderror
                                </div>
                                <div
                                    class="col-12 d-flex justify-content-center @error('g-recaptcha-response') is-invalid
                                    @enderror">
                                    <div> {!! htmlFormSnippet() !!} </div>
                                </div>
                                @error('g-recaptcha-response')
                                    <div class="invalid-feedback d-flex justify-content-center">
                                        {{ $message }}
                                    </div>
                                @enderror
                                <div class="form-group mb-0">
                                    <div class="text-end mt-3">
                                        <button class="btn btn-lg btn-primary btn-block w-100" type="submit">Masuk</button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
@section('scripts')
@endsection
