/* ===== 页面需要严格一屏 ===== */
html,
body {
  height: 100%;
  margin: 0;
}

body {
  height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

/* ===== 头部（徽标+品牌+红色标语） ===== */
.simple-header {
  background: #fff;
  border-bottom: 1px solid #f0f2f5;
  flex: 0 0 auto;
  height: 120px;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
}

.simple-header .header-inner {
  height: 80px;
  width: 497px;
  display: flex;
  align-items: center;
  margin-left: 320px;
  margin-top: 17px;
  max-width: calc(100% - 40px);
}

.brand {
  display: flex;
  align-items: center;
}

.brand-emblem {
  height: 77px;
  width: 80px;
  object-fit: contain;
  margin-right: 12px;
}

.brand-name {
  font-size: 40px;
  font-weight: 500;
  color: #1E295F;
  line-height: 1;
  font-style: regular;
}

.brand-slogan {
  margin-left: 32px;
  color: #e43131;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 2px;
  white-space: nowrap;
}

/* ===== 中段内容：背景 + 登录卡片 ===== */
.login-content {
  flex: 1 0 auto;
  background: url('../images/f81683475cc167f734c782e8601d3c83.png') no-repeat center center / cover;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* 控制卡片靠右，与视觉稿一致 */
.login-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  padding: 0 20px;
  box-sizing: border-box;
}

/* 登录卡片主体（参考效果图尺寸样式） */
.login-panel {
  margin-top: 79px;
  margin-bottom: 43px;
  width: 100%;
  max-width: 700px;
  height: 600px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(25, 67, 131, 0.12);
  padding: 24px 28px 28px;
  border: 1px solid rgba(25, 67, 131, 0.08);
}

.login-title {
  font-style: bold;
  font-size: 28px;
  color: #100F11;
  font-weight: 700;
  margin: 4px 0 15px;
}

.login-subtitle {
  width: 150px;
  height: 25px;
  font-size: 14px;
  color: #757575;
  margin: 0 0 25px;
  font-style: regular;

}

.form-row {
  margin-bottom: 14px;
  position: relative;
}

.login-input {
  width: 100%;
  height: 59px;
  border: 1px solid #d9e0ee;
  border-radius: 8px;
  padding: 0 44px 0 14px;
  color: #232323;
  font-size: 18px;
  outline: none;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}

.login-input::placeholder {
  color: #a3afc2;
}

.login-input:focus {
  border-color: #367AFF;
  box-shadow: 0 0 0 3px rgba(143, 169, 247, .25);
}

/* 密码显示/隐藏按钮（右侧小眼睛图标） */
.form-row-pwd {
  position: relative;
}

.toggle-pwd {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  cursor: pointer;
  background: transparent url('../images/eye-off.png') no-repeat center / 18px 18px;
  outline: none;
}

/* 去除旧的伪元素眼睛图形 */
.toggle-pwd::before,
.toggle-pwd::after {
  content: none !important;
}

/* 点击/聚焦时不改变背景和边框 */
.toggle-pwd:focus,
.toggle-pwd:active {
  outline: none;
  box-shadow: none;
  background-color: transparent;
  border: none;
}

/* 错误提示行 */
.form-error {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #EA4626;
  font-size: 16px;
  margin: 24px 0 10px;
}

.error-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  object-fit: contain;
}

/* 按钮样式 */
.btn-primary.login-btn {
  margin-top: 15px;
  width: 100%;
  height: 65px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  /*background: #ABBDF3;*/
  color: #fff;
  font-size: 22px;
  font-weight: 500;
  box-shadow: 0 6px 16px rgba(88, 120, 214, 0.28);
}

.btn-primary.login-btn:hover {
  filter: brightness(1.02);
}

/* 分隔线 */
.login-divider {
  position: relative;
  text-align: center;
  margin: 14px 0;
  color: #6E6E6E;
  font-size: 16px;
}

.login-divider::before,
.login-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 46%;
  height: 1px;
  background: #D9D9D9;
}

.login-divider::before {
  left: 0;
}

.login-divider::after {
  right: 0;
}

/* 次级按钮（手机号登录） */
.btn-secondary.phone-login-btn {
  /* 居中显示 */
  margin-top: 12px;
  margin-left: 164px;
  width: 320px;
  height: 54px;
  border-radius: 14px;
  cursor: pointer;
  border: 1px solid #E2E6EF;
  background: #fff;
  color: #232323;
  font-size: 18px;
  -webkit-tap-highlight-color: transparent;
}


/* 短信验证码行 */
.form-sms .btn-sms {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  height: 32px;
  min-width: 94px;
  padding: 0 12px;
  border-radius: 6px;

  color: #667085;
  background: #ffffff;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(45, 108, 223, .10);
}

