@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");

body {
  font-family: "Poppins", sans-serif;
  background-color: #1a1a1a; /* Dark background */
  color: #f0f0f0; /* Light text */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
}

.form-container {
  background-color: #2c2c2c; /* Slightly lighter dark background for the form */
  padding: 30px 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: 450px;
  box-sizing: border-box;
}

h1 {
  text-align: center;
  color: #ffffff;
  margin-bottom: 10px;
  font-size: 1.8em;
  font-weight: 700;
}

h1 .vip {
  background-color: #e74c3c; /* Red background for VIP */
  color: #fff;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 0.6em; /* Smaller font size for VIP */
  vertical-align: middle;
  margin-left: 5px;
}

h2 {
  color: #e0e0e0;
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.1em;
  border-bottom: 1px solid #444;
  padding-bottom: 5px;
}

.input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-group i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 12px 15px 12px 45px; /* Adjust padding for icon */
  border: 1px solid #555;
  border-radius: 5px;
  background-color: #333;
  color: #f0f0f0;
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

/* Specific padding for inputs without icons */
.input-group input[placeholder="Masukkan Nama Rekening"],
.input-group input[placeholder="Nomor Rekening / Handphone Rekening"] {
  padding-left: 15px;
}

.input-group select {
  padding-left: 15px; /* No icon for select */
  appearance: none; /* Remove default arrow */
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23888888%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 0.65em auto;
}

.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: #e74c3c;
}

.input-group input::placeholder,
.input-group select {
  color: #888;
}

.input-group select option {
  background-color: #333;
  color: #f0f0f0;
}

.input-group .toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #888;
  left: auto; /* Override the general icon style */
}

.input-group input[readonly] {
  background-color: #444;
  cursor: not-allowed;
}

.btn-daftar {
  width: 100%;
  padding: 15px;
  background-color: #c0392b; /* Darker red */
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 10px;
}

.btn-daftar:hover {
  background-color: #e74c3c; /* Brighter red on hover */
  transform: translateY(-2px);
}

.btn-daftar:active {
  background-color: #a5281b; /* Even darker red on click */
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 600px) {
  .form-container {
    padding: 20px;
  }

  h1 {
    font-size: 1.5em;
  }

  h1 .vip {
    font-size: 0.5em;
  }

  .input-group input,
  .input-group select,
  .btn-daftar {
    font-size: 0.9em;
  }

  .btn-daftar {
    padding: 12px;
  }
}
