@charset "UTF-8";

/* ===== CSS 变量 ===== */
:root {
  --primary: #0bb2d4;
  --primary-light: #3cc1dd;
  --secondary: #0790a8;
  --bg-dark: #05111a;
  --bg-card: rgba(5, 17, 26, 0.92);
  --border: rgba(11, 178, 212, 0.2);
  --border-active: rgba(11, 178, 212, 0.55);
  --text: #dff4f8;
  --text-muted: #6a9baa;
  --text-dim: #3a6a7a;
  --glow: 0 0 20px rgba(11, 178, 212, 0.35);
  --glow-strong: 0 0 40px rgba(11, 178, 212, 0.55);
  --input-bg: rgba(11, 178, 212, 0.04);
}

/* ===== 全局基础 ===== */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

body {
  background: var(--bg-dark);
  background-image:
    radial-gradient(ellipse at 15% 15%, rgba(11, 178, 212, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 85%, rgba(7, 144, 168, 0.05) 0%, transparent 55%);
  color: var(--text);
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ===== 主卡片 ===== */
.forget-pwd-card {
  width: 92%;
  max-width: 700px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 10px 50px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(11, 178, 212, 0.04),
    inset 0 1px 0 rgba(11, 178, 212, 0.12);
  overflow: hidden;
  margin: 40px auto;
}

/* ===== 页头 ===== */
.forget-pwd-title {
  height: 64px;
  background: linear-gradient(135deg, rgba(7, 130, 155, 0.9) 0%, rgba(11, 178, 212, 0.7) 100%);
  border-bottom: 1px solid var(--border-active);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.forget-pwd-title::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(11, 178, 212, 0.15) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: shimmer 4s ease-in-out infinite;
}
@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

.safety {
  padding-left: 28px;
  position: relative;
  z-index: 1;
}
.safety-title {
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 1.5px;
  text-shadow: 0 0 12px rgba(11, 178, 212, 0.6);
}

/* ===== 步骤条 ===== */
.forget-pwd-steps-box {
  padding: 26px 50px 20px;
  background: rgba(11, 178, 212, 0.025);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.el-steps--horizontal { white-space: nowrap; }
.el-steps { display: flex; }
.el-step.is-horizontal { display: inline-block; }
.el-step { position: relative; flex-shrink: 1; }
.el-step.is-center .el-step__head,
.el-step.is-center .el-step__main { text-align: center; }

/* 连接线 */
.el-step.is-center .el-step__line { left: 50%; right: -50%; }
.el-step.is-horizontal .el-step__line { height: 2px; top: 13px; left: 0; right: 0; }
.el-step__line { position: absolute; border-color: inherit; background-color: var(--text-dim); }
.el-step__line-inner {
  display: block;
  border-width: 1px;
  border-style: solid;
  border-color: inherit;
  transition: .2s ease-out;
  box-sizing: border-box;
  width: 0;
  height: 0;
}

/* 步骤图标 */
.el-step__icon.is-text { border-radius: 50%; border: 2px solid; border-color: inherit; }
.el-step__icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  font-size: 13px;
  box-sizing: border-box;
  background: var(--bg-dark);
  transition: .2s ease-out;
}
.el-step__icon-inner {
  display: inline-block;
  user-select: none;
  text-align: center;
  font-weight: 700;
  line-height: 1;
  color: inherit;
}
.el-step__main { white-space: normal; text-align: left; }

/* 步骤状态 */
.el-step__head.is-finish  { color: var(--primary); border-color: var(--primary); }
.el-step__title.is-finish { color: var(--primary); }
.el-step__description.is-finish { color: var(--primary); }

.el-step__head.is-process  { color: var(--text); border-color: var(--text); }
.el-step__title.is-process { font-weight: 700; color: var(--text); }
.el-step__description.is-process { color: var(--text-muted); }

.el-step__head.is-wait  { color: var(--text-dim); border-color: var(--text-dim); }
.el-step__title.is-wait { color: var(--text-dim); }
.el-step__description.is-wait { color: var(--text-dim); }

.el-step__title { font-size: 14px; line-height: 36px; }
.el-step.is-center .el-step__description { padding-left: 20%; padding-right: 20%; }
.el-step__description { padding-right: 10%; margin-top: -5px; font-size: 12px; line-height: 20px; font-weight: 400; }

/* ===== 表单区域 ===== */
.forget-pwd-form-box {
  padding: 36px 60px 16px;
  width: 100%;
  min-height: 180px;
}
.reset-success {
  text-align: center;
  padding: 30px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 行间距辅助 */
#mobile-div > div,
#password-div > div {
  margin-bottom: 22px;
}

/* 标签 */
.mobile-span {
  display: inline-block;
  color: var(--text-muted);
  font-size: 14px;
  width: 80px;
  text-align: right;
  margin-right: 12px;
  vertical-align: middle;
}

/* 输入框 */
.reset-input {
  appearance: none;
  -webkit-appearance: none;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  display: inline-block;
  font-size: 14px;
  font-family: inherit;
  height: 42px;
  line-height: 42px;
  outline: none;
  padding: 0 14px;
  transition: border-color .2s, box-shadow .2s, background .2s;
  width: 280px;
  vertical-align: middle;
}
.reset-input:focus {
  border-color: var(--border-active);
  box-shadow: var(--glow);
  background: rgba(11, 178, 212, 0.07);
}
.reset-input::placeholder { color: var(--text-dim); }

/* 验证码输入框 */
.reset-input-captcha {
  appearance: none;
  -webkit-appearance: none;
  display: inline-block;
  width: 120px;
  height: 42px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  padding: 0 12px;
  transition: border-color .2s, box-shadow .2s, background .2s;
  vertical-align: middle;
}
.reset-input-captcha:focus {
  border-color: var(--border-active);
  box-shadow: var(--glow);
  background: rgba(11, 178, 212, 0.07);
}
.reset-input-captcha::placeholder { color: var(--text-dim); }

/* 获取验证码按钮 */
#buttonCode {
  display: inline-block;
  height: 42px;
  line-height: 42px;
  white-space: nowrap;
  cursor: pointer;
  background: rgba(11, 178, 212, 0.08);
  border: 1px solid var(--border-active);
  color: var(--primary);
  appearance: none;
  -webkit-appearance: none;
  text-align: center;
  box-sizing: border-box;
  outline: none;
  margin: 0 0 0 8px;
  transition: all .2s;
  padding: 0 14px;
  font-size: 13px;
  font-family: inherit;
  border-radius: 8px;
  vertical-align: middle;
}
#buttonCode:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: var(--glow);
}

