body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f0f2f5;
}

/* FULL HEIGHT FLEX */
.register-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

/* BOX */
.register-box {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  width: 100%;
  max-width: 400px; /* penting */
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* TITLE */
.register-box h2 {
  text-align: center;
  margin-bottom: 20px;
}

/* LABEL */
.register-box label {
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 4px;
  display: block;
}

/* INPUT */
.register-box input {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
}
input:focus {
  outline: none;
  border-color: #25d366;
  box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.2);
}
/* BUTTON */
.register-box button {
  width: 100%;
  padding: 12px;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.register-box button:disabled {
  background: #ccc;
}

/* MESSAGE */
.msg {
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
}

/* LOGIN LINK */
.login-link {
  margin-top: 15px;
  text-align: center;
  font-size: 14px;
}

/* PASSWORD STRENGTH */
.strength-bar {
  height: 6px;
  background: #eee;
  border-radius: 4px;
  margin-bottom: 6px;
  overflow: hidden;
}

#strengthFill {
  height: 100%;
  width: 0%;
  transition: 0.3s;
}

.strength-text {
  font-size: 12px;
  margin-bottom: 10px;
}

.input-error {
  border: 1px solid red !important;
  background: #ffecec;
}

/* MOBILE FIX */
@media (max-width: 768px) {
  /* 1. Reset margin dan padding default browser */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
  }

  /* 2. Buat container utama memenuhi layar */
  .register-container {
    width: 100%;
    min-height: 100dvh; /* Menggunakan dvh agar pas di layar HP */
    display: flex;
    justify-content: center; /* Pusatkan secara horizontal */
    align-items: center; /* Pusatkan secara vertikal */
    background-color: #f4f4f4;
    padding: 20px; /* Jarak agar kotak tidak menempel ke pinggir HP */
  }

  /* 3. Desain kotak registrasi agar fleksibel */
  .register-box {
    width: 100%;
    max-width: 400px; /* Batas lebar maksimal di PC */
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  /* 4. Percantik elemen form agar mudah di-tap di HP */
  .register-box h2 {
    text-align: center;
    margin-bottom: 20px;
  }

  .register-box label {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
  }

  .register-box input {
    width: 100%;
    padding: 12px; /* Padding lebih besar agar mudah diketik di HP */
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px; /* Ukuran font minimal 16px agar browser HP tidak auto-zoom */
  }

  .register-box button {
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
  }

  .register-box .login-link {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
  }

  /* .register-container {
    align-items: flex-start; 
    padding-top: 30px;
    width: 90%;
    height: 90%;
  }

  .register-box {
    border-radius: 10px;
    padding: 18px;
  } */
}
