/* ==========================================================================
   独立前台「忘记密码 / 重置密码」苹果液态玻璃专页样式（深浅双主题自适应）
   ========================================================================== */
.sp-rp-page {
  min-height: calc(100dvh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 44px;
  padding-bottom: 64px;
}

.sp-rp-shell {
  position: relative;
  overflow: hidden;
  width: min(468px, 100%);
  padding: 1.5px;
  border-radius: 28px;
  box-shadow: 0 38px 96px -22px rgba(0, 0, 0, .6), 0 0 0 .5px rgba(255, 255, 255, .1);
  animation: spRpPop .56s var(--spring) both;
}

html.light .sp-rp-shell {
  box-shadow: 0 32px 80px -20px rgba(15, 23, 42, .16), 0 6px 20px -6px rgba(15, 23, 42, .06);
}

.sp-rp-ring {
  position: absolute;
  inset: -65%;
  z-index: 0;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(52, 199, 89, .9) 55deg, rgba(52, 211, 153, .48) 115deg, transparent 170deg, transparent 220deg, rgba(56, 189, 248, .6) 275deg, rgba(52, 199, 89, .85) 330deg, transparent 360deg);
  animation: amSpin 9s linear infinite;
  pointer-events: none;
}

.sp-rp-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 32px 30px 24px;
  border-radius: 26.5px;
  background: #0a101f;
  color: #f1f5f9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
}

html.light .sp-rp-card {
  background: #ffffff;
  color: #0f172a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95);
}

.sp-rp-orb {
  position: absolute;
  top: -80px;
  left: 50%;
  width: 360px;
  height: 190px;
  margin-left: -180px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(52, 199, 89, .24) 0%, rgba(56, 189, 248, .12) 48%, transparent 72%);
  pointer-events: none;
  animation: amOrbBreath 7s ease-in-out infinite;
}

/* ---------- 顶部三步进度条 ---------- */
.sp-rp-steps {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 26px;
}

.sp-rp-st {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  transition: color .28s;
}

.sp-rp-st b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(148, 163, 184, .14);
  color: #64748b;
  transition: background .3s, color .3s, box-shadow .3s;
}

.sp-rp-st.is-cur {
  color: var(--text);
}

.sp-rp-st.is-cur b,
.sp-rp-st.is-done b {
  background: linear-gradient(180deg, #5CE06B 0%, #34C759 52%, #1E9E40 100%);
  color: #ffffff;
  box-shadow: 0 6px 14px -5px rgba(52, 199, 89, .58);
}

.sp-rp-st.is-done {
  color: var(--em);
}

.sp-rp-st em {
  font-style: normal;
}

.sp-rp-sline {
  width: 24px;
  height: 1.5px;
  border-radius: 99px;
  background: rgba(148, 163, 184, .24);
}

/* ---------- 主体与抬头 ---------- */
.sp-rp-pane,
.sp-rp-sent,
.sp-rp-done,
.sp-rp-invalid {
  position: relative;
  z-index: 2;
}

.sp-rp-sent[hidden],
.sp-rp-done[hidden],
.sp-rp-pane[hidden] {
  display: none;
}

.sp-rp-head,
.sp-rp-sent,
.sp-rp-done,
.sp-rp-invalid {
  text-align: center;
}

.sp-rp-emblem {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  margin: 0 auto 14px;
  animation: amEmblemFloat 4.8s ease-in-out infinite;
}

.sp-rp-head h1,
.sp-rp-sent h2,
.sp-rp-done h2,
.sp-rp-invalid h1 {
  margin: 0 0 8px;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -.02em;
}

.sp-rp-head p,
.sp-rp-sent p,
.sp-rp-done p,
.sp-rp-invalid p {
  margin: 0 0 22px;
  font-size: 13.5px;
  line-height: 1.68;
  color: #94a3b8;
}

html.light .sp-rp-head p,
html.light .sp-rp-sent p,
html.light .sp-rp-done p,
html.light .sp-rp-invalid p {
  color: #64748b;
}

.sp-rp-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: left;
}

.sp-rp-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ---------- 密码实时强度条 ---------- */
.sp-rp-str {
  display: block;
  height: 4px;
  margin-top: 2px;
  border-radius: 99px;
  background: rgba(148, 163, 184, .18);
  overflow: hidden;
}

.sp-rp-str i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  transition: width .32s var(--ease), background-color .3s;
}

.sp-rp-str-txt {
  font-size: 11.5px;
  font-weight: 700;
}

.sp-rp-msg {
  margin: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.sp-rp-msg:empty {
  display: none;
}

.sp-rp-msg.is-ok { color: #34C759; }
.sp-rp-msg.is-err { color: #FF3B30; }

/* ---------- 状态操作区 ---------- */
.sp-rp-sent-acts,
.sp-rp-done-acts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.sp-rp-done-acts .am-go,
.sp-rp-invalid .am-go {
  width: 100%;
}

.sp-rp-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  padding: 0 20px;
  border-radius: 13px;
  border: 1.5px solid rgba(148, 163, 184, .24);
  background: rgba(255, 255, 255, .04);
  color: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .25s, color .25s, transform .3s var(--spring);
}

html.light .sp-rp-ghost {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, .12);
}

.sp-rp-ghost:not(:disabled):hover {
  border-color: var(--em);
  color: var(--em);
  transform: translateY(-1px);
}

.sp-rp-ghost:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.sp-rp-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--em);
}

.sp-rp-foot {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, .14);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: #64748b;
}

.sp-rp-foot a {
  color: var(--em);
  font-weight: 700;
}

.sp-rp-foot i {
  font-style: normal;
  opacity: .5;
}

.sp-rp-trust {
  position: relative;
  z-index: 2;
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
}

.sp-rp-trust span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

@keyframes spRpPop {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
}

@media (max-width: 900px) {
  .sp-rp-ring { animation: none; background: linear-gradient(140deg, rgba(82, 181, 75, .72), rgba(148, 163, 184, .18) 45%, rgba(52, 211, 153, .62)); }
  .sp-rp-orb, .sp-rp-emblem { animation: none; }
}

@media (max-width: 520px) {
  .sp-rp-page { padding-top: 24px; padding-bottom: 40px; }
  .sp-rp-card { padding: 24px 18px 20px; }
  .sp-rp-st em { display: none; }
  .sp-rp-sline { width: 32px; }
}
