<x-guest-layout>
    <x-auth-card>
        <x-slot name="logo">
        <img src="{{ Helper::setting('logoUrl') }}" alt="app-logo"  class="h-20">
            <!-- <a href="/">
                <x-application-logo class="w-20 h-20 fill-current text-gray-500" />
            </a> -->
        </x-slot>

        <!-- Session Status -->
        <x-auth-session-status class="mb-4" :status="session('status')" />

        <!-- Validation Errors -->
        <x-auth-validation-errors class="mb-4" :errors="$errors" />

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

            <!-- Email Address -->
            <div>
            <x-label for="login" :value="__('Email') . ' / ' . __('Username') . ' / ' . __('Phone')" />
            @if(config('app.DEMO'))
            <label style="color:red">Demo login: admin or demo</label>
            @endif

            <x-input id="login" class="block mt-1 w-full" type="text" name="login" :value="old('login')" required autofocus />

            <!-- Password -->
            <div class="mt-4">
                <x-label for="password" :value="__('Password')" />
                @if(config('app.DEMO'))
                <label style="color:red">Demo password: password</label>
                @endif

                <x-input id="password" class="block mt-1 w-full"
                                type="password"
                                name="password"
                                required autocomplete="current-password" />
            </div>

            <!-- Remember Me -->
            <div class="block mt-4">
                <label for="remember_me" class="inline-flex items-center">
                    <input id="remember_me" type="checkbox" class="rounded border-gray-300 text-indigo-600 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50" name="remember">
                    <span class="ml-2 text-sm text-gray-600">{{ __('Remember me') }}</span>
                </label>
            </div>

            <div class="flex items-center justify-start mt-4">
                @if (Helper::setting('trialPeriod'))
                    <label style="color:orange">{{ __('New on our platform?') }}
                        <a class="underline text-sm text-gray-600 hover:text-gray-900" href="{{ route('register') }}">{{ __('Create an account') }}</a>
                    </label>
                @endif
            </div>

            <div class="flex items-center justify-end mt-4">
                @if (Route::has('password.request'))
                    <a class="underline text-sm text-gray-600 hover:text-gray-900" href="{{ route('password.request') }}">
                        {{ __('Forgot your password?') }}
                    </a>
                @endif

                <x-button class="ml-3">
                    {{ __('Log in') }}
                </x-button>
            </div>
        </form>
    </x-auth-card>
</x-guest-layout>
