<div class="auth-card">
  <img src="<?= asset('img/erpcombd-logo.png') ?>" alt="ERP.COM.BD" class="brand-logo-img">
  <h1>Support Desk sign in</h1>
  <div class="sub">Internal agent &amp; admin console</div>

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

  <form method="post" action="<?= url('/login') ?>">
    <?= csrf_field() ?>
    <input type="hidden" name="next" value="<?= e($next) ?>">
    <div class="form-group">
      <label>Email</label>
      <input type="email" name="email" required autofocus value="admin@erp.com.bd">
    </div>
    <div class="form-group">
      <label>Password</label>
      <input type="password" name="password" required value="Passw0rd!">
    </div>
    <button type="submit" class="btn btn-primary btn-block">Sign in</button>
  </form>

  <div class="demo-creds">
    Demo logins (password <strong>Passw0rd!</strong> for all): admin@erp.com.bd (Admin), n.jahan@erp.com.bd (Head of CS),
    a.hoque@erp.com.bd (Team Lead), r.karim@erp.com.bd (L2), s.nahar@erp.com.bd / t.islam@erp.com.bd (L1).
  </div>
  <div class="auth-footer">Are you a customer? <a href="<?= url('/portal/login') ?>">Go to the customer portal →</a></div>
</div>
