<div class="auth-card">
  <img src="<?= asset('img/erpcombd-logo.png') ?>" alt="ERP.COM.BD" class="brand-logo-img">
  <h1>Customer portal</h1>
  <div class="sub">Raise, track and reply to your support tickets</div>

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

  <form method="post" action="<?= url('/portal/login') ?>">
    <?= csrf_field() ?>
    <div class="form-group">
      <label>Email</label>
      <input type="email" name="email" required autofocus value="nasrin@meghnatextiles.example">
    </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 portal login (password <strong>Passw0rd!</strong>): nasrin@meghnatextiles.example (primary contact, Platinum AMC).
  </div>
  <div class="auth-footer">Support agent? <a href="<?= url('/login') ?>">Go to the agent console →</a></div>
</div>
