@php
  $configData = Helper::appClasses();
  $customizerHidden = 'customizer-hide';
  $configData = Helper::appClasses();
@endphp

@extends('layouts/blankLayout')

@section('title', 'Login | ' . config('app.name'))

@section('vendor-style')
  @vite(['resources/assets/vendor/libs/@form-validation/form-validation.scss'])
@endsection

@section('page-style')
  @vite(['resources/assets/vendor/scss/pages/page-auth.scss'])
@endsection

@section('vendor-script')
  @vite(['resources/assets/vendor/libs/@form-validation/popular.js', 'resources/assets/vendor/libs/@form-validation/bootstrap5.js', 'resources/assets/vendor/libs/@form-validation/auto-focus.js'])
@endsection

@section('page-script')
  @vite(['resources/assets/js/pages-auth.js'])
@endsection

@section('content')
  <div class="authentication-wrapper authentication-cover">
    <!-- Logo -->
    {{-- <a href="{{ url('/') }}" class="app-brand auth-cover-brand gap-2">
      <span class="app-brand-logo demo">@include('_partials.macros')</span>
    </a> --}}
    <!-- /Logo -->
    <div class="authentication-inner row m-0">
      <!-- /Left Text -->
      <div class="d-none d-lg-flex col-lg-7 col-xl-8 align-items-center p-5 " style="background-image: url('{{ asset('assets/img/cover_login.png') }}'); background-repeat: round; background-size: cover; background-position: center;">
        <!-- <div class="w-100 d-flex justify-content-center">
          <img src="{{ asset('assets/img/cover_login.png') }}"
            class="img-fluid" alt="Login image" width="700" data-app-dark-img="cover_login.png"
            data-app-light-img="cover_login.png">
        </div> -->
      </div>
      <!-- /Left Text -->

      <!-- Login -->
      <div class="d-flex col-12 col-lg-5 col-xl-4 align-items-center authentication-bg p-sm-12 p-6">
        <div class="w-px-400 mx-auto mt-sm-12 mt-8">
          <!-- <h4 class="mb-1">Benvenuto su {{ config('app.name') }}! 👋</h4> -->
          <h4 class="mb-1">Benvenuto su <img src="{{ asset('assets/img/logo_fest_L.png') }}" class="img-fluid" alt="Login image" width="200"></h4>
          <p class="mb-6">Per accedere al tuo account, inserisci il tuo indirizzo email e la password</p>

          <form id="formAuthentication" class="mb-6" action="{{ route('login') }}" method="POST">
            @csrf
            <div class="mb-6 form-control-validation">
              <label for="email" class="form-label">Email</label>
              <input type="text" class="form-control" id="email" name="email"
                placeholder="Inserisci il tuo indirizzo email" autofocus />
            </div>
            <div class="form-password-toggle form-control-validation">
              <label class="form-label" for="password">Password</label>
              <div class="input-group input-group-merge">
                <input type="password" id="password" class="form-control" name="password"
                  placeholder="&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;"
                  aria-describedby="password" />
                <span class="input-group-text cursor-pointer"><i class="icon-base bx bx-hide"></i></span>
              </div>
            </div>
            <div class="my-7">
              <div class="d-flex justify-content-between">
                <div class="form-check mb-0">
                  <input class="form-check-input" type="checkbox" id="remember-me" />
                  <label class="form-check-label" for="remember-me">Ricordami</label>
                </div>
                <a href="{{ url('auth/forgot-password-cover') }}">
                  <p class="mb-0">Password dimenticata?</p>
                </a>
              </div>
            </div>
            <button class="btn btn-primary d-grid w-100">Accedi</button>
          </form>

          @if (\Laravel\Fortify\Features::enabled(\Laravel\Fortify\Features::registration()))
          <p class="text-center">
            <span>Nuovo utente?</span>
            <a href="{{ url('auth/register-cover') }}">
              <span>Crea un account</span>
            </a>
          </p>
          @endif


        </div>
      </div>
      <!-- /Login -->
    </div>
  </div>
@endsection
