/* Reset dasar */
html {
  box-sizing: border-box;
  overflow-x: hidden;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body, h1, h2, h3, p, ul {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  color: #124D95;
}
body {
  background: #E9F5FF;
  padding: 16px;
  font-size: 16px;
}

/* Header & teks */
h2 {
  font-size: 22px;
  margin-bottom: 16px;
  text-align: center;
}
p {
  margin-bottom: 8px;
  text-align: center;
}

/* Container form */
.form-container {
  max-width: 320px;
  margin: 0 auto;
  animation: fadeIn 0.4s ease-out;
}

/* Form dengan efek 3D */
form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  padding: 24px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Floating label group */
.form-group {
  position: relative;
  width: 100%;
}
.form-group input[type="text"],
.form-group input[type="tel"],
.form-container .form-group input[type="password"] {
  width: 100%;
  padding: 12px 10px;
  font-size: 16px;
  border: 1px solid #124D95;
  border-radius: 6px;
  background-color: white;
  color: #124D95;
  position: relative;
  z-index: 1;
}
.form-group input::placeholder {
  color: transparent;
}
.form-group label {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 16px;
  color: #124D95;
  background: white;
  padding: 0 4px;
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 2;
}
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
  top: -10px;
  left: 8px;
  font-size: 12px;
  background: white;
  color: #0f3f7a;
}

/* Tombol */
button {
  width: 100%;
  padding: 10px;
  background: #124D95;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}
button:hover {
  background: #0f3f7a;
}

/* Error box */
.error-box {
  margin-top: 12px;
  padding: 12px;
  background-color: #ffe5e5;
  border: 1px solid #ff9999;
  color: #cc0000;
  border-radius: 6px;
  text-align: center;
  font-weight: bold;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive untuk form */
@media screen and (max-width: 360px) {
  body {
    padding: 12px;
    font-size: 15px;
  }
  h2 {
    font-size: 18px;
  }
  form {
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  }
  .form-group input,
  button {
    font-size: 15px;
    padding: 10px;
  }
  .form-group label {
    font-size: 15px;
  }
  .form-group input:focus + label,
  .form-group input:not(:placeholder-shown) + label {
    font-size: 11px;
  }
}

/* Animasi masuk */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}