/* Kayıt Ol — premium fantasy form (registerbg parşömen korunur) */
.register-page {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 28px 20px 36px;
  box-sizing: border-box;
}

.register-page .reg-head {
  text-align: center;
  margin: 0 0 28px;
}

.register-page .reg-head__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.register-page .reg-head__filigree {
  flex: 1 1 0;
  max-width: 72px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c89b3c 40%, #f0d070 60%, transparent);
  position: relative;
}

.register-page .reg-head__filigree::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  background: #c89b3c;
  transform: rotate(45deg);
  box-shadow: 0 0 6px rgba(200, 155, 60, 0.6);
}

.register-page .reg-head__filigree--l::after { right: 0; }
.register-page .reg-head__filigree--r::after { left: 0; }

.register-page .reg-head__title {
  margin: 0;
  font-family: "Cinzel", "Marcellus", Georgia, serif;
  font-size: clamp(22px, 4.5vw, 30px);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #c89b3c;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 0 18px rgba(200, 155, 60, 0.25);
  text-transform: uppercase;
  white-space: nowrap;
}

.register-page .reg-head__ornament {
  display: block;
  width: 120px;
  height: 8px;
  margin: 10px auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='8' viewBox='0 0 120 8'%3E%3Cpath fill='%23c89b3c' d='M60 0l4 4-4 4-4-4zm-20 0l3 3-3 3-3-3zm40 0l3 3-3 3-3-3z'/%3E%3C/svg%3E") center no-repeat;
  opacity: 0.85;
}

.register-page .reg-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.register-page .reg-field {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 44px;
}

.register-page .reg-field__icon {
  flex: 0 0 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #081525;
  border: 1px solid #c89b3c;
  border-right: none;
  border-radius: 4px 0 0 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 2px 6px rgba(0, 0, 0, 0.35);
}

.register-page .reg-field__icon i {
  font-size: 16px;
  color: #c89b3c;
}

.register-page .reg-field__body {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  min-width: 0;
  background: #081525;
  border: 1px solid #c89b3c;
  border-radius: 0 4px 4px 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 3px 8px rgba(0, 0, 0, 0.28);
}

.register-page .reg-field__input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 0;
  outline: none;
  background: transparent;
  color: #f5e6c8;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
}

.register-page .reg-field__input::placeholder {
  color: rgba(200, 155, 60, 0.72);
}

.register-page .reg-field--password .reg-field__body {
  padding-right: 4px;
}

.register-page .reg-field__toggle {
  flex: 0 0 36px;
  height: 36px;
  margin: 3px 4px 3px 0;
  border: 1px solid rgba(200, 155, 60, 0.45);
  border-radius: 3px;
  background: rgba(8, 21, 37, 0.9);
  color: #c89b3c;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.register-page .reg-field__toggle:hover {
  color: #f0d070;
  border-color: #f0d070;
  box-shadow: 0 0 10px rgba(200, 155, 60, 0.35);
}

.register-page .reg-field-wrap {
  margin: 0 0 12px;
}

.register-page .reg-field-wrap .reg-field {
  margin-bottom: 0;
}

.register-page .reg-field__error {
  display: none;
  margin: 6px 0 0 !important;
  padding: 0 2px;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  color: #c0392b !important;
  text-align: left;
}

.register-page .reg-field-wrap.is-error .reg-field__error {
  display: block !important;
}

.register-page .reg-field-wrap.is-error .reg-field__icon {
  border-color: #c0392b;
  background: linear-gradient(180deg, #4a1818 0%, #2a0c0c 100%);
  color: #f0a0a0;
}

.register-page .reg-field-wrap.is-error .reg-field__body {
  border-color: #c0392b;
  box-shadow:
    inset 0 0 0 1px rgba(192, 57, 43, 0.35),
    0 0 0 1px rgba(192, 57, 43, 0.25),
    0 3px 8px rgba(0, 0, 0, 0.28);
}

.register-page .reg-field-wrap.is-error .reg-captcha__box {
  border-color: #c0392b;
  box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.35);
}

