<?php if (isset($component)) { $__componentOriginal6107cafe1a6b2bb3ae2fbdc60a313162 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal6107cafe1a6b2bb3ae2fbdc60a313162 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.layouts.auth','data' => ['title' => 'Sign In — LiteraHub']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('layouts.auth'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['title' => 'Sign In — LiteraHub']); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>


    <div class="auth-shell">

        <div class="auth-intro">

            <span class="eyebrow">
                Welcome Back
            </span>

            <h1>
                Sign in to LiteraHub
            </h1>

            <p>
                Access your library, institution,
                classes and learning resources.
            </p>

        </div>


        <div class="card auth-card">

            
            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(session('status')): ?>

                <div
                    class="alert alert-success"
                    data-auto-dismiss="5000"
                >
                    <?php echo e(session('status')); ?>

                </div>

            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>


            
            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($errors->any()): ?>

                <div class="alert alert-error">

                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($errors->has('email')): ?>

                        <?php echo e($errors->first('email')); ?>


                    <?php elseif($errors->has('password')): ?>

                        <?php echo e($errors->first('password')); ?>


                    <?php else: ?>

                        Please review the information entered
                        and try again.

                    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

                </div>

            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>


            <form
                method="POST"
                action="<?php echo e(route('login')); ?>"
            >

                <?php echo csrf_field(); ?>


                
                <div class="form-group">

                    <label for="email">
                        Email Address
                    </label>

                    <input
                        id="email"
                        type="email"
                        name="email"
                        value="<?php echo e(old('email')); ?>"
                        placeholder="name@example.com"
                        autocomplete="email"
                        autofocus
                        required
                    >

                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__errorArgs = ['email'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>

                        <div class="field-error">
                            <?php echo e($message); ?>

                        </div>

                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

                </div>


                
                <div class="form-group">

                    <div class="row-between">

                        <label for="password">
                            Password
                        </label>

                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(Route::has('password.request')): ?>

                            <a
                                href="<?php echo e(route('password.request')); ?>"
                                class="link-muted"
                            >
                                Forgot password?
                            </a>

                        <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

                    </div>

                    <div class="password-field">

                        <input
                            id="password"
                            type="password"
                            name="password"
                            placeholder="Enter your password"
                            autocomplete="current-password"
                            required
                        >

                        <button
                            type="button"
                            class="password-toggle"
                            aria-label="Show password"
                            aria-controls="password"
                            data-password-toggle
                        >
                            Show
                        </button>

                    </div>

                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__errorArgs = ['password'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>

                        <div class="field-error">
                            <?php echo e($message); ?>

                        </div>

                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

                </div>


                
                <label class="checkbox-row">

                    <input
                        type="checkbox"
                        name="remember"
                        value="1"
                        <?php if(old('remember')): echo 'checked'; endif; ?>
                    >

                    <span>
                        Keep me signed in
                    </span>

                </label>


                
                <div class="actions">

                    <button
                        type="submit"
                        class="button button-block"
                    >
                        Sign In
                    </button>

                </div>

            </form>


            
            <div class="auth-divider">

                <span>
                    New to LiteraHub?
                </span>

            </div>

            <a
                href="<?php echo e(route('register')); ?>"
                class="button button-secondary button-block"
            >
                Create Account
            </a>


            
            <div class="auth-options">

                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(Route::has('register.school')): ?>

                    <a
                        href="<?php echo e(route('register.school')); ?>"
                        class="link-muted"
                    >
                        Register a School
                    </a>

                <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(Route::has('register.student')): ?>

                    <a
                        href="<?php echo e(route('register.student')); ?>"
                        class="link-muted"
                    >
                        Individual Learner
                    </a>

                <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

            </div>

        </div>


        <div class="auth-footer">

            <p>
                By signing in, you agree to LiteraHub's
                platform policies and acceptable use terms.
            </p>

        </div>

    </div>


    <script>
        document.addEventListener('DOMContentLoaded', () => {

            const toggle =
                document.querySelector(
                    '[data-password-toggle]'
                );

            const password =
                document.getElementById('password');

            if (!toggle || !password) {
                return;
            }

            toggle.addEventListener('click', () => {

                const hidden =
                    password.type === 'password';

                password.type =
                    hidden
                        ? 'text'
                        : 'password';

                toggle.textContent =
                    hidden
                        ? 'Hide'
                        : 'Show';

                toggle.setAttribute(
                    'aria-label',
                    hidden
                        ? 'Hide password'
                        : 'Show password'
                );

            });

        });
    </script>

 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal6107cafe1a6b2bb3ae2fbdc60a313162)): ?>
<?php $attributes = $__attributesOriginal6107cafe1a6b2bb3ae2fbdc60a313162; ?>
<?php unset($__attributesOriginal6107cafe1a6b2bb3ae2fbdc60a313162); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal6107cafe1a6b2bb3ae2fbdc60a313162)): ?>
<?php $component = $__componentOriginal6107cafe1a6b2bb3ae2fbdc60a313162; ?>
<?php unset($__componentOriginal6107cafe1a6b2bb3ae2fbdc60a313162); ?>
<?php endif; ?><?php /**PATH C:\Users\Surface pro 4\OneDrive\Desktop\DevOps\literture\literahub\resources\views/auth/login.blade.php ENDPATH**/ ?>