/* 重置密码页面特定样式 */

.reset-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.reset-form h2 {
  margin-bottom: 10px;
}

.reset-step {
  display: none;
  animation: fadeIn 0.4s ease;
}

.reset-step.active {
  display: block;
}

.success-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 20px 0;
}

.success-icon {
  color: #4fdcff;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reset-step h3 {
  font-size: 18px;
  margin: 0;
  color: var(--text-color);
  text-shadow: 1px 1px 2px var(--text-shadow-color);
}

.reset-step p {
  font-size: 13px;
  margin: 0;
  color: var(--placeholder-color);
  text-shadow: 1px 1px 2px var(--text-shadow-color);
}

.step-tip {
  font-size: 12px;
  margin-top: 15px !important;
  text-align: center;
  color: var(--placeholder-color);
  text-shadow: 1px 1px 2px var(--text-shadow-color);
}

.link-back,
.link-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #4fdcff;
  text-decoration: none;
  font-size: 12px;
  transition: opacity 0.3s ease;
  display: inline-block;
}

.link-back:hover,
.link-btn:hover:not(:disabled) {
  opacity: 0.8;
}

.link-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#countdownTimer {
  color: #ff6b6b;
  font-weight: bold;
  margin-left: 8px;
  min-width: 40px;
  display: inline-block;
}

.btn-primary {
  background: #ffffff;
  color: #000000;
  border: 2px solid #ffffff;
  transition: all 0.3s ease;
}

.btn-primary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.02);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.input-box {
  margin: 12px 0;
}

.input-wrapper {
  position: relative;
}

/* 密码输入框中移除不必要的图标区域 */
#step3 .input-wrapper {
  padding-right: 45px;
}

#step3 .toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  cursor: pointer;
  color: var(--icon-color);
  text-shadow: 1px 1px 2px var(--text-shadow-color);
  transition: all 0.3s ease;
}

#step3 .toggle-password:hover {
  opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 600px) {
  .reset-form {
    gap: 12px;
  }

  .reset-step h3 {
    font-size: 16px;
  }

  .success-icon {
    width: 50px;
    height: 50px;
  }

  .input-box {
    margin: 10px 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
