@extends('layouts.layoutapp')

@section('content')
<?php auth()->logout(); ?>
<section>
    <div class="page-header section-height-75">
        <div class="container">
            <div class="row">
                <div class="col-xl-4 col-lg-5 col-md-6 d-flex flex-column mx-auto">
                    <div class="card card-plain mt-8">
                        <div class="card-header pb-0 text-left bg-transparent">
                            <h3 class="font-weight-bolder text-info text-gradient">{{ __('Welcome back') }}</h3>
                            <p class="mb-0">Please enter email and password to sign in.</p>
                        </div>
                        <div class="card-body">
                            <form method="POST" action="{{ route('login') }}" role="form text-left">
                                @csrf
                                <div class="mb-3">
                                    <label for="email">{{ __('Email') }}</label>
                                    <div class="@error('email')border border-danger rounded-3 @enderror">
                                        <input id="email" type="email" name="email" class="form-control"
                                            placeholder="Email" aria-label="Email" 
                                            aria-describedby="email-addon" value="{{ old('email') }}">
                                    </div>
                                    @error('email')
                                        <div class="text-danger">{{ $message }}</div>
                                    @enderror
                                </div>
                                <div class="mb-3">
                                    <label for="password">{{ __('Password') }}</label>
                                    <div class="@error('password')border border-danger rounded-3 @enderror">
                                        <input id="password" type="password" name="password"
                                            class="form-control" placeholder="Password" 
                                            aria-label="Password" aria-describedby="password-addon">
                                    </div>
                                    @error('password')
                                        <div class="text-danger">{{ $message }}</div>
                                    @enderror
                                </div>
                                <div class="form-check form-switch">
                                    <input name="remember" class="form-check-input" type="checkbox"
                                        id="rememberMe" {{ old('remember') ? 'checked' : '' }}>
                                    <label class="form-check-label" for="rememberMe">{{ __('Remember me') }}</label>
                                </div>
                                <div class="text-center">
                                    <button type="submit"
                                        class="btn bg-gradient-info w-100 mt-4 mb-0">{{ __('Sign in') }}</button>
                                </div>
                                {{-- <div class="text-center mt-3">
                                        <a href="{{route('registration-form')}}">Register Now</a>
                                    </div> --}}
                            </form>
                        </div>
                       
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="oblique position-absolute top-0 h-100 d-md-block d-none me-n8">
                        <div class="oblique-image bg-cover position-absolute fixed-top ms-auto h-100 z-index-0 ms-n6"
                            style="background-image:url('{{ getFileUrl($company->logo) }}')"></div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
@endsection