/* fugui 注册页覆盖层 + 滑动验证 */
#register-page {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.72);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
  box-sizing: border-box;
}

#register-page.show {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

#register-page .fugui-register-dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 8px auto 24px;
  background: var(--color-bg-primary, #121212);
  color: var(--color-content-primary, #f5f5f5);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

#register-page .reg-banner-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin: 12px;
}

#register-page .reg-banner-track {
  display: flex;
  transition: transform 0.45s ease;
}

#register-page .reg-banner-track img {
  width: 100%;
  flex: 0 0 100%;
  display: block;
  height: auto;
  border-radius: 12px;
}

#register-page .reg-banner-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

#register-page .reg-banner-dots span {
  height: 4px;
  width: 4px;
  border-radius: 999px;
  background: #fff;
  opacity: 0.35;
  transition: all 0.25s;
}

#register-page .reg-banner-dots span.active {
  width: 20px;
  opacity: 1;
}

#register-page .reg-title {
  padding: 0 16px;
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: -0.64px;
}

#register-page .reg-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  border: 0;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  padding: 0;
  line-height: 0;
}

#register-page .reg-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 16px 20px;
}

#register-page .register-bonus-tip {
  margin: 0 0 4px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  text-align: center;
  color: #e8c27a;
  background: rgba(212, 166, 106, 0.12);
  border: 1px solid rgba(212, 166, 106, 0.28);
}

#register-page .register-bonus-tip span {
  font-weight: 700;
  color: #ff5a5a;
}

#register-page .reg-field {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid transparent;
}

#register-page .reg-field:focus-within {
  border-color: rgba(212, 166, 106, 0.65);
  outline: 3px solid rgba(212, 166, 106, 0.18);
}

#register-page .reg-field .svg-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #9ca3af;
}

#register-page .reg-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #f5f5f5;
  font-size: 14px;
  height: 48px;
}

#register-page .reg-field input::placeholder {
  color: #8b919a;
}


#register-page .reg-submit {
  margin-top: 8px;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, #e0b36a, #c9923f);
  color: #1a1208;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

#register-page .reg-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#register-page .reg-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: #8b919a;
  font-size: 13px;
}

#register-page .reg-divider::before,
#register-page .reg-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

#register-page .reg-social {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

#register-page .reg-social-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: #f5f5f5;
  cursor: pointer;
}

#register-page .reg-social-btn .svg-icon {
  width: 20px;
  height: 20px;
}

#register-page .reg-footer {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 4px;
  font-size: 13px;
  color: #8b919a;
}

#register-page .reg-footer button {
  border: 0;
  background: transparent;
  color: #e0b36a;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

/* 滑动验证 */
#slide-verify {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100001;
  background: rgba(0, 0, 0, 0.55);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#slide-verify.show {
  display: flex;
}

.slide-box {
  width: 100%;
  max-width: 320px;
  background: #1c1c1e;
  border-radius: 12px;
  padding: 18px 16px 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  color: #f5f5f5;
}

.slide-box-title {
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 6px;
}

.slide-box-sub {
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
  margin-bottom: 16px;
}

.slide-track {
  position: relative;
  height: 42px;
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.slide-track-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(90deg, rgba(224, 179, 106, 0.25), rgba(201, 146, 63, 0.55));
  border-radius: 21px;
  pointer-events: none;
}

.slide-track-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #9ca3af;
  pointer-events: none;
  z-index: 1;
}

.slide-btn {
  position: absolute;
  left: 0;
  top: 0;
  width: 46px;
  height: 42px;
  border-radius: 21px;
  background: linear-gradient(180deg, #e0b36a, #c9923f);
  box-shadow: 0 2px 8px rgba(201, 146, 63, 0.4);
  cursor: grab;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1208;
  font-size: 16px;
  font-weight: 700;
}

.slide-btn:active {
  cursor: grabbing;
}

.slide-msg {
  min-height: 20px;
  margin-top: 10px;
  font-size: 13px;
  text-align: center;
  color: #ee0a24;
}

.slide-msg.ok {
  color: #07c160;
}

.slide-close {
  display: block;
  width: 100%;
  margin-top: 12px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: transparent;
  color: #c8c9cc;
  font-size: 13px;
  cursor: pointer;
}
