/* =========================
   HEADER
========================= */

#x_masuk {
  width: 100%;
  max-width: 950px;
  max-width: auto;
  padding: 20px;
  box-sizing: border-box;
  background: linear-gradient(
    135deg,
    rgba(0, 20, 55, 0.5),
    rgba(0, 8, 25, 0.95)
  );
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 8px 25px rgba(0, 0, 0, 0.35);
}

.divatas {
  min-height: 50px;
  max-height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  margin-bottom: 5px;
  border-radius: 5px;

  background:
    url("../img/icon/repeat-big.png") right center / contain no-repeat,
    linear-gradient(135deg, #00aef0, #0088ff);

  color: #14396a;
  font-size: 22px;
  text-shadow: 1px 1px 0px #7cabde;
  font-family: "Kondo", Verdana, Tahoma, sans-serif;
  font-weight: 800;
  font-style: normal;

  box-shadow: inset 1px 1px 2px 0px #bee3f9;
}

/* =========================
   CONTENT
========================= */

.content {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: stretch;
}

/* =========================
   PANEL
========================= */

.panel {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
}

/* =========================
   TITLE
========================= */

.box-title {
  color: #333;
  overflow: hidden;
  position: relative;
  padding: 10px 15px;
  background: linear-gradient(180deg, #77d42a 10%, #5cb811 100%);
  font-family: "Becham", arial, verdana;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.2px;
  border-radius: 5px 5px 0 0;
  text-shadow: 1px 1px 0px #aade7c;
  box-shadow: inset 1px 1px 2px 0px #c9efab;
}

.box-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.18),
    transparent
  );
  transform: skewX(-25deg);
  animation: idxShine 6s infinite;
  pointer-events: none;
}

@keyframes idxShine {
  0% {
    left: -120%;
  }
  100% {
    left: 150%;
  }
}

.box-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.9),
    transparent
  );
}

/* =========================
   BOX
========================= */

.box {
  background: linear-gradient(
    135deg,
    rgba(0, 210, 255, 0.15),
    rgba(255, 193, 7, 0.08)
  );

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  flex: 1;
  padding: 20px;
  font-size: 18px;
  font-weight: 500;
  border-radius: 0 0 5px 5px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 8px 25px rgba(0, 0, 0, 0.35);
}

.box-kanan {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  flex: 1;
  background: rgba(0, 0, 0, 0.55) url(../img/bg-masuk.jpg) center center
    no-repeat;
  object-fit: cover;
  background-size: cover;
  border-radius: 0 0 5px 5px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 8px 25px rgba(0, 0, 0, 0.35);
}

.sisi-kanan {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  padding: 40px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  border-radius: 5px;
}

.sisi-kanan h2 {
  margin: 0 0 12px;
  font-size: 30px;
  font-weight: 800;
  font-family: "Becham", arial, verdana;
  color: #00d23f;
}

.sisi-kanan p {
  max-width: 500px;
  margin: 0 0 28px;
  line-height: 1.2;
  font-size: 16px;
  color: #d8e7ff;
}

.sisi-kanan-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.sisi-btn {
  padding: 12px 26px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  transition: 0.25s;
}

.sisi-btn-primary {
  background: #00d2ff;
  color: #061521;
}

.sisi-btn-primary:hover {
  transform: translateY(-2px);
}

.sisi-btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.sisi-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

#scroll-box {
  height: 240px;
  overflow: hidden;
}

/* =========================
   FIELD
========================= */

.field {
  position: relative;
  margin-bottom: 18px;
  width: 100%;
}

/* =========================
   INPUT ICON
========================= */

.input-icon {
  position: relative;
}

.input-icon input {
  width: 100%;
  padding: 12px 12px 12px 42px;
  border: 1px solid #64748b4d;
  border-radius: 5px;
  background: #33415580;
  color: #fff;
  font-size: 14px;
  outline: none;
}

.input-icon input:focus {
  border-color: #00d27a;

  box-shadow: 0 0 8px rgba(0, 210, 122, 0.4);
}

.input-icon input.error {
  border: 1px solid #d9534f;
}

/* =========================
   ICON
========================= */

.icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  opacity: 0.7;
}

