/* MatrixFlow 找回账号（页内内嵌，2026-09-15 v7）浅色/深色双主题 */
.mf-forgot-panel {
  width: 100%;
  max-width: 384px;
  margin: 0 auto;
  padding: 28px 0 8px;
}
.mf-forgot-panel[hidden] {
  display: none;
}
/**
 * 2026-09-15：旧脚本/旧缓存先建出来的面板没有版本标记 → 先藏起来。
 * 最新脚本接管时会把它原地重建并打上 data-mf-forgot-ver，然后才显示。
 * 这样客户不会再看到"先旧顺序、过一秒跳成新顺序"的闪动。
 */
#mf-forgot-panel:not([data-mf-forgot-ver]) {
  visibility: hidden !important;
}
.mf-forgot-panel__title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--shell-fg, inherit);
}
.mf-forgot-panel__sub {
  font-size: 13px;
  line-height: 1.6;
  color: var(--shell-muted-fg, #94a3b8);
  margin: 0 0 20px;
}
.mf-forgot-panel__field {
  margin-bottom: 14px;
}
.mf-forgot-panel__field label,
.mf-forgot-panel__row label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--shell-fg, #cbd5e1);
}
.mf-forgot-panel__row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 14px;
}
.mf-forgot-input {
  width: 100%;
  box-sizing: border-box;
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--shell-border, rgba(255, 255, 255, 0.14));
  background: var(--shell-input, rgba(255, 255, 255, 0.06));
  color: var(--shell-fg, inherit);
  font-size: 14px;
  outline: none;
}
.mf-forgot-input::placeholder {
  color: var(--shell-muted-fg, #64748b);
}
.mf-forgot-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}
.mf-forgot-emailwrap {
  position: relative;
}
.mf-forgot-emailmenu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 180px;
  overflow-y: auto;
  border-radius: 10px;
  background: var(--shell-card, #1e293b);
  border: 1px solid var(--shell-border, rgba(255, 255, 255, 0.16));
  box-shadow: var(--mf-shadow-lg, 0 12px 32px rgba(0, 0, 0, 0.45));
  padding: 6px;
}
.mf-forgot-emailmenu[hidden] {
  display: none;
}
.mf-forgot-emailmenu__item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--shell-card-fg, #e2e8f0);
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.mf-forgot-emailmenu__item:hover {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}
.dark .mf-forgot-emailmenu__item:hover {
  background: rgba(56, 189, 248, 0.16);
  color: #7dd3fc;
}
.mf-forgot-send {
  flex: 0 0 auto;
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--shell-border, rgba(255, 255, 255, 0.14));
  background: var(--shell-secondary, rgba(255, 255, 255, 0.06));
  color: var(--shell-secondary-fg, #cbd5e1);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.mf-forgot-send:hover {
  border-color: #2563eb;
  color: #1d4ed8;
}
.dark .mf-forgot-send:hover {
  border-color: #38bdf8;
  color: #ffffff;
}
.mf-forgot-send:disabled {
  opacity: 0.65;
  cursor: default;
}
.mf-forgot-linkbtn {
  flex: 0 0 auto;
  white-space: nowrap;
  border: 0;
  background: transparent;
  color: #2563eb;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 8px;
}
.mf-forgot-linkbtn:hover {
  background: rgba(37, 99, 235, 0.1);
}
.dark .mf-forgot-linkbtn {
  color: #38bdf8;
}
.dark .mf-forgot-linkbtn:hover {
  background: rgba(56, 189, 248, 0.12);
}
.mf-forgot-msg {
  margin: 12px 0;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 8px;
  padding: 9px 12px;
  font-weight: 500;
}
.mf-forgot-msg.is-ok {
  color: #047857;
  background: rgba(4, 120, 87, 0.1);
}
.dark .mf-forgot-msg.is-ok {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
}
.mf-forgot-msg.is-err {
  color: #b91c1c;
  background: rgba(185, 28, 28, 0.1);
}
.dark .mf-forgot-msg.is-err {
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
}
.mf-forgot-msg[hidden] {
  display: none;
}
.mf-forgot-submit {
  width: 100%;
  height: 44px;
  margin-top: 6px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, #2563eb, #6d28d9);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.22);
}
.mf-forgot-submit:hover {
  filter: brightness(1.08);
}
.mf-forgot-submit:disabled {
  opacity: 0.65;
  cursor: default;
}
.mf-forgot-back {
  display: block;
  width: 100%;
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: var(--shell-muted-fg, #94a3b8);
  font-size: 13px;
  cursor: pointer;
  padding: 6px;
}
.mf-forgot-back:hover {
  color: #2563eb;
}
.dark .mf-forgot-back:hover {
  color: #7dd3fc;
}
.mf-forgot-link {
  border: 0;
  background: transparent;
  color: #2563eb;
  font-size: 13px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
}
.dark .mf-forgot-link {
  color: #38bdf8;
}
.mf-forgot-link:hover {
  text-decoration: underline;
  background: rgba(37, 99, 235, 0.1);
}

/* 数字算术人机验证 */
.mf-forgot-math {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mf-forgot-math__q {
  flex: 0 0 auto;
  min-width: 78px;
  text-align: center;
  padding: 0 10px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--shell-secondary, rgba(255, 255, 255, 0.06));
  border: 1px solid var(--shell-border, rgba(255, 255, 255, 0.12));
  font-weight: 700;
  color: #1d4ed8;
}
.dark .mf-forgot-math__q {
  color: #7dd3fc;
}
.mf-forgot-math__a {
  flex: 1 1 auto;
  min-width: 0;
}