<img class="cpt-logo" src="<?= e(asset('img/aosware-crm-logo.jpg')) ?>" alt="AOSWARE CRM">
<div class="cpt-auth-badge">Customer Portal</div>
<h1 class="cpt-auth-title">Sign in</h1>
<p class="cpt-sub">Use the email your company gave you.</p>
<?php if (!empty($error)): ?><div class="alert alert-danger py-2"><?= e($error) ?></div><?php endif; ?>
<form class="cpt-auth-form" method="post" action="<?= e(url('login')) ?>">
  <?= csrf_field() ?>
  <label class="form-label" for="email">Email</label>
  <div class="cpt-field">
    <i class="bi bi-envelope"></i>
    <input class="form-control" id="email" type="email" name="email" required placeholder="you@company.com" autocomplete="username">
  </div>
  <label class="form-label" for="password">Password</label>
  <div class="cpt-field">
    <i class="bi bi-lock"></i>
    <input class="form-control" id="password" type="password" name="password" required placeholder="••••••••" autocomplete="current-password">
  </div>
  <button class="btn btn-primary cpt-submit" type="submit">Sign in</button>
</form>
<p class="cpt-demo">Demo: mike@abcoffice.example / Welcome1!</p>
