/* 星屿赛车 · 登录 / 注册 */
body.auth-page {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 126, 54, 0.14), transparent 34%),
    radial-gradient(circle at 86% 84%, rgba(53, 226, 201, 0.10), transparent 36%),
    linear-gradient(150deg, #080a11 0%, #101321 48%, #0a0c13 100%);
}

body.auth-page::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 72%);
}

.auth-glow {
  position: fixed;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.25;
}

.auth-glow-a { top: -240px; left: -160px; background: #ff7a2f; }
.auth-glow-b { right: -180px; bottom: -220px; background: #1fc7c4; opacity: 0.16; }

.auth-top {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 28px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.04em;
}

.auth-brand img {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 4px 14px rgba(255, 126, 47, 0.4));
}

.auth-brand span { display: flex; flex-direction: column; line-height: 1.05; }

.auth-brand small {
  margin-top: 4px;
  color: var(--faint);
  font-size: 8px;
  letter-spacing: 0.24em;
}

.auth-top-links {
  display: flex;
  gap: 22px;
  font-size: 11.5px;
  color: var(--muted);
}

.auth-top-links a:hover { color: var(--orange); }

.auth-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 460px);
  align-items: center;
  gap: clamp(36px, 7vw, 96px);
  max-width: 1180px;
  min-height: calc(100vh - 150px);
  margin: 0 auto;
  padding: 30px 28px 70px;
}

.auth-kicker {
  color: var(--orange);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.24em;
}

.auth-intro h1 {
  margin: 14px 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  background: linear-gradient(105deg, #fff4df 8%, #ffd19a 46%, #ff9b51 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-intro > p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.auth-intro code {
  padding: 1px 5px;
  border: 1px solid rgba(88, 243, 255, 0.15);
  border-radius: 5px;
  background: rgba(88, 243, 255, 0.05);
  color: rgba(154, 246, 255, 0.8);
  font-size: 11px;
}

.auth-features {
  display: grid;
  gap: 13px;
  margin: 30px 0 34px;
  padding: 0;
  list-style: none;
  max-width: 520px;
}

.auth-features li {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.auth-features b {
  width: 26px;
  color: rgba(255, 159, 67, 0.62);
  font-size: 9px;
  font-family: "Cascadia Mono", Consolas, monospace;
  letter-spacing: 0.1em;
}

.auth-features span { color: rgba(246, 239, 226, 0.76); font-size: 12px; }

.auth-spec {
  display: flex;
  gap: 34px;
  max-width: 520px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-spec div { display: flex; flex-direction: column; gap: 5px; }

.auth-spec span {
  color: var(--faint);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.auth-spec strong {
  color: rgba(255, 233, 206, 0.86);
  font-size: 11px;
  font-weight: 600;
}

.auth-card {
  position: relative;
  align-self: center;
  min-width: 0;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(25, 30, 46, 0.9), rgba(11, 14, 22, 0.94));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(20px);
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 179, 95, 0.6), transparent);
}

.auth-head h2 {
  margin: 8px 0 5px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.auth-head p {
  margin: 0;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.6;
}

.auth-tabs {
  display: flex;
  gap: 4px;
  margin: 20px 0 12px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
}

.auth-tab {
  flex: 1;
  height: 34px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--faint);
  font-size: 11.5px;
  font-weight: 700;
}

.auth-tab.on {
  background: rgba(255, 255, 255, 0.09);
  color: #ffe7c7;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.auth-status {
  margin: 10px 0;
  padding: 9px 10px;
  border: 1px solid rgba(255, 93, 104, 0.28);
  border-radius: 8px;
  background: rgba(255, 93, 104, 0.08);
  color: #ffc2c7;
  font-size: 10.5px;
  line-height: 1.5;
}

.auth-status.ok {
  border-color: rgba(104, 243, 177, 0.24);
  background: rgba(104, 243, 177, 0.07);
  color: #a9f7cd;
}

.auth-status.muted {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.offline-notice {
  display: grid;
  gap: 3px;
  margin: 10px 0;
  padding: 10px 11px;
  border: 1px solid rgba(255, 180, 85, 0.22);
  border-radius: 9px;
  background: rgba(255, 180, 85, 0.06);
}

.offline-notice strong { color: #ffd296; font-size: 10.5px; }
.offline-notice span { color: var(--faint); font-size: 9.5px; line-height: 1.5; }

.auth-field {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.auth-field > span {
  color: rgba(255, 248, 237, 0.74);
  font-size: 10.5px;
  font-weight: 600;
}

.auth-field > span b { color: var(--orange); font-weight: 700; }

.auth-field input {
  width: 100%;
  height: 40px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: rgba(4, 7, 12, 0.52);
  color: var(--ink);
  font-size: 12px;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.auth-field input::placeholder { color: rgba(255, 255, 255, 0.24); }

.auth-field input:focus {
  outline: none;
  border-color: rgba(255, 170, 85, 0.48);
  background: rgba(7, 11, 18, 0.82);
  box-shadow: 0 0 0 3px rgba(255, 159, 67, 0.09);
}

.auth-field small {
  color: var(--faint);
  font-size: 9.5px;
  line-height: 1.4;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-check {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 10.5px;
  cursor: pointer;
}

.auth-check input { accent-color: var(--orange); }

.auth-submit {
  width: 100%;
  margin-top: 16px;
  min-height: 44px;
}

.auth-help {
  margin: 12px 0 0;
  color: var(--faint);
  font-size: 9.5px;
  line-height: 1.6;
  text-align: center;
}

.auth-help a { color: rgba(255, 194, 126, 0.9); text-decoration: underline; text-underline-offset: 2px; }

.auth-rule { margin-top: 5px; text-align: left; }

.auth-details {
  margin-top: 14px;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.02);
}

.auth-details summary {
  color: var(--muted);
  font-size: 10.5px;
  cursor: pointer;
  user-select: none;
}

.auth-details[open] summary { margin-bottom: 4px; color: rgba(255, 230, 199, 0.8); }

.auth-footlinks {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--faint);
  font-size: 9.5px;
}

.auth-footlinks a:hover { color: var(--orange); }

.logged-head {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 4px 0 8px;
}

.logged-avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffc069, #ef6d38);
  color: #1b120b;
  font-size: 22px;
  font-weight: 800;
}

.logged-kicker {
  color: var(--cyan);
  font-size: 8.5px;
  letter-spacing: 0.18em;
}

.logged-head h2 { margin: 4px 0 2px; font-size: 20px; }
.logged-head p { margin: 0; color: var(--faint); font-size: 9.5px; }

.logged-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 13px;
  color: var(--faint);
  font-size: 10px;
}

.logged-links a:hover { color: var(--orange); }

.auth-logout { margin-top: 16px; }

.auth-footer {
  position: relative;
  z-index: 2;
  padding: 0 24px 30px;
  color: rgba(255, 255, 255, 0.18);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-align: center;
}

@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 560px;
    padding-top: 14px;
  }
  .auth-intro h1 { font-size: clamp(30px, 8vw, 46px); }
  .auth-features { margin: 22px 0 20px; }
  .auth-spec { display: none; }
  .auth-card { align-self: stretch; }
}

