* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: "Alibaba PuHuiTi", "Microsoft YaHei", "PingFang SC", sans-serif;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #F1F0F0;
}

/* 设计稿按 1920×1080 固定布局，由 JS 按视口比例整体缩放，任意缩放下比例不变 */
.page {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
  transform-origin: top left;
  overflow: hidden;
}

/* ============ 左上角 Logo ============ */
.logo {
  position: absolute;
  top: 20px;
  left: 90px;
  z-index: 10;
}

.logo img {
  display: block;
  width: 320px;
  height: auto;
}

/* ============ 左下角装饰图（1022×947，贴左下） ============ */
.side {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 5;
  pointer-events: none;
}

.side img {
  display: block;
  width: 1022px;
  height: 947px;
}

/* ============ 登录卡片 ============ */
.login-card {
  position: absolute;
  top: 50%;
  right: 170px;
  transform: translateY(-50%) scale(1.15);
  transform-origin: right center;
  width: 540px;
  background: #ffffff;
  border-radius: 12px;
  padding: 45px 50px 35px;
  box-shadow: 0 6px 40px rgba(0, 0, 0, 0.08);
  z-index: 20;
  box-sizing: border-box;
}

.login-title {
  text-align: center;
  margin-bottom: 35px;
}

.login-title h1 {
  font-weight: bold;
  font-size: 46px;
  color: #333333;
  line-height: 64px;
  letter-spacing: 2px;
}

.login-tabs {
  display: flex;
  gap: 50px;
  margin-bottom: 28px;
}

.login-tab {
  font-weight: 400;
  font-size: 24px;
  color: #777777;
  line-height: 34px;
  cursor: pointer;
  padding-bottom: 10px;
  position: relative;
  background: none;
  border: none;
  outline: none;
  font-weight: 500;
  transition: color 0.3s;
}



.login-tab.active {
  font-weight: 500;
  font-size: 26px;
  color: #970F1B;
}

.login-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background-color: #970F1B;
  border-radius: 2px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group1 {
  position: relative;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  height: 48px;
  background: #fff;
  transition: border-color 0.3s;
}

.form-group1:focus-within {
  border-color: #970F1B;
}

.form-icon {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0b0b0;
}

.form-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.form-group1 input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  color: #333;
  background: transparent;
  height: 100%;
  min-width: 0;
}

.form-group1 input::placeholder {
  color: #bbb;
}

.captcha-group {
  position: relative;
}

.captcha-img {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  height: 34px;
  cursor: pointer;
  user-select: none;
}

.captcha-canvas {
  height: 34px;
  border-radius: 4px;
  cursor: pointer;
}

.agreement {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  font-size: 13px;
  color: #666;
}

.custom-checkbox {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 2px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}

.custom-checkbox.checked {
  background-color: #970F1B;
  border-color: #970F1B;
}

.custom-checkbox.checked::after {
  content: '✓';
  color: #fff;
  font-size: 11px;
  font-weight: bold;
}

.agreement a {
  color: #970F1B;
  text-decoration: none;
}

.agreement a:hover {
  text-decoration: underline;
}

.login-btn {
  width: 100%;
  height: 54px;
  background-color: #970F1B;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 24px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 4px;
  padding-left: 4px;
  transition: background-color 0.3s, transform 0.1s;
  margin-top: 6px;
}

.login-btn:hover {
  background-color: #b0121f;
}

.login-btn:active {
  transform: scale(0.99);
}

.login-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  font-size: 13px;
  color: #999;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.remember-checkbox {
  width: 14px;
  height: 14px;
  border: 1px solid #ccc;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.remember-checkbox.checked {
  background-color: #970F1B;
  border-color: #970F1B;
}

.remember-checkbox.checked::after {
  content: '✓';
  color: #fff;
  font-size: 9px;
}

.footer-links a {
  color: #999;
  text-decoration: none;
  font-size: 13px;
}

.footer-links a:hover {
  color: #970F1B;
}

.footer-links span {
  margin: 0 6px;
  color: #ccc;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sms-code-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid #970F1B;
  color: #970F1B;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s;
}

.sms-code-btn:hover {
  background-color: #970F1B;
  color: #fff;
}

.sms-code-btn:disabled {
  border-color: #ccc;
  color: #ccc;
  cursor: not-allowed;
  background: none;
}
