/**
 * 易小钱 · 登录页样式
 * 在 sesame.css 之上重写：固定 16px 基准（独立于 index.html 的全局 rem 脚本），
 * 修复「随 rem 放大 / 按钮右侧溢出 / 无卡片无品牌头」的样式错乱。
 * 忠实旧站 login/index 的 DOM 结构：fieldset.form-list-1.zc-form-list-1 > form > .tbox / .btn-1。
 */

/* —— 基准：登录子树固定 16px，sesame 的 em 体系据此稳定计算，不再被全局 rem 脚本撑大 —— */
.yxq-login {
  box-sizing: border-box;
  min-height: 100vh;
  font-size: 16px;
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: #1f2d3d;
  /* 顶部一抹品牌绿光晕自然融入白底，纵向层次干净不喧宾夺主 */
  background:
    radial-gradient(125% 58% at 50% -12%, rgba(89, 192, 121, 0.2) 0%, rgba(89, 192, 121, 0) 62%),
    linear-gradient(180deg, #f1fbf5 0%, #f7f8fa 44%);
  -webkit-tap-highlight-color: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.yxq-login *,
.yxq-login *::before,
.yxq-login *::after {
  box-sizing: border-box;
}

/* —— 顶部品牌区：纯字标 hero，一条品牌色短线收口，克制不花哨 —— */
.yxq-login__brand {
  width: 100%;
  text-align: center;
  padding: 72px 0 34px;
}
.yxq-login__name {
  display: inline-block;
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  color: #2fa25a;
  letter-spacing: 4px;
  line-height: 1.15;
}
.yxq-login__name::after {
  content: '';
  display: block;
  width: 32px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #59c079, #8fd6a6);
}

/* —— 表单卡片 —— */
.yxq-login main {
  position: relative;
  display: block;
  width: 100%;
  max-width: 420px;
  padding: 0 22px 40px;
}
.yxq-login .form-list-1.zc-form-list-1 {
  margin: 0;
  padding: 26px 22px 30px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 44px -14px rgba(31, 45, 61, 0.16);
}
.yxq-login legend {
  display: none;
}

/* 卡片内步骤标题 / 副标题 */
.yxq-login__title {
  font-size: 21px;
  font-weight: 600;
  color: #1f2d3d;
  padding: 2px 2px;
  letter-spacing: 0.5px;
}
.yxq-login__sub {
  font-size: 13px;
  color: #9aa0a6;
  padding: 8px 2px 2px;
  letter-spacing: 0.5px;
}

/* —— 输入行 —— */
.yxq-login .form-list-1 .tbox {
  display: flex;
  align-items: center;
  height: 54px;
  margin: 18px 0 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #eef0f2;
  border-radius: 0;
  background: #fff;
  overflow: visible;
  transition: border-color 0.2s ease;
}
/* 聚焦时下划线亮起品牌绿，给出清晰的输入反馈 */
.yxq-login .form-list-1 .tbox:focus-within {
  border-bottom-color: #59c079;
}
.yxq-login .form-list-1 .tbox.error {
  border-bottom-color: #fa5151;
}
.yxq-login .form-list-1 h6 {
  flex-shrink: 0;
  margin: 0 12px 0 0;
}
.yxq-login .form-list-1 h6 span {
  display: block;
  height: auto;
  line-height: 1.4;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
}
.yxq-login .form-list-1 h6 span em {
  font-style: normal;
}
.yxq-login .form-list-1 input[type='tel'],
.yxq-login .form-list-1 input[type='text'],
.yxq-login .form-list-1 input[type='password'],
.yxq-login .form-list-1 input[type='number'] {
  flex: 1;
  width: 1%;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  font-size: 16px;
  color: #1f2d3d;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}
.yxq-login .form-list-1 input::placeholder {
  color: #c2c6cc;
}

/* —— 错误 / 提示文案 —— */
.yxq-login .e-msg {
  min-height: 18px;
  margin: 6px 0 0;
  padding: 0 2px;
  font-size: 13px;
  line-height: 1.4;
  color: #fa5151;
  text-align: left;
}

/* —— 主按钮：固定高度、卡片内满宽、圆角、绝不溢出 —— */
.yxq-login .btn-1.zc-btn-1 {
  display: block;
  width: 100%;
  height: 50px;
  margin: 28px 0 0;
  padding: 0;
  position: static;
  flex: none;
  border: 0;
  border-radius: 25px;
  background: linear-gradient(90deg, #59c079, #47b06b);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 2px;
  line-height: 50px;
  text-align: center;
  box-shadow: 0 12px 22px -8px rgba(71, 176, 107, 0.55);
  cursor: pointer;
  transition:
    box-shadow 0.2s ease,
    transform 0.1s ease,
    opacity 0.2s ease;
}
.yxq-login .btn-1.zc-btn-1:active {
  opacity: 0.94;
  transform: translateY(1px);
  box-shadow: 0 6px 14px -6px rgba(71, 176, 107, 0.5);
}
.yxq-login .btn-1.zc-btn-1.disabled {
  opacity: 0.6;
  pointer-events: none;
  box-shadow: none;
}

/* —— 忘记密码 / 返回 —— */
.yxq-login .forget-password {
  margin: 16px 0 0;
  text-align: right;
}
.yxq-login .forget-password a {
  font-size: 14px;
  color: #59c079;
  line-height: 1.4;
  text-decoration: none;
}
.yxq-login__back {
  display: inline-block;
  margin: 14px 2px 0;
  font-size: 14px;
  color: #9aa0a6;
  text-decoration: none;
}

/* 旧 #header 顶栏不再需要（品牌区 + 卡片标题已承载语义与返回） */
.yxq-login #header {
  display: none !important;
}
