<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Admin Login — MegaBlog</title>
  <script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="min-h-screen bg-gray-950 flex items-center justify-center">
  <div class="w-full max-w-sm px-4">
    <div class="text-center mb-8">
      <h1 class="text-3xl font-bold text-white">Mega<span class="text-blue-500">Blog</span></h1>
      <p class="text-gray-500 text-sm mt-1">Admin Panel</p>
    </div>

    <div class="bg-gray-900 rounded-2xl border border-white/10 p-8">
      <?php if($errors->any()): ?>
        <div class="mb-4 px-4 py-3 bg-red-500/10 border border-red-500/30 text-red-400 rounded-lg text-sm">
          <?php echo e($errors->first()); ?>

        </div>
      <?php endif; ?>

      <form method="POST" action="/admin/login" class="space-y-5">
        <?php echo csrf_field(); ?>
        <div>
          <label class="block text-sm text-gray-400 mb-1.5">Email</label>
          <input type="email" name="email" value="<?php echo e(old('email')); ?>" required autofocus
            class="w-full bg-gray-800 border border-white/10 rounded-xl px-4 py-2.5 text-white text-sm focus:outline-none focus:border-blue-500 transition-colors">
        </div>
        <div>
          <label class="block text-sm text-gray-400 mb-1.5">Password</label>
          <input type="password" name="password" required
            class="w-full bg-gray-800 border border-white/10 rounded-xl px-4 py-2.5 text-white text-sm focus:outline-none focus:border-blue-500 transition-colors">
        </div>
        <div class="flex items-center gap-2">
          <input type="checkbox" name="remember" id="remember" class="rounded">
          <label for="remember" class="text-sm text-gray-400">Remember me</label>
        </div>
        <button type="submit"
          class="w-full bg-blue-600 hover:bg-blue-700 text-white font-semibold py-2.5 rounded-xl transition-colors text-sm">
          Sign In
        </button>
      </form>
    </div>

    <p class="text-center text-xs text-gray-600 mt-4">
      admin@megablog.com / password
    </p>
  </div>
</body>
</html>
<?php /**PATH /Applications/MAMP/htdocs/megablog/backend/resources/views/auth/login.blade.php ENDPATH**/ ?>