<?php $__env->startSection('content'); ?>
  
  
   <div class="app-container auth-container">
    <div class="auth-logo">
        <h1><?php echo e($siteName); ?></h1>
    </div>

    <form class="auth-form login-form" method="POST" action="<?php echo e(route('login')); ?>">
                        <?php echo csrf_field(); ?>
        <div class="auth-header">
        <h2>Welcome Back</h2>
        <p>Fill the form to log in</p>
        </div>
        
        <div class="input-group">
            <label>Email Address</label>
            <input type="text" class="<?php $__errorArgs = ['email'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" name="email" value="<?php echo e(old('email')); ?>"  id="email1" placeholder="Enter Email Address" required>
             <?php $__errorArgs = ['email'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                    <span class="invalid-feedback" role="alert">
                                        <strong><?php echo e($message); ?></strong>
                                    </span>
                                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
        </div>
        <div class="input-group">
            <label>Password</label>
            <input type="password" class=" <?php $__errorArgs = ['password'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" name="password" placeholder="Enter password" required>
            <a href="<?php echo e(route('password.request')); ?>" class="forgot-password">Forgot Password?</a>
        </div>
        
       <?php if($settings->captcha_mode): ?>
    <div class="input-group">
        <!-- Google reCAPTCHA -->
        <div class="g-recaptcha" data-sitekey="<?php echo e($settings->google_site_key); ?>" data-callback="enableSubmit"></div>
    </div>

    <button type="submit" class="btn-auth" id="submitBtn" disabled>Login</button>

<?php else: ?>
    <button type="submit" class="btn-auth">Login</button>
<?php endif; ?>

<script>
    function enableSubmit() {
        document.getElementById('submitBtn').removeAttribute('disabled');
    }
</script>

        <div class="auth-divider">
            <span>or</span>
        </div>

        <div class="social-login">
            <button type="button" class="btn-google disabled" href="javascript:void(0)"  onclick="showlogAlert()">
                <i class="fab fa-google"></i> Continue with Google
            </button>
            <button type="button" class="btn-apple disabled" href="javascript:void(0)"  onclick="showlogAlert()">
                <i class="fab fa-apple"></i> Continue with Apple
            </button>
        </div>

        <div class="auth-footer">
            <p>Don't have an account? 
                <a href="<?php echo e(route('register')); ?>">Sign Up</a>
            </p>
        </div>
    </form>

<?php $__env->stopSection(); ?>
 
<?php echo $__env->make('layouts.auth', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/qfsworl3/public_html/resources/views/auth/login.blade.php ENDPATH**/ ?>