.auth-page {
  min-height: 100vh;
  background: #eef1f5;
}

/* 登录页使用全站 header，略抬高顶栏高度以适配表单区 */
.auth-page .header-wrap .top-nav {
  min-height: 72px;
}

.auth-main {
  padding-top: 44px;
  padding-bottom: 46px;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(420px, 1.1fr) 260px minmax(340px, 0.72fr);
  min-height: 680px;
  background: #fff;
  border: 1px solid #e4e8ef;
  align-items: stretch;
}

.auth-visual {
  position: relative;
  background-image: linear-gradient(180deg, rgba(7, 17, 33, 0.5), rgba(7, 17, 33, 0.65)), url("../images/banner2.jpg");
  background-size: cover;
  background-position: center;
}

.auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(201, 155, 70, 0.15), transparent 45%);
}

.auth-visual-caption {
  position: absolute;
  left: 36px;
  right: 36px;
  bottom: 40px;
  z-index: 1;
  color: #fff;
}

.auth-visual-caption p {
  margin: 0;
  letter-spacing: 1.4px;
  font-size: 11px;
  opacity: 0.9;
}

.auth-visual-caption h1 {
  margin: 12px 0 0;
  font-size: 34px;
  line-height: 1.25;
}

.auth-visual-overlay {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 40px 28px 30px;
  background: #fff;
  border-right: 1px solid #e4e8ef;
}

.download-menu {
  width: 100%;
  display: grid;
  gap: 12px;
}

.download-menu a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #d8deea;
  background: #fff;
  color: #1f2430;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.download-menu a:hover {
  border-color: #c99b46;
  background: #fdf8ee;
}

.auth-panel {
  padding: 34px 36px 30px;
  background: #fff;
}

.auth-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid #e4e8ef;
  margin: 0 0 28px;
}

.auth-switch button {
  border: 0;
  background: transparent;
  height: 38px;
  font-size: 16px;
  color: #7c8697;
  cursor: pointer;
  position: relative;
  padding: 0 8px 12px;
}

.auth-switch button.active {
  color: #1f2430;
  font-weight: 600;
}

.auth-switch button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #c99b46;
}

.auth-switch button:focus-visible,
.download-menu a:focus-visible,
.auth-foot a:focus-visible {
  outline: 2px solid #c99b46;
  outline-offset: 2px;
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.auth-form h2 {
  margin: 0 0 20px;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 600;
  color: #1f2430;
}

.auth-sub {
  margin: 8px 0 20px;
  color: #7f8898;
  font-size: 13px;
}

.auth-form label {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
  color: #4f596c;
  margin-bottom: 16px;
}

.auth-label-hint {
  font-weight: 400;
  color: #8f97a8;
  font-size: 12px;
}

.auth-form input,
.auth-form select {
  width: 100%;
  margin-top: 9px;
  border: 1px solid #d8deea;
  background: #fff;
  height: 44px;
  padding: 0 14px;
  font-size: 14px;
  color: #1f2430;
}

.auth-form input:focus,
.auth-form select:focus {
  outline: none;
  border-color: #c99b46;
  box-shadow: 0 0 0 3px rgba(201, 155, 70, 0.12);
}

.code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 9px;
}

.code-row input {
  margin-top: 0;
}

.code-row .ghost {
  font-size: 13px;
  padding: 0 10px;
  white-space: nowrap;
}

.captcha-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 0;
  margin-top: 9px;
  align-items: stretch;
}

.captcha-row input {
  margin-top: 0;
  min-width: 0;
  border-right: 0;
}

.captcha-row img {
  width: 140px;
  height: 44px;
  border: 1px solid #d8deea;
  object-fit: contain;
  cursor: pointer;
  background: #fff;
  display: block;
}

.ghost {
  border: 1px solid #ccd3e0;
  background: #f7f9fc;
  color: #4f596c;
  height: 44px;
  padding: 0 12px;
  cursor: pointer;
}

.submit {
  width: 100%;
  margin-top: 6px;
  border: 0;
  height: 46px;
  background: linear-gradient(135deg, #cf8e35, #ad6f1f);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.auth-foot {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-foot-single {
  justify-content: center;
}

.auth-foot a {
  font-size: 12px;
  color: #7a8497;
  text-decoration: none;
}

.auth-foot a:hover {
  color: #8c5a15;
}

.auth-footer {
  background: transparent;
  border-top: 0;
}

.auth-footer .footer-inner {
  color: #8f98a8;
}

@media (max-width: 1080px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: 360px;
  }

  .auth-visual-overlay {
    border-right: 0;
    border-bottom: 1px solid #e4e8ef;
    padding: 22px 18px;
  }

  .download-menu {
    width: min(520px, 100%);
  }
}

@media (max-width: 720px) {
  .auth-main {
    padding-top: 14px;
    padding-bottom: 28px;
  }

  .auth-shell {
    min-height: 0;
  }

  .auth-visual,
  .auth-visual-overlay {
    display: none;
  }

  .auth-head-links {
    display: none;
  }

  .auth-panel {
    padding: 24px 18px 22px;
  }
}
