@charset "UTF-8";

/* ===== 移动端覆盖 (≤767px) ===== */
@media screen and (max-width: 767px) {

  body {
    justify-content: flex-start;
    padding-top: 0;
  }

  .forget-pwd-card {
    width: 100%;
    border-radius: 0;
    margin: 0;
    min-height: 100vh;
    border-left: none;
    border-right: none;
    border-top: none;
    border-radius: 0 0 12px 12px;
  }

  .safety {
    padding-left: 18px;
  }
  .safety-title {
    font-size: 15px;
    letter-spacing: 0.5px;
  }

  /* 步骤条移动端 */
  .forget-pwd-steps-box {
    padding: 20px 20px 16px;
  }
  .el-step__title {
    font-size: 12px;
    line-height: 30px;
  }
  .el-step__icon {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
  .el-step.is-horizontal .el-step__line {
    top: 11px;
  }

  /* 表单移动端 */
  .forget-pwd-form-box {
    padding: 28px 18px 12px;
  }
  .reset-success {
    padding: 24px 18px;
  }

  #mobile-div,
  #password-div {
    text-align: left !important;
  }
  #mobile-div > div,
  #password-div > div {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .mobile-span {
    width: auto;
    text-align: left;
    margin-right: 0;
    font-size: 13px;
  }

  .reset-input {
    width: 100%;
    font-size: 15px;
    height: 46px;
    line-height: 46px;
  }

  /* 验证码行 */
  #mobile-div > div:last-child,
  .captcha-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }
  .reset-input-captcha {
    width: calc(100% - 130px);
    flex: 1;
    min-width: 100px;
    height: 46px;
    font-size: 15px;
  }
  #buttonCode,
  #buttonTime {
    height: 46px;
    line-height: 46px;
    font-size: 13px;
    margin: 0;
    padding: 0 12px;
    white-space: nowrap;
  }

  /* 按钮区域移动端 */
  .forget-pwd-button {
    padding: 12px 18px 24px;
    display: flex;
    gap: 10px;
    justify-content: center;
  }
  .cancel,
  .determine {
    flex: 1;
    max-width: 150px;
    height: 44px;
    line-height: 44px;
    font-size: 15px;
    margin: 0;
    padding: 0;
  }

  /* 页脚移动端 */
  .copyright {
    font-size: 11px;
    padding: 14px 16px;
  }

  /* 成功页移动端 */
  #resetSuccess .mobile-span {
    font-size: 14px;
    line-height: 2;
  }
}

/* ===== 平板端 (768px - 1023px) ===== */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .forget-pwd-card {
    max-width: 600px;
  }
  .forget-pwd-steps-box {
    padding: 24px 40px 18px;
  }
  .forget-pwd-form-box {
    padding: 32px 50px 14px;
  }
  .forget-pwd-button {
    padding: 14px 50px 24px;
  }
  .reset-input {
    width: 240px;
  }
  .reset-input-captcha {
    width: 100px;
  }
}
