<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  <title>Register Page</title>

  <!-- Bootstrap CSS -->
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">

  <!-- Custom CSS -->
  <style>
    body {
      background-color: #f5f5f9;
    }

    .hero-image {
      background-color: rgb(191, 203, 248);
    }

    .container {
      max-width: 800px;
    }
  </style>
</head>
<body>

<div class="container my-5">
  <div class="row bg-white rounded shadow overflow-hidden">
    
    <!-- Image Side -->
    <div class="col-md-5 d-none d-md-flex align-items-center justify-content-center hero-image">
      <img src="frontend/assets/img/features.png" class="img-fluid" alt="Register Image">
    </div>

    <!-- Form Side -->
    <div class="col-md-7 p-4">
      <div class="card-body">
        <h3 class="fw-bolder">Buat Akunmu</h3><br>

        <form method="POST" action="#">
          <div class="mb-3">
            <label for="nama_lengkap" class="form-label">Nama Lengkap</label>
            <input id="nama_lengkap" type="text" class="form-control" name="nama_lengkap" required>
          </div>

          <div class="mb-3">
            <label for="nim" class="form-label">NIM</label>
            <input id="nim" type="text" placeholder="E4xxxxx" class="form-control" name="nim" required>
          </div>

          <div class="mb-3">
            <label for="email" class="form-label">E-Mail</label>
            <input id="email" type="email" placeholder="xxxx@polije.ac.id" class="form-control" name="email" required>
          </div>

          <div class="mb-3">
            <label for="password" class="form-label">Password</label>
            <input id="password" type="password" class="form-control" name="password" required>
          </div>

          <div class="mb-3">
            <label for="password-confirm" class="form-label">Konfirmasi Password</label>
            <input id="password-confirm" type="password" class="form-control" name="password_confirmation" required>
          </div>

          <div class="text-center">
            <a href="{{ route('login') }}" class="btn btn-primary d-flex align-items-center justify-content-center w-100" style="background-color: blue;">
                <span>Buat Akun</span>
            </a>
          </div>
          <div style="margin: 20px 0;"></div> 
          <div class="text-center">
            Sudah mempunyai akun? <a href="{{ route('login') }}">Masuk</a>
          </div>
        </form>
      </div>
    </div>
  </div>
</div>

<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>