.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-right: 45px;
}

.toggle-password {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 16px;
  opacity: 0.7;
  transition: 0.2s;
  user-select: none;
}

.toggle-password:hover {
  opacity: 1;
}

/* =========================
   CAPTCHA
========================= */

.captcha-field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.captcha-field input {
  width: 120px;
  padding: 10px;
  border: 1px solid #64748b4d;
  border-radius: 5px;
  background: #33415580;
  color: #fff;
  text-transform: uppercase;
}

.captcha-field img {
  height: 40px;
  border-radius: 5px;
}

/* ===== ERROR BUBBLE ===== */
.error-bubble {
  position: absolute;
  left: 103%;
  top: 50%;
  transform: translateY(-50%);
  background: #d9534f;
  color: #fff;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 13px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 9999;
  animation: slideIn 0.25s ease; /* cukup ini */
}

/* PANAH */
.error-bubble::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: transparent #d9534f transparent transparent;
  z-index: 9999; /* 🔥 TAMBAH */
}

.bubble-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #680000;
  color: #d9534f;
  font-weight: bold;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ICON */
.error-bubble span.icon {
  font-weight: bold;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translate(10px, -50%);
  }
  to {
    opacity: 1;
    transform: translate(0, -50%);
  }
}

@media (max-width: 600px) {
  .panel {
    min-width: 100%;
  }

  .divatas {
    font-size: 22px;
    text-align: center;
    border-radius: 0;
  }

  .error-bubble {
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    margin-top: 14px;
    width: 100%;
    white-space: normal;
    overflow: visible;
  }

  .error-bubble::before {
    content: "";
    position: absolute;
    left: 20px;
    top: -6px;
    width: 12px;
    height: 12px;
    background: #d9534f;
    transform: rotate(45deg);
    z-index: -1;
  }
}

/* =========================
   REMEMBER
========================= */

.remember {
  font-size: 15px;
  color: #ddd;
  margin-bottom: 15px;
}

.remember a {
  color: #00d2ff;
  text-decoration: none;
}

/* =========================
   TABLE
========================= */

#data-table {
  width: 100%;
  border-collapse: collapse;

  font-size: 13px;
}

#data-table th {
  background: #fca815;
  color: #fff;
  padding: 10px;
}

#data-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #ddd;
}

/* =========================
   MOBILE
========================= */
@media screen and (max-width: 768px) and (orientation: landscape) {
  .divatas {
    border-radius: 0;
  }

  .content {
    margin: 10px;
  }

  .panel {
    max-width: 100%;
    box-sizing: border-box;
  }

  .error-bubble {
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    margin-top: 6px;
    width: 100%;
    white-space: normal;
  }

  .error-bubble::before {
    display: none;
  }

  .divbawah {
    margin: 10px;
  }
}

@media screen and (max-width: 768px) and (orientation: portrait) {
  #x_masuk {
    padding: 20px;
  }

  .content {
    margin: 10px;
  }

  .divatas {
    border-radius: 0;
    padding-left: 10px;
    justify-content: center;
    background:
      url("../img/icon/repeat-small.png") right center / contain no-repeat,
      linear-gradient(135deg, #00aef0, #0088ff);

    color: #14396a;
    font-size: 20px;
    font-family: "Kondo", Verdana, Tahoma, sans-serif;
    font-weight: 800;
    font-style: normal;
  }

  .divbawah {
    display: none;
  }

  .box-title {
    text-align: center;
  }

  .sisi-kanan h2 {
    font-size: 25px;
  }
}

@media screen and (max-width: 480px) {
  .box {
    border-radius: 0;
  }

  .box-title {
    border-radius: 0;
  }

  #x_masuk {
    padding: 0;
    border-radius: 0;
  }

  .content {
    margin: 0 5px;
    gap: 0;
  }
}

@media screen and (max-width: 375px) {
  .box {
    border-radius: 0;
  }

  .box-title {
    border-radius: 0;
  }

  .sisi-kanan {
    border-radius: 0;
  }

  #x_masuk {
    padding: 0;
    border-radius: 0;
  }

  .content {
    margin: 0;
    gap: 0;
  }
}