/* 图形验证码行 */
.form-captcha .captcha-img {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  height: 36px;
  width: 120px;
  object-fit: cover;
  border-radius: 6px;
  /* border: 1px solid #e6ecf6; */
  background: #fff;
}


/* 点击后不要加背景颜色和边框 */
.btn-secondary.phone-login-btn:focus,
.btn-secondary.phone-login-btn:active {
  background: #fff;
  border-color: #d9e0ee;
  outline: none;
  box-shadow: none;
}

.phone-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: -3px;
  margin-right: 6px;
}

/* 底部附加链接 */
.login-extra {
  text-align: center;
  font-size: 18px;
  color: #7B7B7B;
  margin-top: 20px;

}

.link-register {
  color: #E60C12;
  text-decoration: none;
}

.link-register:hover {
  text-decoration: underline;
}

/* ===== 页脚 ===== */
#footer-layout {
  flex: 0 0 auto;
}

/* 自适应 */
/* 小屏幕笔记本 (1366px - 1440px) */
@media (max-width: 1440px) {
  .simple-header .header-inner {
    margin-left: 40px;
  }

  .login-wrap {
    justify-content: center;
  }

  .login-panel {
    max-width: 600px;
  }
}

/* 平板和小笔记本 (768px - 1024px) */
@media (max-width: 1024px) {
  .simple-header {
    height: 100px;
  }

  .simple-header .header-inner {
    height: 70px;
    width: 100%;
    margin-left: 20px;
    margin-top: 10px;
  }

  .brand-emblem {
    height: 60px;
    width: 60px;
  }

  .brand-name {
    font-size: 28px;
  }

  .brand-slogan {
    margin-left: 20px;
    font-size: 16px;
  }

  .login-panel {
    max-width: 550px;
    height: auto;
    padding: 20px 24px;
  }

  .login-title {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .login-subtitle {
    font-size: 13px;
    margin-bottom: 20px;
  }

  .form-row {
    margin-bottom: 12px;
  }

  .login-input {
    height: 50px;
    font-size: 16px;
  }

  .btn-primary.login-btn {
    height: 50px;
    font-size: 18px;
    margin-top: 12px;
  }

  .btn-secondary.phone-login-btn {
    width: 100%;
    margin-left: 0;
    height: 48px;
    font-size: 16px;
  }
}

/* 小屏幕手机 (480px - 768px) */
@media (max-width: 768px) {
  .simple-header {
    height: 80px;
  }

  .simple-header .header-inner {
    height: 60px;
    width: 100%;
    margin-left: 15px;
    margin-top: 5px;
  }

  .brand-emblem {
    height: 50px;
    width: 50px;
    margin-right: 8px;
  }

  .brand-name {
    font-size: 22px;
  }

  .brand-slogan {
    margin-left: 15px;
    font-size: 14px;
    letter-spacing: 1px;
  }

  .login-panel {
    max-width: 90%;
    width: 100%;
    height: auto;
    padding: 20px 20px;
  }

  .login-title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .login-subtitle {
    font-size: 12px;
    margin-bottom: 15px;
  }

  .form-row {
    margin-bottom: 10px;
  }

  .login-input {
    height: 44px;
    font-size: 14px;
    padding: 0 40px 0 12px;
  }

  .btn-primary.login-btn {
    height: 44px;
    font-size: 16px;
    margin-top: 10px;
  }

  .btn-secondary.phone-login-btn {
    width: 100%;
    margin-left: 0;
    height: 44px;
    font-size: 14px;
  }

  .login-extra {
    font-size: 14px;
    margin-top: 15px;
  }
}

/* 超小屏幕手机 (< 480px) */
@media (max-width: 480px) {
  .simple-header {
    height: 70px;
  }

  .simple-header .header-inner {
    height: 50px;
    width: 100%;
    margin-left: 10px;
    margin-top: 5px;
  }

  .brand-emblem {
    height: 40px;
    width: 40px;
    margin-right: 6px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-slogan {
    margin-left: 10px;
    font-size: 12px;
    letter-spacing: 0.5px;
  }

  .login-panel {
    max-width: 95%;
    width: 100%;
    height: auto;
    padding: 15px 15px;
  }

  .login-title {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .login-subtitle {
    font-size: 11px;
    margin-bottom: 12px;
  }

  .form-row {
    margin-bottom: 8px;
  }

  .login-input {
    height: 40px;
    font-size: 13px;
    padding: 0 36px 0 10px;
  }

  .btn-primary.login-btn {
    height: 40px;
    font-size: 14px;
    margin-top: 8px;
  }

  .btn-secondary.phone-login-btn {
    width: 100%;
    margin-left: 0;
    height: 40px;
    font-size: 12px;
  }

  .login-extra {
    font-size: 12px;
    margin-top: 12px;
  }
}