/* 倒计时按钮 */
#buttonTime {
  display: none;
  height: 42px;
  line-height: 42px;
  white-space: nowrap;
  cursor: default;
  border: 1px solid var(--border);
  appearance: none;
  -webkit-appearance: none;
  text-align: center;
  box-sizing: border-box;
  outline: none;
  margin: 0 0 0 8px;
  padding: 0 14px;
  font-size: 13px;
  font-family: inherit;
  border-radius: 8px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.02);
  vertical-align: middle;
}
#buttonTimeSpan { color: var(--primary); font-weight: 700; }

/* ===== 按钮区域 ===== */
.forget-pwd-button {
  padding: 16px 60px 28px;
  text-align: center;
}
.cancel {
  display: inline-block;
  min-width: 88px;
  height: 40px;
  line-height: 40px;
  white-space: nowrap;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  appearance: none;
  -webkit-appearance: none;
  text-align: center;
  box-sizing: border-box;
  outline: none;
  margin: 0 8px;
  transition: all .2s;
  padding: 0 22px;
  font-size: 14px;
  font-family: inherit;
  border-radius: 8px;
}
.cancel:hover {
  color: var(--primary);
  border-color: var(--border-active);
  background: rgba(11, 178, 212, 0.06);
  box-shadow: var(--glow);
}
.determine {
  display: inline-block;
  min-width: 88px;
  height: 40px;
  line-height: 40px;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid var(--primary);
  appearance: none;
  -webkit-appearance: none;
  text-align: center;
  box-sizing: border-box;
  outline: none;
  margin: 0 8px;
  transition: all .2s;
  padding: 0 22px;
  font-size: 14px;
  font-family: inherit;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
}
.determine:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-color: var(--primary-light);
  box-shadow: var(--glow-strong);
  transform: translateY(-1px);
}

/* ===== 页脚 ===== */
.forget-pwd-footer {
  margin-top: 0;
  border-top: 1px solid var(--border);
  background: rgba(11, 178, 212, 0.02);
}
.copyright {
  padding: 16px 30px;
  color: var(--text-dim);
  font-size: 12px;
  text-align: center;
  letter-spacing: 0.3px;
}

/* ===== 成功状态 ===== */
#resetSuccess .mobile-span {
  width: auto;
  text-align: center;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 2.2;
}
#resetSuccess a { color: var(--primary); text-decoration: none; transition: text-shadow .2s; }
#resetSuccess a:hover { text-shadow: var(--glow); }
#finishSpan { color: var(--primary); font-weight: 700; }
