/* 静态复刻页：补齐官方由 JS 注入的交互态 */
.QD4si2.rd5qw9 input,
.QD4si2.rd5qw9 .cZ0ncA { color: #000; }

.QD4si2 ._7c31v .uoamIU.fK3c9T { opacity: 0; visibility: hidden; }

#togglePassword { width: 28px; }
#togglePassword .eyeIcon {
  width: 18px;
  height: 18px;
  display: block;
  pointer-events: none;
}
#togglePassword .eyeSlash { display: none; }
#togglePassword.eyeOpen .eyeSlash { display: block; }

/* 单标签页场景，保持官方 tab 的居中与下划线观感 */
.CNyvbx .yIUAY1 .vUaNJB { cursor: default; }
.CNyvbx .yIUAY1 .vUaNJB:hover .FHfmGv { color: #000; }

/* 校验错误态（对齐官方 .O7GJz8 的红色底与提示） */
.Z9KrK8.field-error .QD4si2 { background-color: hsla(3, 92%, 69%, .1); }
.Z9KrK8 .field-msg {
  align-items: center;
  color: #f96f68;
  display: none;
  font-size: .875rem;
  margin-top: .5rem;
}
.Z9KrK8.field-error .field-msg { display: flex; }
.Z9KrK8 .field-msg .mK0DIJ {
  align-items: center;
  display: flex;
  height: .875rem;
  justify-content: center;
  margin-right: .25rem;
  width: .75rem;
}
.Z9KrK8 .field-msg .mK0DIJ img { height: .75rem; width: .75rem; }

/* 按钮 loading 态 */
.qgFxbT.is-loading { opacity: .8; cursor: default; }
.qgFxbT.is-loading:after {
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  content: "";
  height: 14px;
  margin-left: 8px;
  width: 14px;
  animation: hg-spin .8s linear infinite;
}
@keyframes hg-spin { to { transform: rotate(360deg); } }

/* 轻提示，贴合官方深色提示条外观 */
#toastContainer {
  position: fixed;
  top: 24px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 9999;
  pointer-events: none;
}
.hg-toast {
  background-color: #282828;
  border-radius: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
  color: #fff;
  font-family: SourceHanSansCN-Regular, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  max-width: 80vw;
  padding: 8px 16px;
  opacity: 0;
  transform: translateY(-8px);
  transition: all .25s ease;
}
.hg-toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
  #togglePassword { width: 28px; }
#togglePassword .eyeIcon { width: 18px; height: 18px; }
}
