/* 重置密码申请（/password-reset、/pwdresetadmin）样式
 * 配色沿用 ui-default 原生色板；深色主题由 .theme--dark 覆盖。
 */

.pwdreset-req {
  color: #ff4136;
  font-weight: 600;
}

/* ------------------------------------------------------------- 提示条 */

.pwdreset-msg {
  padding: .75rem .9375rem;
  border-radius: .25rem;
  border: 1px solid transparent;
  white-space: pre-line;          /* 服务端用 \n 分行 */
  line-height: 1.7;
}

.pwdreset-msg--err {
  background: #fdeceb;
  border-color: #f5b7b1;
  color: #a8281e;
}

.pwdreset-msg--ok {
  background: #e8f7ee;
  border-color: #a8dfbe;
  color: #1d7a3d;
}

.theme--dark .pwdreset-msg--err {
  background: #3a1614;
  border-color: #6d2a24;
  color: #ff9d95;
}

.theme--dark .pwdreset-msg--ok {
  background: #17351f;
  border-color: #2b5c3b;
  color: #86dcab;
}

/* ------------------------------------------------------------- 验证码 */

.pwdreset-captcha {
  display: flex;
  align-items: center;
  gap: .625rem;
}

.pwdreset-captcha__q {
  flex: 0 0 auto;
  font-family: Menlo, Consolas, monospace;
  font-size: 1.125rem;
  letter-spacing: .05em;
  padding: .3125rem .625rem;
  border-radius: .25rem;
  background: #f4f4f4;
  color: #333;
}

.theme--dark .pwdreset-captcha__q {
  background: #2a2a2a;
  color: #ddd;
}

.pwdreset-submit-hint {
  margin-left: .75rem;
}

.pwdreset-query-btn {
  display: flex;
  align-items: flex-end;
}

/* ------------------------------------------------------------- 进度查询 */

.pwdreset-result-table th {
  width: 8rem;
  white-space: nowrap;
}

.pwdreset-badge {
  display: inline-block;
  padding: 0 .5rem;
  border-radius: .75rem;
  font-size: .8125rem;
  line-height: 1.6;
  white-space: nowrap;
}

.pwdreset-badge--ok {
  background: #e8f7ee;
  color: #1d7a3d;
}

.pwdreset-badge--no {
  background: #fdeceb;
  color: #a8281e;
}

.pwdreset-badge--wait {
  background: #fff6e0;
  color: #8a6100;
}

.theme--dark .pwdreset-badge--ok { background: #17351f; color: #86dcab; }
.theme--dark .pwdreset-badge--no { background: #3a1614; color: #ff9d95; }
.theme--dark .pwdreset-badge--wait { background: #3a2f12; color: #f2cf7a; }

.pwdreset-detail {
  margin-top: .375rem;
  line-height: 1.7;
}

/* ------------------------------------------------------------- 管理页 */

.pwdreset-tabs {
  list-style: none;
  margin: 0 0 .75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
}

.pwdreset-tabs li > a {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: .25rem;
  border: 1px solid #ddd;
  color: inherit;
  text-decoration: none;
  font-size: .875rem;
}

.pwdreset-tabs li.active > a {
  background: #0071bc;
  border-color: #0071bc;
  color: #fff;
}

.theme--dark .pwdreset-tabs li > a { border-color: #444; }

.pwdreset-count {
  opacity: .75;
  margin-left: .25rem;
  font-variant-numeric: tabular-nums;
}

.pwdreset-table td {
  vertical-align: top;
}

.pwdreset-table .col--time { width: 11rem; }
.pwdreset-table .col--account { width: 12rem; }
.pwdreset-table .col--status { width: 10rem; }
.pwdreset-table .col--action { width: 16rem; }

.pwdreset-sub {
  font-size: .8125rem;
  opacity: .7;
  line-height: 1.6;
  margin-top: .1875rem;
}

.pwdreset-warn {
  color: #a8281e;
}

.theme--dark .pwdreset-warn { color: #ff9d95; }

.pwdreset-reason {
  white-space: pre-line;          /* 理由里的换行照原样显示 */
  word-break: break-word;
}

.pwdreset-form {
  display: flex;
  flex-direction: column;
  gap: .375rem;
}

.pwdreset-note {
  height: 2rem;
  padding: 0 .5rem;
  font-size: .8125rem;
}

.pwdreset-actions {
  display: flex;
  gap: .375rem;
  flex-wrap: wrap;
}

.pwdreset-actions .button {
  margin: 0;
  padding: .375rem .75rem;
  font-size: .8125rem;
}
