:root {
  --bg-dark: #170300;
  --bg-mid: #3d0a00;
  --card-dark: rgba(66, 8, 0, 0.9);
  --line: #ff5a2b;
  --line-soft: rgba(255, 90, 43, 0.5);
  --text: #ffffff;
  --muted: #ffbca8;
  --glow: #ffaf3d;
  --gold-1: #f7a83c;
  --gold-2: #ffe28b;
  --gold-3: #d58e1d;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 135, 30, 0.18), transparent 24%),
    radial-gradient(circle at 80% 45%, rgba(255, 90, 43, 0.08), transparent 28%),
    linear-gradient(180deg, #220300 0%, #3d0b01 38%, #5e0e00 72%, #7d0900 100%);
}

.page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 18px 10px;
}

.register-card {
  position: relative;
  width: 100%;
  max-width: 600px;
  padding: 22px 28px 42px;
  border: 2px solid #f24920;
  border-radius: 0 0 18px 18px;
  background:
    linear-gradient(180deg, rgba(86, 13, 1, 0.8), rgba(75, 8, 0, 0.93)),
    radial-gradient(circle at center, rgba(255, 166, 61, 0.12), transparent 45%);
  box-shadow:
    0 0 0 1px rgba(255, 140, 55, 0.1),
    0 0 24px rgba(255, 88, 25, 0.22),
    inset 0 0 40px rgba(255, 132, 0, 0.06);
  overflow: hidden;
}

.register-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 185, 80, 0.14), transparent 20%),
    linear-gradient(145deg, transparent 35%, rgba(255, 255, 255, 0.03) 50%, transparent 65%);
  pointer-events: none;
}

.card-corner {
  position: absolute;
  bottom: 0;
  width: 30px;
  height: 30px;
  border-bottom: 3px solid #f24920;
  filter: drop-shadow(0 0 6px rgba(255, 88, 25, 0.35));
}

.corner-left {
  left: -2px;
  border-left: 3px solid #f24920;
  border-bottom-left-radius: 12px;
}

.corner-right {
  right: -2px;
  border-right: 3px solid #f24920;
  border-bottom-right-radius: 12px;
}

.register-header {
  position: relative;
  z-index: 1;
  margin-bottom: 26px;
}

.register-title {
  margin: 0;
  text-align: center;
  color: #ffffff;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.title-accent {
  width: 88%;
  height: 18px;
  margin: 8px auto 0;
  position: relative;
}

.title-accent::before,
.title-accent::after {
  content: "";
  position: absolute;
  top: 8px;
  width: calc(50% - 58px);
  height: 2px;
  background: linear-gradient(to right, transparent, #ffcb6a, #8d4610);
}

.title-accent::after {
  right: 0;
  transform: scaleX(-1);
}

.title-accent::before {
  left: 0;
}

.title-accent span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 18px;
  background: radial-gradient(circle, rgba(255, 250, 210, 0.9) 0%, rgba(255, 157, 34, 0.85) 35%, rgba(255, 88, 0, 0.7) 55%, transparent 80%);
  filter: blur(1px);
}

.register-form {
  position: relative;
  z-index: 1;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  margin-bottom: 7px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.required {
  color: #ffb43c;
}

input,
select,
button {
  font: inherit;
}

.field-wrap,
.captcha-single {
  position: relative;
}

input,
select {
  width: 100%;
  height: 44px;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  background: rgba(64, 11, 2, 0.65);
  color: #ffd4c2;
  outline: none;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: inset 0 0 10px rgba(255, 145, 0, 0.05);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

input::placeholder,
select {
  color: var(--muted);
}

input:focus,
select:focus {
  border-color: #ffbe57;
  box-shadow:
    0 0 0 2px rgba(255, 178, 74, 0.08),
    0 0 12px rgba(255, 173, 73, 0.18),
    inset 0 0 10px rgba(255, 145, 0, 0.08);
  background: rgba(77, 14, 3, 0.78);
}

.password-wrap input {
  padding-right: 46px;
}

.toggle-pass {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: #ffd8b1;
  cursor: pointer;
  opacity: 0.9;
}

.toggle-pass:hover {
  opacity: 1;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 42px;
}

.select-wrap::after {
  content: "⌄";
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-53%);
  font-size: 22px;
  color: #ffbf62;
  pointer-events: none;
}

.captcha-single {
  display: flex;
  align-items: center;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  background: rgba(64, 11, 2, 0.65);
  overflow: hidden;
  min-height: 44px;
}

.captcha-number {
  min-width: 92px;
  padding: 0 14px;
  color: #ffb12b;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  text-align: center;
}

.captcha-single input {
  border: none;
  border-left: 1px solid rgba(255, 90, 43, 0.35);
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.captcha-single input:focus {
  background: rgba(77, 14, 3, 0.38);
  box-shadow: none;
}

.submit-area {
  text-align: center;
  margin-top: 28px;
}

.submit-btn {
  min-width: 168px;
  height: 36px;
  border: none;
  border-radius: 7px;
  background: linear-gradient(to right, var(--gold-1), var(--gold-2), var(--gold-3));
  color: #2b1300;
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  box-shadow:
    0 0 10px rgba(255, 195, 89, 0.28),
    inset 0 1px 0 rgba(255,255,255,0.42);
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 14px rgba(255, 195, 89, 0.34),
    inset 0 1px 0 rgba(255,255,255,0.48);
}

.submit-btn:disabled {
  opacity: .8;
  cursor: not-allowed;
}

.message-box {
  min-height: 22px;
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.message-box.ok {
  color: #8fffc0;
}

.message-box.err {
  color: #ffd0c8;
}

.popup-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(22, 5, 0, 0.76);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
  z-index: 999999;
}

.popup-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.popup-card {
  width: 100%;
  max-width: 360px;
  border: 1px solid rgba(255, 137, 51, 0.35);
  border-radius: 18px;
  padding: 28px 22px 22px;
  text-align: center;
  background: linear-gradient(180deg, #521000 0%, #360700 100%);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  transform: translateY(12px) scale(0.96);
  transition: transform .22s ease;
}

.popup-overlay.show .popup-card {
  transform: translateY(0) scale(1);
}

.popup-check {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #2ad67a 0%, #19b763 100%);
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(33, 193, 108, 0.28);
}

.popup-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
  color: #fff;
}

.popup-card p {
  margin: 0 0 18px;
  font-size: 14px;
  color: #ffceb7;
}

.popup-button {
  width: 100%;
  height: 42px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(to right, var(--gold-1), var(--gold-2), var(--gold-3));
  color: #2b1300;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 640px) {
  .page {
    padding: 0;
  }

  .register-card {
    max-width: 100%;
    min-height: 100vh;
    border-radius: 0;
    padding: 18px 16px 36px;
  }

  .register-title {
    font-size: 24px;
  }

  .title-accent {
    width: 96%;
  }

  .form-group label {
    font-size: 14px;
  }

  input,
  select {
    height: 42px;
    font-size: 14px;
  }

  .captcha-number {
    min-width: 82px;
    font-size: 18px;
  }

  .submit-btn {
    min-width: 150px;
  }
}


/* rapikan area validasi */
.captcha-number {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.captcha-single input {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  color: #ffd7c4;
}

#capInput::placeholder {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}


/* rapikan icon V dropdown bank */
.select-wrap {
  position: relative;
}

.select-wrap select {
  padding-right: 46px !important;
  line-height: 44px;
}

.select-wrap::after {
  content: "▼" !important;
  position: absolute;
  right: 14px;
  top: 0;
  width: 18px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: none !important;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: #ffbf62;
  pointer-events: none;
}
