<?php $this->load->view('templates/auth_header'); ?>

<div class="auth-form-light text-left p-5">

  <!-- Logo -->
  <div class="brand-logo text-center mb-4">
    <img src="<?= base_url('assets/sb-admin2/img/hsilogo.png'); ?>" alt="HSI Logo" style="width:120px;">
  </div>

  <!-- Judul -->
  <h3 class="text-center mb-3">Reset Password</h3>
  <h6 class="font-weight-light text-center">Masukkan password baru Anda</h6>

  <!-- Flash Messages -->
  <?php if ($this->session->flashdata('error')): ?>
    <div class="alert alert-danger mt-3">
      <?= $this->session->flashdata('error'); ?>
    </div>
  <?php endif; ?>

  <?php if ($this->session->flashdata('success')): ?>
    <div class="alert alert-success mt-3">
      <?= $this->session->flashdata('success'); ?>
    </div>
  <?php endif; ?>

  <!-- Form Reset Password -->
  <form class="pt-3" method="post" action="<?= base_url('reset_password'); ?>">
    <div class="form-group">
      <input type="password" name="password" class="form-control form-control-lg" placeholder="Password Baru" required>
    </div>

    <div class="form-group">
      <input type="password" name="confirm_password" class="form-control form-control-lg" placeholder="Konfirmasi Password Baru" required>
    </div>

    <div class="mt-3">
      <button type="submit" class="btn btn-block btn-success btn-lg font-weight-medium auth-form-btn">
        Reset Password
      </button>
    </div>

    <div class="text-center mt-4 font-weight-light">
      <a href="<?= base_url('login'); ?>" class="text-primary">Kembali ke Login</a>
    </div>
  </form>
</div>

<?php $this->load->view('templates/auth_footer'); ?>