.register-page .reg-field-wrap.is-error::after {
  content: "!";
  position: absolute;
  right: 10px;
  top: 10px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #c0392b;
  color: #fff;
  font-family: Cinzel, Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.register-page .reg-field-wrap {
  position: relative;
}

.register-page .reg-field-wrap[data-reg-field="captcha"].is-error::after {
  top: 10px;
  right: 10px;
}

.register-page .reg-field-wrap.is-error .reg-field--password .reg-field__toggle {
  margin-right: 28px;
}

.register-page .reg-captcha {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 4px;
}

.register-page .reg-captcha__box {
  min-width: 140px;
  padding: 10px 18px;
  text-align: center;
  background: linear-gradient(180deg, #e8d4a8 0%, #d4bc82 100%);
  border: 1px solid #8a6a2a;
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 2px 6px rgba(0, 0, 0, 0.2);
  user-select: none;
}

.register-page .reg-captcha__code {
  font-family: "Marcellus", Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #2a1a0a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.register-page .reg-captcha__refresh {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #081525;
  border: 1px solid #c89b3c;
  border-radius: 4px;
  color: #c89b3c;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.register-page .reg-captcha__refresh:hover {
  color: #f0d070;
  border-color: #f0d070;
  box-shadow: 0 0 12px rgba(200, 155, 60, 0.4);
}

.register-page .reg-tos {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  margin: 10px 0 6px;
  text-align: left;
}

.register-page .reg-tos__check {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.register-page .reg-tos__box {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  background: #081525;
  border: 1px solid #c89b3c;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}

.register-page .reg-tos__box i {
  font-size: 12px;
  color: #c89b3c;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.register-page .reg-tos__check:checked + .reg-tos__box i {
  opacity: 1;
}

.register-page .reg-tos__text {
  flex: 1 1 auto;
  max-width: 360px;
  font-size: 13px;
  line-height: 1.45;
  color: #4a3018;
}

.register-page .reg-tos__text a {
  color: #7a4e12;
  font-weight: 700;
  text-decoration: underline;
}

.register-page .reg-tos__text a:hover {
  color: #c89b3c;
}

.register-page .reg-submit-wrap {
  text-align: center;
  margin-top: 8px;
}

.register-page #registerstart {
  min-height: 0;
  margin-bottom: 8px;
}

.register-page .reg-submit {
  display: inline-block;
  width: 100%;
  max-width: 420px;
  padding: 14px 24px;
  border: 2px solid #c89b3c;
  border-radius: 4px;
  background: linear-gradient(180deg, #0c1e34 0%, #081525 55%, #060f1a 100%);
  color: #c89b3c;
  font-family: "Cinzel", "Marcellus", Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(200, 155, 60, 0.2), 0 4px 14px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.register-page .reg-submit:hover {
  color: #f0d070;
  border-color: #f0d070;
  box-shadow: 0 0 18px rgba(200, 155, 60, 0.45), 0 4px 16px rgba(0, 0, 0, 0.5), inset 0 0 12px rgba(200, 155, 60, 0.12);
  transform: translateY(-1px);
}

.register-page .reg-submit:active {
  transform: translateY(0);
}

/* Kayıt başarı penceresi */
.jg-reg-success {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 6, 4, 0.72);
  box-sizing: border-box;
}

.jg-reg-success.is-open,
.jg-reg-success:not([hidden]) {
  display: flex !important;
}

.jg-reg-success__card {
  width: 100%;
  max-width: 420px;
  padding: 28px 24px 22px;
  text-align: center;
  border: 2px solid #c9a24a;
  background: linear-gradient(180deg, #2a1c12 0%, #140e08 100%);
  box-shadow:
    0 0 0 1px rgba(255, 220, 140, 0.18) inset,
    0 16px 40px rgba(0, 0, 0, 0.5);
  color: #f2e6d0;
  animation: jgRegPop 0.28s ease-out;
}

@keyframes jgRegPop {
  from { transform: translateY(10px) scale(0.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.jg-reg-success__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid #c9a24a;
  background: radial-gradient(circle at 35% 30%, #3a5a20, #1a2810 70%);
  color: #d8f0a0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.jg-reg-success__title {
  margin: 0 0 8px !important;
  font-family: Cinzel, Georgia, serif !important;
  font-size: 22px !important;
  letter-spacing: 0.08em;
  color: #f0d080 !important;
}

.jg-reg-success__text {
  margin: 0 0 12px !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  color: #e8dcc0 !important;
}

.jg-reg-success__wait {
  margin: 0 !important;
  font-family: Georgia, serif !important;
  font-size: 12.5px !important;
  color: #b8a070 !important;
}

/* Eski kayıt stillerini bu sayfada devre dışı bırak */
.registerbg #register_label,
.registerbg #register_text,
.registerbg .register_icon,
.registerbg #register_form .gg_input_div,
.registerbg #register_form .row,
.registerbg #register_form .col-sm-4,
.registerbg #register_form .col-sm-offset-4,
.registerbg #register_form #login_button {
  display: none !important;
}

.registerbg .register-page {
  display: block !important;
}

@media (max-width: 480px) {
  .register-page {
    padding: 20px 12px 28px;
  }

  .register-page .reg-head__filigree {
    max-width: 40px;
  }

  .register-page .reg-field__icon {
    flex-basis: 40px;
  }

  .register-page .reg-captcha__code {
    font-size: 22px;
  }
}
