/* 登录/注册：紧凑双栏，尽量一屏 */

/* 登录/注册一屏：允许验证码弹层（fixed）完整显示，勿用 overflow:hidden 裁切 body */
body.planet-home:has(.auth-web-split) {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 弹层挂在 body 时仍可能受祖先影响；确保 captcha 宿主可溢出 */
body.planet-home:has(.auth-web-split) .auth-page {
  overflow: visible;
}

body.planet-home:has(.auth-web-split) .planet-nav {
  flex-shrink: 0;
}

body.planet-home:has(.auth-web-split) .planet-footer {
  flex-shrink: 0;
  padding: 14px 0 16px;
  font-size: 12px;
}

body.planet-home:has(.auth-web-split) .planet-footer .brandf {
  font-size: 13px;
  margin-bottom: 4px;
}

body.planet-home:has(.auth-web-split) .auth-page {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
}

body.planet-home:has(.auth-web-split) .auth-page > .wrap {
  padding: 12px var(--me-gutter, 20px) 16px;
  width: 100%;
}

.auth-web-split {
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
  gap: clamp(28px, 3.5vw, 48px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  align-items: center;
}

.auth-web-form,
.auth-web-split .auth-panel {
  max-width: 500px;
}

.auth-web-split .auth-copy h1 {
  font-size: clamp(26px, 3vw, 36px);
  margin: 0 0 8px;
}

.auth-web-split .auth-copy .lead {
  font-size: 15px;
  line-height: 1.5;
  max-width: none;
}

.auth-web-split .auth-panel {
  margin-top: 16px !important;
  padding: 24px 26px 20px;
}

.auth-web-split .auth-field {
  margin-bottom: 12px;
}

.auth-web-split .auth-field label {
  margin-bottom: 6px;
  font-size: 13px;
}

.auth-web-split .auth-field input {
  padding: 11px 13px;
  font-size: 15px;
  border-radius: 9px;
}

.auth-web-split .auth-captcha {
  margin-bottom: 12px;
}

.auth-web-split .auth-submit {
  margin-top: 4px;
  padding: 12px 20px;
  font-size: 15px;
}

.auth-web-split .auth-foot {
  margin: 14px 0 0;
}

.auth-web-split .auth-visual img {
  /* 横向放大；纵向用 vh 封顶，保证一屏 */
  width: min(100%, 300px);
  max-height: min(42vh, 400px);
  object-fit: contain;
}

.auth-web-split .auth-visual .cap-name {
  margin: 12px 0 4px;
  font-size: 15px;
}

.auth-web-split .auth-visual .cap-line {
  font-size: 13px;
  max-width: 240px;
}

.auth-web-steps {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 12px;
  color: #93a3a8;
  font-weight: 600;
}

.auth-web-steps li.is-on {
  color: #1f80c4;
}

.auth-web-steps li.is-done {
  color: #5285ad;
}

.auth-web-code {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.auth-web-code input {
  flex: 1;
  min-width: 0;
}

.auth-web-code-btn {
  flex-shrink: 0;
  height: auto;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #e4ecec;
  border-radius: 9px;
  background: #fff;
  color: #2f4650;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.auth-web-code-btn:hover:not(:disabled) {
  border-color: #2f9ede;
  color: #1f80c4;
}

.auth-web-code-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.auth-web-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-web-row .auth-submit {
  margin-top: 0;
}

.auth-web-row .pill.line::before {
  content: none;
}

.auth-web-form .auth-step {
  display: none;
}

.auth-web-form .auth-step.is-on {
  display: block;
}

.auth-web-split .auth-face-frame {
  margin: 8px 0 12px;
  min-height: 88px;
  padding: 12px;
}

.auth-web-split .auth-face-ring {
  width: 56px;
  height: 56px;
}

.auth-web-split .auth-face-qr {
  margin-top: 0;
  background: #fff;
}

.auth-web-split .auth-face-id-name {
  font-size: 18px;
}

.auth-web-split .auth-face-id-no {
  font-size: 13px;
}

.auth-web-split .auth-consent {
  margin: 8px 0 12px;
  font-size: 12px;
}

@media (max-width: 960px) {
  body.planet-home:has(.auth-web-split) {
    height: auto;
    overflow: auto;
  }

  .auth-web-form,
  .auth-web-split .auth-panel {
    max-width: none;
  }

  .auth-web-split {
    max-width: 440px;
    grid-template-columns: 1fr;
  }

  .auth-web-split .auth-visual {
    order: -1;
    max-width: 160px;
    margin: 0 auto;
  }

  .auth-web-split .auth-visual .cap-line {
    display: none;
  }
}

@media (max-height: 860px) and (min-width: 961px) {
  .auth-web-split .auth-visual .cap-line {
    display: none;
  }

  .auth-web-split .auth-visual img {
    width: min(100%, 260px);
    max-height: 36vh;
  }

  .auth-web-split .auth-panel {
    padding: 20px 22px 16px;
  }
}

@media (max-height: 740px) and (min-width: 961px) {
  .auth-web-split .auth-visual img {
    width: min(100%, 220px);
    max-height: 30vh;
  }

  .auth-web-split .auth-copy h1 {
    font-size: 26px;
  }

  .auth-web-split .auth-copy .lead {
    font-size: 14px;
  }
}

.auth-captcha-trigger {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 10px 14px;
  border: 1px solid #e4ecec;
  border-radius: 10px;
  background: #fff;
  color: #2f4650;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.auth-captcha-trigger:hover:not(:disabled) {
  border-color: #2f9ede;
  color: #1f80c4;
}

.auth-captcha-trigger:disabled {
  opacity: 0.7;
  cursor: default;
}

.auth-phone {
  display: flex;
  align-items: stretch;
  border: 1px solid #e4ecec;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-phone:focus-within {
  border-color: #2f9ede;
  box-shadow: 0 0 0 3px #e6f3fd;
}

.auth-phone-prefix {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 0 12px 0 14px;
  border-right: 1px solid #e4ecec;
  background: #fafcfd;
  color: #2f4650;
  font-size: 14px;
  font-weight: 600;
  user-select: none;
}

.auth-phone-flag {
  display: block;
  width: 22px;
  height: 15px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgb(15 23 42 / 0.08);
}

.auth-phone-cc {
  letter-spacing: 0.02em;
}

.auth-phone input {
  flex: 1;
  min-width: 0;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent;
}

.auth-web-split .auth-phone input {
  padding: 11px 13px;
  font-size: 15px;
}

/* 弹窗验证：页面占位隐藏；真实 SDK 宿主在 body#aliyun-captcha-host */
.auth-captcha-popup-host {
  display: none !important;
}

#aliyun-captcha-host {
  /* iframe 全屏层由 JS 控制；宿主本身不占布局 */
  position: static;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: visible;
}

/* 登录/注册：顶栏仅品牌 */
.auth-nav-bare .planet-nav .nav-actions {
  display: none !important;
}