@media (max-width: 560px) {
  .auth-top { padding: 16px 18px; }
  .auth-top-links { gap: 13px; font-size: 10px; }
  .auth-shell { padding: 12px 16px 46px; }
  .auth-card { padding: 20px; border-radius: 16px; }
  .auth-grid { grid-template-columns: 1fr; }
  .auth-intro > p { font-size: 12px; }
  .auth-features { display: none; }
  .auth-glow { display: none; }
}

.auth-brand .auth-mark { width: 30px; height: 30px; border-radius: 9px; display: inline-block; background: radial-gradient(circle at 30% 25%, #b9f0ff, #2a9fd0 60%, #0d3b52); box-shadow: 0 0 18px rgba(92, 209, 255, 0.45); }

/* 桌面：左边品牌固定，右边登录窗独立滚动（参考 CIP 首页的左右分栏） */
@media (min-width: 901px) {
  .auth-shell {
    align-items: start;
    min-height: calc(100vh - 145px);
    padding-top: 18px;
  }
  .auth-intro {
    position: sticky;
    top: 92px;
    align-self: start;
    padding: 26px 34px 26px 0;
    border-right: 1px solid rgba(255, 255, 255, 0.09);
  }
  .auth-card {
    align-self: start;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 179, 95, 0.35) transparent;
  }
  .auth-card::-webkit-scrollbar { width: 6px; }
  .auth-card::-webkit-scrollbar-thumb { background: rgba(255, 179, 95, 0.32); border-radius: 4px; }
  .auth-intro::after {
    content: '';
    display: block;
    width: 54px;
    height: 2px;
    margin-top: 26px;
    background: linear-gradient(90deg, #ffb35f, transparent);
  }
}
@media (max-width: 900px) {
  .auth-intro { position: static; border-right: 0; padding-right: 0; }
  .auth-intro::after { display: none; }
  .auth-card { max-height: none; overflow: visible; }
}

