<section class="auth-wrap">
  <div class="auth-card">
    <h2 class="auth-title" style="color:var(--text);">Log In To TSHEN</h2>
    <?php if (!empty($error)): ?><div class="notice" style="margin-bottom:10px;"><?= htmlspecialchars($error) ?></div><?php endif; ?>
    <?php if (!empty($success)): ?><div class="notice" style="margin-bottom:10px;"><?= htmlspecialchars($success) ?></div><?php endif; ?>
    <form method="post" action="<?= \Tshen\url('/login') ?>">
      <?= \Tshen\csrf_field() ?>
      <input class="auth-input" type="email" name="email" placeholder="Email or phone number" required />
      <input class="auth-input" type="password" name="password" placeholder="Password" required />
      <button class="cta-btn auth-btn" type="submit" style="width:100%; font-weight:600; border-radius:30px;">Log In</button>
    </form>
  
    <div class="auth-divider"></div>
    <a class="cta-btn" href="<?= \Tshen\url('/register') ?>" style="display:block; text-align:center; font-weight:600;">Create new account</a>
  </div>
</section>