.auth-modal-overlay{
  position:fixed; inset:0;
  display:flex; align-items:center; justify-content:center;
  background:rgba(0,0,0,.55);
  z-index:9999;
  padding:20px;
}
.auth-modal-overlay.hidden{ display:none; }
.auth-modal{
  width:100%;
  max-width:480px;
  max-height:90vh;
  overflow:auto;
  background:#fff;
  box-shadow:0 30px 80px rgba(0,0,0,.25);
  position:relative;
}
.auth-modal-close{
  position:absolute; top:10px; right:14px;
  border:none; background:transparent;
  font-size:16px; cursor:pointer;
}
.auth-modal-open{ overflow:hidden; height:100%; }

/* ===== Fix: close button covered by auth-card ===== */

/* 弹窗外壳不滚动，滚动交给 body，避免 close 被遮挡 */
.auth-modal{
  overflow: hidden !important;
}

/* 内容区域负责滚动 */
.auth-modal-body{
  max-height: 90vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/* 关闭按钮置顶 + 显示更清晰 */
.auth-modal-close{
  z-index: 999999 !important;
  color: #111 !important;
}

/* 如果你的主题有按钮 reset 导致 close 看不见，这里强制显示 */
.auth-modal-close{
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}