<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Super Admin — Munshiji Clinics</title>
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
  <style>body{background:#0f172a;min-height:100vh;display:flex;align-items:center;justify-content:center}</style>
</head>
<body>
  <div class="card shadow" style="width:380px">
    <div class="card-body p-4">
      <h4 class="text-center mb-1">Munshiji Super Admin</h4>
      <p class="text-muted text-center mb-4">Clinics ka central dashboard</p>

      <?php if (!empty($error)): ?>
        <div class="alert alert-danger py-2"><?= htmlspecialchars($error) ?></div>
      <?php endif; ?>

      <form method="post" action="<?= base_url('saas/login') ?>">
        <div class="mb-3">
          <label class="form-label small">Username / Email</label>
          <input type="text" name="username" class="form-control" required autofocus>
        </div>
        <div class="mb-3">
          <label class="form-label small">Password</label>
          <input type="password" name="password" class="form-control" required>
        </div>
        <button type="submit" class="btn btn-primary w-100">Login</button>
      </form>

      <div class="text-muted mt-3" style="font-size:12px">
        Clinic admins: <code>clinic.munshiji.pk/ammarah/admin</code>
      </div>
    </div>
  </div>
</body>
</html>