<!DOCTYPE html>
<html lang="ar" dir="rtl">
<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>تسجيل الدخول - بوابة التحقق الأمني</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.rtl.min.css" rel="stylesheet" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" />
    <style>
        :root {
            --primary-color: #2c3e50;
            --secondary-color: #3498db;
            --accent-color: #e74c3c;
            --light-color: #ecf0f1;
            --dark-color: #2c3e50;
        }

        body {
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            min-height: 100vh;
            font-family: 'Tajawal', sans-serif;
            display: flex;
            align-items: center;
        }

        .login-container {
            max-width: 400px;
            width: 100%;
            margin: 0 auto;
        }

        .card {
            border: none;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            transition: all 0.3s ease;
            background: rgba(255, 255, 255, 0.95);
        }

        .card-header {
            background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
            color: white;
            padding: 20px;
            border-bottom: none;
            text-align: center;
        }

        .card-title {
            font-weight: 700;
            margin-bottom: 0;
        }

        .card-body {
            padding: 30px;
        }

        .form-control {
            border-radius: 50px;
            padding: 12px 20px;
            border: 2px solid #ddd;
            transition: all 0.3s;
        }

        .form-control:focus {
            border-color: var(--secondary-color);
            box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
        }

        .btn-primary {
            background-color: var(--secondary-color);
            border-color: var(--secondary-color);
            padding: 10px 25px;
            border-radius: 50px;
            font-weight: 600;
            transition: all 0.3s;
            width: 100%;
        }

        .btn-primary:hover {
            background-color: var(--primary-color);
            border-color: var(--primary-color);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .input-group-text {
            background-color: var(--secondary-color);
            color: white;
            border: none;
            border-radius: 50px 0 0 50px !important;
        }

        .security-badge {
            position: absolute;
            top: 10px;
            left: 10px;
            background: var(--accent-color);
            color: white;
            padding: 5px 10px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: bold;
            z-index: 10;
        }

        .login-icon {
            font-size: 48px;
            color: var(--secondary-color);
            margin-bottom: 15px;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.1);
            }
            100% {
                transform: scale(1);
            }
        }

        .alert {
            border-radius: 10px;
        }

        .forgot-password {
            text-align: center;
            margin-top: 15px;
        }

        .forgot-password a {
            color: var(--secondary-color);
            text-decoration: none;
        }

        .forgot-password a:hover {
            text-decoration: underline;
        }
    </style>
</head>
<body>
<div class="container">
    <div class="login-container">
        <div class="card animate__animated animate__fadeIn">
            <div class="card-header">
                <h3 class="card-title" style="padding-left:40px">
                    <i class="fas fa-lock me-2"></i> تسجيل الدخول
                </h3>
            </div>
            <div class="card-body">
                <div class="security-badge animate__animated animate__pulse animate__infinite">
                    <i class="fas fa-shield-alt me-1"></i> آمن
                </div>

                <div class="text-center mb-4">
                    <div class="login-icon">
                        <i class="fas fa-user-shield"></i>
                    </div>
                

                    <h4>مرحباً بعودتك</h4>
                    <p class="text-muted">يُرجى إدخال بيانات الاعتماد الخاصة بك للمتابعة</p>
                </div>

                <?php if(session('error')): ?>
                    <div class="alert alert-danger animate__animated animate__shakeX">
                        <i class="fas fa-exclamation-circle me-2"></i> <?php echo e(session('error')); ?>

                    </div>
                <?php endif; ?>

                <form method="POST" action="<?php echo e(route('form_login')); ?>">
                    <?php echo csrf_field(); ?>
                    <div class="form-group mb-3">
                        <label for="username" class="form-label">البريد الالكتروني </label>
                        <div class="input-group">
                            <span class="input-group-text">
                                <i class="fas fa-user"></i>
                            </span>
                            <input type="text" name="username" id="username"
                                   class="form-control" required autofocus
                                   placeholder="ادخل البريد الالكتروني  ">
                        </div>
                    </div>

                    <div class="form-group mb-3">
                        <label for="password" class="form-label">كلمة المرور</label>
                        <div class="input-group">
                            <span class="input-group-text">
                                <i class="fas fa-key"></i>
                            </span>
                            <input type="password" name="password" id="password"
                                   class="form-control" required
                                   placeholder="أدخل كلمة المرور">
                        </div>
                    </div>

                    <!--<div class="form-group mb-3 form-check">-->
                    <!--    <input type="checkbox" class="form-check-input" id="remember" name="remember">-->
                    <!--    <label class="form-check-label" for="remember">تذكرني</label>-->
                    <!--</div>-->

                    <button type="submit" class="btn btn-primary mt-3">
                        <i class="fas fa-sign-in-alt me-2"></i> تسجيل الدخول
                    </button>

                    <!--<div class="forgot-password">-->
                    <!--    <a href="#"><i class="fas fa-question-circle me-1"></i> نسيت كلمة المرور؟</a>-->
                    <!--</div>-->
                </form>
            </div>
        </div>
    </div>
</div>

<!-- Font Awesome for icons -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/js/all.min.js"></script>

<script>
    document.addEventListener('DOMContentLoaded', function () {
        // إضافة تأثير عند التركيز على حقول الإدخال
        const inputs = document.querySelectorAll('.form-control');
        inputs.forEach(input => {
            input.addEventListener('focus', function() {
                this.parentElement.querySelector('.input-group-text').style.backgroundColor = 'var(--primary-color)';
            });
            
            input.addEventListener('blur', function() {
                this.parentElement.querySelector('.input-group-text').style.backgroundColor = 'var(--secondary-color)';
            });
        });
    });
</script>
</body>
</html><?php /**PATH /home/almaugqb/permits.bariqgreenline.com/resources/views/first.blade.php ENDPATH**/ ?>