<?php $__env->startSection('title', 'Military Portal Access'); ?>

<?php $__env->startSection('content'); ?>
<div class="min-h-screen bg-gradient-to-br from-gray-50 to-gray-100 flex items-center justify-center">
    <div class="max-w-md w-full mx-4">
        <!-- Portal Access Card -->
        <div class="bg-white rounded-lg shadow-2xl overflow-hidden">
            <!-- Header -->
            <div class="bg-gradient-to-r from-military-dark to-military-green text-white p-6 text-center">
                <div class="w-20 h-20 bg-yellow-400 rounded-full flex items-center justify-center mx-auto mb-4">
                    <i class="fas fa-shield-alt text-3xl text-military-dark"></i>
                </div>
                <h1 class="text-2xl font-bold mb-2">Military Portal Access</h1>
                <p class="text-gray-300">Enter your Service Number to access your portal</p>
            </div>

            <!-- Login Form -->
            <div class="p-6">
                <?php if(session('error')): ?>
                    <div class="bg-red-100 border border-red-400 text-red-700 px-4 py-3 rounded mb-4">
                        <i class="fas fa-exclamation-triangle mr-2"></i>
                        <?php echo e(session('error')); ?>

                    </div>
                <?php endif; ?>

                <?php if(session('success')): ?>
                    <div class="bg-green-100 border border-green-400 text-green-700 px-4 py-3 rounded mb-4">
                        <i class="fas fa-check-circle mr-2"></i>
                        <?php echo e(session('success')); ?>

                    </div>
                <?php endif; ?>

                <form method="POST" action="<?php echo e(route('portal.authenticate')); ?>" class="space-y-6">
                    <?php echo csrf_field(); ?>

                    <div>
                        <label for="service_number" class="block text-sm font-medium text-gray-700 mb-2">
                            <i class="fas fa-id-card mr-2 text-military-green"></i>
                            Service Number
                        </label>
                        <input type="text"
                               id="service_number"
                               name="service_number"
                               placeholder="Enter your service number (e.g., MIL-2024-001)"
                               required
                               class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-military-green focus:border-transparent transition-all duration-200 text-center text-lg font-mono tracking-wider"
                               value="<?php echo e(old('service_number')); ?>"
                               autocomplete="off">
                        <?php $__errorArgs = ['service_number'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <p class="mt-1 text-sm text-red-600"><?php echo e($message); ?></p>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>

                    <button type="submit"
                            class="w-full bg-gradient-to-r from-military-green to-military-dark text-white py-3 px-4 rounded-lg font-bold text-lg hover:from-military-dark hover:to-military-green transition-all duration-300 shadow-lg hover:shadow-xl transform hover:-translate-y-1">
                        <i class="fas fa-sign-in-alt mr-2"></i>
                        Access Portal
                    </button>
                </form>

                <!-- Security Notice -->
                <div class="mt-6 p-4 bg-gray-50 rounded-lg border border-gray-200">
                    <h3 class="font-bold text-gray-800 mb-2 flex items-center">
                        <i class="fas fa-shield-alt mr-2 text-military-green"></i>
                        Security Notice
                    </h3>
                    <ul class="text-sm text-gray-600 space-y-1">
                        <li>• This is a secure military system</li>
                        <li>• Authorized personnel only</li>
                        <li>• All access is logged and monitored</li>
                        <li>• Report any suspicious activity</li>
                    </ul>
                </div>

                <!-- Help Section -->
                <div class="mt-4 text-center">
                    <p class="text-sm text-gray-600">
                        Need help accessing your portal?
                        <a href="#" class="text-military-green hover:text-military-dark font-medium">
                            Contact Support
                        </a>
                    </p>
                </div>
            </div>
        </div>

        <!-- Example Service Numbers (for demo purposes - remove in production) -->
        
    </div>
</div>
<?php $__env->stopSection(); ?>

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