[class*="tencent-captcha"] {
  display: none !important;
}

#register-overlay,
#register-overlay * {
  box-sizing: border-box;
}

#register-overlay {
  position: fixed;
  inset: 0;
  z-index: 99995;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 16px 56px;
  background: rgba(0, 0, 0, 0.62);
}

#register-overlay.reg-hidden {
  display: none !important;
}

#register-overlay .van-popup,
#register-overlay .van-popup--center,
#register-overlay .van-popup--round {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: min(320px, calc(100vw - 32px)) !important;
  max-width: 100%;
  margin: 0;
  z-index: 2003;
  background: transparent;
  overflow: visible;
}

#register-overlay .registry {
  position: relative;
  background-color: #202a43;
  border-radius: 17px;
  overflow: visible;
}

#register-overlay .registry .content {
  border-radius: 8px;
  background-image: url(./bg_login2.webp);
  background-position: top;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 58px 20px 24px;
}

#register-overlay .header__title {
  text-align: left;
  font-family: PingFangSC-Semibold, "PingFang SC", sans-serif;
  font-size: 24px;
  color: #fff;
  line-height: 24px;
  font-weight: 600;
}

#register-overlay .notice-line {
  display: flex;
  color: #fff;
  margin-top: 15px;
  font-size: 14px;
  font-weight: 400;
}

#register-overlay .notice-line .main {
  color: #00b7ff;
  cursor: pointer;
  margin-left: 4px;
}

#register-overlay .form {
  margin-top: 10px;
}

#register-overlay .van-cell {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0;
  margin-top: 16px;
  background: rgba(0, 0, 0, 0.08);
  border: 1px solid hsla(0, 0%, 100%, 0.24);
  border-radius: 7px;
}

#register-overlay .van-field__left-icon {
  flex-shrink: 0;
}

#register-overlay .cell_icon1,
#register-overlay .cell_icon2,
#register-overlay .cell_icon4 {
  height: 20px;
  width: 20px;
  margin: 12px 0 12px 14px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

#register-overlay .cell_icon1 {
  background-image: url(../static/img/icon_账号.50212ae6.svg);
}

#register-overlay .cell_icon2 {
  background-image: url(../static/img/icon_密码.08b9cd52.svg);
}

#register-overlay .cell_icon4 {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9c6ff' stroke-width='1.8'><rect x='5' y='11' width='14' height='9' rx='2'/><path d='M8 11V8a4 4 0 0 1 8 0v3'/></svg>");
}

#register-overlay .van-field__value {
  flex: 1;
}

#register-overlay .van-field__control {
  width: 100%;
  height: 44px;
  border: 0;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: 14px;
  padding: 0 16px 0 8px;
}

#register-overlay .van-field__control::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

#register-overlay .reg-error {
  display: none;
  margin-top: 8px;
  font-size: 12px;
  color: #ff505e;
}

#register-overlay .reg-error.show { display: block; }

#register-overlay .submit_btn {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 22px;
  font-family: PingFangSC-Semibold, "PingFang SC", sans-serif;
  font-size: 16px;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  background: linear-gradient(90deg, #6a5bff, #b14dff);
  box-shadow: 0 6px 16px rgba(106, 91, 255, 0.35);
}

#register-overlay .submit_btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#register-overlay .close-icon {
  position: absolute;
  bottom: -46px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9;
  height: 26px;
  width: 26px;
  background: url(../static/img/icon_close.6537844b.svg) center/100% 100% no-repeat;
  cursor: pointer;
}

/* 人机验证条 */
.cap-bar {
  margin-top: 16px;
  height: 44px;
  border: 1px solid hsla(0, 0%, 100%, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  align-items: center;
  padding: 0 10px;
  cursor: pointer;
  user-select: none;
}

.cap-box {
  width: 22px;
  height: 22px;
  border: 1.5px solid #8aa0c2;
  border-radius: 3px;
  background: #fff;
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cap-box.loading {
  border-color: transparent;
  background: conic-gradient(#3b82f6, #93c5fd, #3b82f6);
  animation: capSpin 0.7s linear infinite;
  -webkit-mask: radial-gradient(farthest-side, transparent 58%, #000 60%);
  mask: radial-gradient(farthest-side, transparent 58%, #000 60%);
}

.cap-box.ok {
  border-color: #22c55e;
  background: #22c55e;
  color: #fff;
  font-size: 14px;
}

.cap-text {
  font-size: 14px;
  color: #334155;
  flex: 1;
}

.cap-text.ok { color: #16a34a; }

.cap-meta {
  font-size: 10px;
  color: #94a3b8;
  text-align: right;
  line-height: 1.2;
}

@keyframes capSpin { to { transform: rotate(1turn); } }

/* 高验证弹层 */
#cap-puzzle.reg-hidden { display: none !important; }

#cap-puzzle {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  padding: 16px;
}

.cap-card {
  width: 320px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.cap-card-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px 8px;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

.cap-card-hd button {
  border: 0;
  background: none;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
}

.cap-stage {
  padding: 0 12px 12px;
}

.cap-hint {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 8px;
}

.cap-hint b { color: #2563eb; }

#cap-canvas,
#cap-click {
  width: 100%;
  height: 168px;
  display: block;
  border-radius: 6px;
  background: #0f172a;
}

#cap-click {
  position: relative;
  overflow: hidden;
}

.cap-dot {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: rgba(15, 23, 42, 0.35);
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: translate(-50%, -50%);
  user-select: none;
}

.cap-dot.done {
  background: #22c55e;
  border-color: #22c55e;
}

.cap-track {
  position: relative;
  height: 40px;
  margin-top: 10px;
  background: #eef2ff;
  border-radius: 20px;
}

.cap-track-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 40px;
  background: rgba(59, 130, 246, 0.18);
  border-radius: 20px;
}

.cap-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #3b82f6;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: grab;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
  touch-action: none;
}

.cap-knob.ok { background: #22c55e; }
.cap-knob.fail { background: #ef4444; }

.cap-msg {
  min-height: 18px;
  margin-top: 8px;
  font-size: 12px;
  color: #ef4444;
  text-align: center;
}

.cap-card.shake {
  animation: capShake 0.4s ease;
}

@keyframes capShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}
