/* ==== RESET & GLOBAL ==== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Poppins", "Source Sans Pro", sans-serif;
  background: linear-gradient(135deg, #f4f6f9 0%, #f4f6f9 100%);
}

/* ==== WRAPPER ==== */
.container-login {
  width: 100%;
  max-width: 420px;
}

/* ==== BOX UTAMA ==== */
.box {
  background: linear-gradient(135deg, #007bff, #0056b3); /* biru gradasi */
  border-radius: 12px;
  padding: 25px 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  margin-bottom: 20px;
  position: relative;
  color: #fff; /* teks default putih agar kontras */
}

.box-header {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #fff;
}

.box p {
  margin-bottom: 15px;
  text-align: center;
  color: #f1f1f1;
}

/* ==== FORM ==== */
.form-group {
  margin-bottom: 15px;
  position: relative;
}

.form-control {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #ccc;
  padding: 12px 40px 12px 12px;
  font-size: 15px;
  color: #333;
}

.form-control:focus {
  outline: none;
  border-color: #ffc048;
  box-shadow: 0 0 0 2px rgba(255,192,72,0.35);
}

.input-icon {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  color: #888;
  cursor: pointer;
  font-size: 14px;
}

/* ==== BUTTON ==== */
.btn {
  display: inline-block;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  text-align: center;
  padding: 10px 16px;
  transition: 0.3s;
}

.btn-sm {
  font-size: 12px;
  padding: 6px 10px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #ffc048, #ff9933);
  color: #333;
  font-weight: 600;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ff9933, #ff7700);
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0,0,0,0.25);
}

.text-warning-custom {
  color: #ffc048 !important; /* kuning */
  font-weight: 600;
}

.text-error-custom {
  color: red !important;
  font-weight: 600;
  text-align: center;
  margin-bottom: 12px;
}

.btn-success {
  background: #28a745;
  color: #fff;
}

.btn-success:hover {
  background: #4cb162;
}

/* ==== TOMBOL HOME ==== */
.home-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 6px;
  line-height: 1;
  white-space: nowrap;
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* ==== CAPTCHA ==== */
.captcha-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}

.captcha-box img {
  border-radius: 6px;
  border: 1px solid #ccc;
  height: 42px;
}

.captcha-box button {
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #ffc048;
  display: flex;
  align-items: center;
}

/* ==== FOOTER ==== */
.form-footer {
  margin-top: 15px;
  text-align: center;
  font-size: 13px;
  color: #fff;
}

.form-footer a {
  color: #ffc048;
  text-decoration: none;
}

.form-footer a:hover {
  text-decoration: underline;
}

/* ==== RESPONSIF ==== */
@media (max-width: 480px) {
  .container-login {
    max-width: 95%;
  }
  .home-btn {
    top: 8px;
    right: 8px;
    font-size: 12px;
    padding: 5px 8px;
  }
}
