/*
 * Account-security visual refresh for the live uni-app markup.
 *
 * The password route chunks render .username/.header/.content/.item/.tex
 * and .btn. The :has() guard keeps this override away from the unrelated
 * username/profile route while retaining the existing route and form logic.
 */

.username:has(.text_forget_password_notice) {
  box-sizing: border-box;
  min-height: 100vh;
  padding: 0 16px 32px;
  overflow-x: hidden;
  background: #f5f7fa !important;
  color: #263238;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.username:has(.text_forget_password_notice) *,
.username:has(.text_forget_password_notice) *::before,
.username:has(.text_forget_password_notice) *::after {
  box-sizing: border-box;
}

.username:has(.text_forget_password_notice) .u-navbar,
.username:has(.text_forget_password_notice) .u-navbar-fixed {
  background: #fff !important;
  border-bottom: 1px solid #e7edf2 !important;
  box-shadow: none !important;
}

.username:has(.text_forget_password_notice) .u-navbar-fixed {
  color: #1f2d3d;
}

.username:has(.text_forget_password_notice) > .header {
  width: 100%;
  max-width: 640px;
  margin: 16px auto 0;
  padding: 2px 4px 10px;
  background: transparent !important;
  color: #1f2d3d;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.username:has(.text_forget_password_notice) > .content {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 18px 18px;
  border: 1px solid #e1e8ef;
  border-radius: 14px;
  background: #fff !important;
  box-shadow: 0 6px 18px rgba(38, 50, 56, 0.06);
}

.username:has(.text_forget_password_notice) > .content > .item {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  width: 100%;
  margin: 0 0 16px;
  padding: 0 !important;
}

.username:has(.text_forget_password_notice) > .content > .item:last-of-type {
  margin-bottom: 0;
}

.username:has(.text_forget_password_notice) > .content > .item > .tex {
  display: block;
  width: auto !important;
  color: #506174 !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.username:has(.text_forget_password_notice) > .content > .item > .u-input,
.username:has(.text_forget_password_notice) > .content > .item .u-input {
  width: 100%;
  min-height: 48px;
  padding: 0 12px !important;
  border: 1px solid #d9e2ec !important;
  border-radius: 10px;
  background: #f8fafc !important;
  color: #1f2d3d;
}

.username:has(.text_forget_password_notice) > .content > .item .u-input:focus-within {
  border-color: #ff6b55 !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 85, 0.14) !important;
}

.username:has(.text_forget_password_notice) > .content > .item .u-input__input,
.username:has(.text_forget_password_notice) > .content > .item input,
.username:has(.text_forget_password_notice) > .content > .item textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 !important;
  border: 0 !important;
  outline: 0;
  background: transparent !important;
  color: #1f2d3d;
  font: inherit;
  line-height: 46px;
}

.username:has(.text_forget_password_notice) > .content > .item input::placeholder,
.username:has(.text_forget_password_notice) > .content > .item textarea::placeholder {
  color: #a5b2c2;
}

.username:has(.text_forget_password_notice) > .content > .text_forget_password_notice {
  margin: 4px 0 20px !important;
  padding: 12px 14px;
  border: 1px solid #ffd9d1;
  border-radius: 10px;
  background: #fff7f4 !important;
  color: #657486;
  font-size: 13px;
  line-height: 1.6;
}

.username:has(.text_forget_password_notice) > .content > .btn {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0 16px;
  border: 0 !important;
  border-radius: 10px;
  appearance: none;
  -webkit-appearance: none;
  background: #ff6b55 !important;
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 48px;
  text-align: center;
  box-shadow: 0 6px 14px rgba(255, 107, 85, 0.18);
}

.username:has(.text_forget_password_notice) > .content > .btn:active {
  background: #e85c49 !important;
  transform: translateY(1px);
}

.username:has(.text_forget_password_notice) > .content > .btn:focus-visible {
  outline: 3px solid rgba(255, 107, 85, 0.28);
  outline-offset: 2px;
}

.username:has(.text_forget_password_notice).sgc-pay-pass-initial > .content > .btn[disabled] {
  cursor: wait;
  opacity: 0.68;
  box-shadow: none;
}

.username:has(.text_forget_password_notice).sgc-pay-pass-initial > .content > .item .uni-input-input::placeholder {
  color: transparent !important;
}

.username:has(.text_forget_password_notice) > .content > .sgc-security-feedback {
  margin: 4px 0 12px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #657486;
  font-size: 13px;
  line-height: 1.5;
}

.username:has(.text_forget_password_notice) > .content > .sgc-security-feedback.is-error {
  border: 1px solid #ffd1c8;
  background: #fff7f4;
  color: #b44f43;
}

.username:has(.text_forget_password_notice) > .content > .sgc-security-feedback.is-pending {
  border: 1px solid #e1e8ef;
  background: #f8fafc;
}

.username:has(.text_forget_password_notice) > .content > .sgc-security-feedback.is-success {
  border: 1px solid #cce8d8;
  background: #f3fbf6;
  color: #31734b;
}

@media (max-width: 430px) {
  .username:has(.text_forget_password_notice) {
    padding-right: 12px;
    padding-left: 12px;
  }

  .username:has(.text_forget_password_notice) > .header {
    margin-top: 12px;
    padding: 2px 4px 9px;
    font-size: 17px;
  }

  .username:has(.text_forget_password_notice) > .content {
    padding: 18px 14px 16px;
    border-radius: 12px;
  }

  .username:has(.text_forget_password_notice) > .content > .item {
    margin-bottom: 14px;
  }
}
