/* Auth pages — 登录 / 注册（蓝湖 8 注册 / 8-2 验证码登录） */

.auth-page {
  overflow-x: hidden;
}

.auth-main {
  position: relative;
  padding: 72px 0 96px;
  overflow: hidden;
}

.auth-main-bg {
  position: absolute;
  left: 50%;
  top: -143px;
  width: 1920px;
  height: 699px;
  max-width: none;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.auth-split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 665px;
  gap: 56px;
  align-items: start;
  padding: 0;
}

.auth-hero {
  padding: 12px 0 0;
}

.auth-hero::before {
  display: none;
}

.auth-hero h1 {
  margin: 0;
  font-size: 50px;
  font-weight: 900;
  line-height: 70px;
  color: #111;
}

.auth-hero p {
  margin: 24px 0 0;
  font-size: 16px;
  line-height: 28px;
  color: #111;
}

.auth-hero-art {
  display: block;
  width: min(547px, 100%);
  height: auto;
  margin-top: 48px;
  pointer-events: none;
  user-select: none;
}

.auth-hero-art.is-login {
  width: min(426px, 100%);
  margin-top: 36px;
}

.auth-card {
  width: 665px;
  max-width: 100%;
  margin-top: 8px;
  padding: 54px 55px 45px;
  background: #fff;
  border: 2px solid #111;
  border-radius: 10px;
  box-shadow: 0 13px 0 0 rgba(26, 15, 5, 0.14);
}

.auth-tabs {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin: 0 0 20px;
}

.auth-tab {
  position: relative;
  padding: 0 0 12px;
  border: 0;
  background: none;
  color: #666;
  font-size: 16px;
  line-height: 28px;
  cursor: pointer;
}

.auth-tab.is-active {
  color: #f33c38;
  font-size: 18px;
  font-weight: 800;
}

.auth-tab.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 36px;
  height: 4px;
  margin-left: -18px;
  background: #f33c38;
}

.auth-form {
  display: grid;
  gap: 27px;
}

.auth-form[hidden] {
  display: none;
}

.auth-field {
  position: relative;
  display: block;
}

.auth-field input {
  display: block;
  width: 100%;
  height: 60px;
  padding: 0 15px;
  border: 0;
  border-radius: 0;
  background: #f3f3f3;
  color: #111;
  font-size: 16px;
  line-height: 70px;
}

.auth-field input:focus {
  outline: 1px solid #f33c38;
  outline-offset: -1px;
}

.auth-field-code input {
  padding-right: 180px;
}

.auth-ph {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #111;
  font-size: 16px;
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
}

.auth-ph em {
  margin-right: 2px;
  color: #ff413d;
  font-style: normal;
  font-weight: 400;
}

.auth-field input:focus + .auth-ph,
.auth-field input:not(:placeholder-shown) + .auth-ph {
  display: none;
}

.auth-code-btn {
  position: absolute;
  top: 0;
  right: 16px;
  height: 60px;
  padding: 0;
  border: 0;
  background: none;
  color: #f33c38;
  font-size: 16px;
  line-height: 70px;
  white-space: nowrap;
  cursor: pointer;
}

.auth-code-btn:disabled {
  color: #b0b0b0;
  cursor: default;
}

.auth-agree {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: #333;
  cursor: default;
}

.auth-agree span {
  cursor: default;
}

.auth-agree input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1px solid #b2b2b2;
  background: #fff;
  cursor: pointer;
}

.auth-agree input[type="checkbox"]:checked {
  border-color: #f33c38;
  background: #f33c38;
  box-shadow: inset 0 0 0 3px #fff;
}

.auth-agree a {
  color: #ff413d;
  font-weight: 700;
}

.auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 318px;
  max-width: 100%;
  height: 54px;
  margin: 21px auto 0;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff6a5f, #ff413d);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(255, 65, 61, 0.28);
}

.auth-submit:disabled {
  opacity: 0.65;
  cursor: default;
}

.auth-legal {
  margin: 20px 0 0;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: #333;
}

.auth-legal a {
  color: #ff413d;
}

.auth-card .form-error {
  margin-top: 16px;
}

.auth-tip {
  margin: 28px 0 0;
  text-align: center;
  font-size: 16px;
  line-height: 28px;
  color: #b0b0b0;
}

.auth-tip a {
  color: #f33c38;
  font-weight: 400;
}

.auth-dialog {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 17, 17, 0.45);
}

.auth-dialog[hidden] {
  display: none;
}

.auth-dialog-card {
  width: min(420px, 100%);
  padding: 28px 24px 22px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.auth-dialog-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
}

.auth-dialog-card p {
  margin: 0 0 18px;
  color: #555;
  font-size: 14px;
  line-height: 1.7;
}

.auth-dialog-captcha {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 12px;
  align-items: stretch;
}

.auth-dialog-captcha input {
  width: 100%;
  height: 48px;
  padding: 0 12px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #f8f8f8;
}

.auth-dialog-captcha img {
  width: 120px;
  height: 48px;
  object-fit: contain;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #f8f8f8;
  cursor: pointer;
}

.auth-dialog-refresh {
  margin: 10px 0 0;
  border: 0;
  background: none;
  color: var(--red-2);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.auth-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.auth-dialog-actions button {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.auth-dialog-cancel {
  border: 1px solid #ddd;
  background: #fff;
  color: #111;
}

.auth-dialog-ok {
  border: 0;
  background: var(--red);
  color: #fff;
}

@media (max-width: 1100px) {
  .auth-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .auth-card {
    width: 100%;
    justify-self: center;
  }

  .auth-hero h1 {
    font-size: 36px;
    line-height: 1.25;
  }

  .auth-hero-art,
  .auth-hero-art.is-login {
    width: min(360px, 100%);
    margin-top: 24px;
  }
}

@media (max-width: 720px) {
  .auth-main {
    padding: 36px 0 64px;
  }

  .auth-card {
    padding: 32px 18px 28px;
  }

  .auth-hero h1 {
    font-size: 28px;
  }

  .auth-field-code input {
    padding-right: 15px;
  }

  .auth-code-btn {
    position: static;
    display: block;
    height: auto;
    margin: 8px 0 0 auto;
    line-height: 1.4;
    font-size: 14px;
  }

  .auth-submit {
    width: 100%;
  }

  .auth-agree,
  .auth-legal,
  .auth-tip {
    font-size: 14px;
  }
}
