

<?php $__env->startSection('content'); ?>
    <div class="auth-container">
        <div class="auth-wrapper">
            <div class="auth-header">
                <div class="auth-logo">
                    <?php if(optional($settings)->logo_white): ?>
                    <img src="<?php echo e(asset($settings->logo_white)); ?>" alt="<?php echo e(optional($settings)->website_name ?? 'Logo'); ?>">
                    <?php else: ?>
                    <span class="auth-logo-text"><?php echo e(optional($settings)->website_name ?? config('app.name')); ?></span>
                    <?php endif; ?>
                </div>
                <h2 class="title">Sign in to your account</h2>
                <p class="description">Increase your chances of landing that dream job.</p>
            </div>

            <form id="registerForm" class="auth-form" method="POST" action="<?php echo e(route('user.register.submit')); ?>">
                <?php echo csrf_field(); ?>
                <div class="form-group">
                    <input type="text" name="fname" id="fname" class="form-control" placeholder="First Name" value="<?php echo e(old('fname')); ?>" required>
                </div>
                <div class="form-group">
                    <input type="text" name="lname" id="lname" class="form-control" placeholder="Last Name" value="<?php echo e(old('lname')); ?>" required>
                </div>
                <div class="form-group">
                    <input type="email" name="email" id="email" class="form-control" placeholder="Email Address" value="<?php echo e(old('email')); ?>" required>
                </div>
                <div class="form-group">
                    <input type="password" name="password" id="password" class="form-control" placeholder="Password" required>
                </div>
                <div class="form-group">
                    <input type="password" name="password_confirmation" id="password_confirmation" class="form-control" placeholder="Confirm Password" required>
                </div>
                <?php if(optional($settings)->recaptcha == 1 && isset($captcha)): ?>
                <div class="form-group">
                    <label for="captcha" class="form-label">Captcha</label>
                    <div class="input-group" style="display: flex; align-items: center; gap: 8px;">
                        <input type="text" name="captcha" id="captcha" class="form-control" placeholder="Enter captcha" required autocomplete="off">
                        <span class="captcha-text" style="padding: 8px 12px; background: #eee; border-radius: 4px; font-weight: bold; letter-spacing: 2px;"><?php echo e($captcha); ?></span>
                        <button type="button" class="captcha-refresh btn btn-secondary" title="Refresh captcha"><i class="las la-sync-alt"></i></button>
                    </div>
                </div>
                <?php endif; ?>
                <div class="auth-terms">
                    <span>By continuing, I agree to our</span>
                    <a href="#" class="auth-terms-link">terms</a>,
                    and
                    <a href="#" class="auth-terms-link">privacy policy</a>.
                </div>
                <div class="form-group">
                    <button type="submit" class="auth-btn">Register</button>
                </div>
                <div class="auth-footer">
                    <p class="auth-footer-line">
                        Already have an account?
                        <a href="<?php echo e(route('user.login.page')); ?>" class="auth-footer-link">Login</a>
                    </p>
                </div>
            </form>
        </div>
    </div>
    <?php if(optional($settings)->recaptcha == 1 && isset($captcha)): ?>
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            var btn = document.querySelector('.captcha-refresh');
            if (btn) {
                btn.addEventListener('click', function() {
                    fetch('<?php echo e(route('user.refresh-captcha')); ?>', {
                        headers: { 'X-CSRF-TOKEN': document.querySelector('meta[name="csrf-token"]').content, 'Accept': 'application/json' }
                    }).then(function(r) { return r.json(); }).then(function(d) {
                        if (d.captcha) document.querySelector('.captcha-text').textContent = d.captcha;
                    });
                });
            }
        });
    </script>
    <?php endif; ?>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('frontend.layout.auth', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\Users\HP\Desktop\nbverify\mine\resources\views/frontend/auth/register.blade.php ENDPATH**/ ?>