* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(145deg, #f6f9fc 0%, #e9f0f5 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

/* card utama – compact & modern */
.login-card {
  max-width: 450px;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: #ffffff;
  border-radius: 40px;
  box-shadow:
    0 20px 50px rgba(0, 20, 30, 0.12),
    0 8px 24px rgba(0, 20, 30, 0.06);
  padding: 2rem 1.75rem;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* header */
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.brand i {
  font-size: 2.2rem;
  color: #0b4b6b;
  background: rgba(11, 75, 107, 0.08);
  padding: 0.5rem;
  border-radius: 18px;
  transition: 0.2s;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text .app-name {
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: #0a2e42;
  line-height: 1.2;
}

.brand-text .app-sub {
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: #3f6a81;
  opacity: 0.8;
  text-transform: uppercase;
}
.logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}
.divider-light {
  height: 2px;
  background: linear-gradient(90deg, #b3d1e0, transparent);
  margin: 0.75rem 0 1.5rem 0;
  border-radius: 4px;
}

/* judul form */
.form-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: #1a4055;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-title i {
  color: #2a6b8c;
  font-size: 1.2rem;
}

/* input group */
.input-group {
  margin-bottom: 1.25rem;
  position: relative;
}

.input-group label {
  display: block;
  font-weight: 500;
  font-size: 0.8rem;
  color: #1f4b62;
  margin-bottom: 0.3rem;
  letter-spacing: 0.01em;
}

.input-group .input-wrapper {
  display: flex;
  align-items: center;
  background: #f2f7fb;
  border-radius: 60px;
  padding: 0.1rem 0.1rem 0.1rem 1.2rem;
  border: 1px solid #d9e5ed;
  transition: all 0.2s;
}

.input-group .input-wrapper:focus-within {
  border-color: #1f7b9e;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(31, 123, 158, 0.08);
}

.input-wrapper i {
  color: #6f8fa3;
  font-size: 0.95rem;
  width: 1.2rem;
  margin-right: 0.3rem;
}

.input-wrapper input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0.8rem 0.8rem 0.8rem 0.2rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #0d3144;
  outline: none;
  font-family: "Inter", sans-serif;
}

.input-wrapper input::placeholder {
  color: #99b6c9;
  font-weight: 400;
  font-size: 0.85rem;
}

/* captcha block — compact */
.captcha-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  background: #f1f6fa;
  padding: 0.7rem 1rem;
  border-radius: 60px;
  border: 1px solid #d9e5ed;
  margin-bottom: 1.5rem;
}

.captcha-box {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #ffffff;
  padding: 0.2rem 1rem 0.2rem 1.2rem;
  border-radius: 40px;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.02);
  flex: 1 1 auto;
}

.captcha-box .captcha-text {
  font-weight: 700;
  font-size: 1.3rem;
  color: #15475f;
  letter-spacing: 0.5px;
  background: #eef4f9;
  padding: 0.1rem 0.8rem;
  border-radius: 30px;
  line-height: 1.6;
  min-width: 3.2rem;
  text-align: center;
}

.captcha-box .captcha-icon {
  color: #3a7b9a;
  font-size: 1rem;
  margin: 0 0.1rem;
}

.captcha-input {
  flex: 2 1 120px;
  min-width: 80px;
}

.captcha-input input {
  width: 100%;
  border: none;
  background: #ffffff;
  padding: 0.5rem 0.8rem;
  border-radius: 40px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #0d3144;
  border: 1px solid #d9e5ed;
  transition: 0.15s;
  font-family: "Inter", sans-serif;
  outline: none;
}

.captcha-input input:focus {
  border-color: #1f7b9e;
  box-shadow: 0 0 0 3px rgba(31, 123, 158, 0.08);
}

.captcha-input input::placeholder {
  color: #b0c9d9;
  font-weight: 400;
  font-size: 0.8rem;
}

.refresh-captcha {
  background: transparent;
  border: none;
  color: #3a7b9a;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  border-radius: 40px;
  transition: 0.15s;
  background: rgba(31, 123, 158, 0.04);
  border: 1px solid transparent;
  line-height: 1;
}

.refresh-captcha:hover {
  background: rgba(31, 123, 158, 0.1);
  color: #125072;
  transform: rotate(15deg);
}

.refresh-captcha:active {
  transform: scale(0.92);
}

/* tombol login */
.login-btn {
  width: 100%;
  background: #0b4b6b;
  border: none;
  padding: 0.9rem 1.2rem;
  border-radius: 60px;
  font-weight: 600;
  font-size: 1rem;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: 0.2s;
  cursor: pointer;
  margin-top: 0.3rem;
  box-shadow: 0 6px 14px rgba(11, 75, 107, 0.2);
  font-family: "Inter", sans-serif;
  letter-spacing: 0.3px;
}

.login-btn i {
  font-size: 1.1rem;
}

.login-btn:hover {
  background: #0d5f84;
  transform: scale(1.01);
  box-shadow: 0 10px 20px rgba(11, 75, 107, 0.25);
}

.login-btn:active {
  transform: scale(0.97);
}

/* footer */
.footer-note {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  font-size: 0.7rem;
  color: #527b92;
  font-weight: 500;
}

.footer-note span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.footer-note i {
  font-size: 0.7rem;
  color: #3f7b99;
}

/* ===== MESSAGE BOX STYLE ===== */
.message-box {
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.65rem 1rem;
  border-radius: 40px;
  background: #e9f3f9;
  color: #185570;
  text-align: center;
  /*display: none;*/
  border: 1px solid #c3dcec;
  transition: all 0.25s ease;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  line-height: 1.4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.message-box.show {
  display: flex;
}

/* — ERROR state — */
.message-box.error {
  background: #fef1f0;
  color: #b3403a;
  border-color: #f5cdca;
  box-shadow: 0 2px 12px rgba(180, 50, 50, 0.06);
}

.message-box.error i {
  color: #c94a43;
  font-size: 1rem;
}

/* — SUCCESS state — */
.message-box.success {
  background: #e0f2e8;
  color: #0f6a4a;
  border-color: #b6d9c8;
  box-shadow: 0 2px 12px rgba(30, 110, 70, 0.06);
}

.message-box.success i {
  color: #1d855e;
  font-size: 1rem;
}

/* — INFO state (default) — */
.message-box.info {
  background: #e9f3f9;
  color: #185570;
  border-color: #c3dcec;
}

.message-box.info i {
  color: #2b7a9e;
}

.toggle-visibility {
  position: absolute;
  right: 6px;
  top: 65%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
}
.toggle-visibility:hover {
  background: #f3f4f6;
  color: #374151;
}
.toggle-visibility:focus {
  outline: 2px solid #93c5fd;
}

/* Perubahan: Icon FontAwesome */
.toggle-visibility .eye-icon {
  font-size: 16px;
  transition: all 0.2s ease;
}

/* responsive */
@media (max-width: 440px) {
  .login-card {
    padding: 1.5rem 1.2rem;
    border-radius: 32px;
  }
  .captcha-row {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.7rem 0.8rem;
  }
  .captcha-box {
    flex: 1 1 100%;
  }
  .captcha-input {
    flex: 2 1 100%;
  }
  .brand-text .app-name {
    font-size: 1.2rem;
  }
}
