/* ==========================================================================
   注册 / 登录
   ========================================================================== */
.auth-page { background: #050506; min-height: 100vh; }

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  min-height: 100vh;
}

/* --------------------------------- 左侧品牌面板 --------------------------------- */
.auth-aside {
  position: relative;
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 20% 10%, rgba(0, 184, 151, 0.16), transparent 62%),
    radial-gradient(50% 40% at 90% 80%, rgba(98, 84, 255, 0.14), transparent 66%),
    #070709;
  border-right: 1px solid var(--line);
}
.auth-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(80% 60% at 30% 40%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(80% 60% at 30% 40%, #000, transparent 78%);
  pointer-events: none;
}
.auth-aside .brand { position: relative; z-index: 1; font-size: 26px; }
.aside-body { position: relative; z-index: 1; margin: auto 0; max-width: 470px; }
.aside-body h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.16;
  letter-spacing: -0.045em;
  font-weight: 720;
  margin-top: 26px;
}
.aside-body .grad {
  background: linear-gradient(96deg, #fff, #a9f5e4 60%, #8ab4ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.aside-body > p { margin-top: 16px; font-size: 14px; line-height: 1.75; color: var(--text-2); max-width: 380px; }
.aside-list { margin-top: 30px; display: flex; flex-direction: column; gap: 14px; }
.aside-list li { display: flex; align-items: center; gap: 11px; font-size: 13.5px; color: #d8d8dc; }
.aside-list .ck {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0, 184, 151, 0.14);
  color: var(--up);
  flex-shrink: 0;
}
.aside-list .ck svg { width: 12px; height: 12px; }
.aside-quote {
  margin-top: 40px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(8px);
}
.aside-quote p { font-size: 13px; line-height: 1.75; color: #d6d6da; }
.aside-quote .who { margin-top: 12px; display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--text-2); }
.aside-quote .who .ava {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, #2a2a2f, #17171a);
  display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff;
}
.aside-mini {
  position: relative;
  margin-top: 26px;
  height: 120px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 12, 0.6);
  overflow: hidden;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.aside-mini svg { width: 100%; height: 100%; }
.aside-foot {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; gap: 20px;
  font-size: 11.5px; color: var(--text-4);
}

/* --------------------------------- 右侧表单 --------------------------------- */
.auth-main { position: relative; display: flex; flex-direction: column; padding: 30px 34px 40px; }
.auth-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 13px; color: var(--text-2);
}
.auth-top a { color: #fff; font-weight: 600; }
.auth-top a:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-card {
  width: 100%;
  max-width: 412px;
  margin: auto;
  padding: 8px 0;
}
.auth-card h1 { font-size: 30px; letter-spacing: -0.035em; font-weight: 720; line-height: 1.2; }
.auth-sub { margin-top: 10px; font-size: 13.5px; color: var(--text-2); }
.auth-sub strong { color: var(--up); font-weight: 600; }

.auth-tabs {
  display: flex;
  gap: 0;
  margin: 26px 0 22px;
  padding: 3px;
  background: #111113;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.auth-tabs button {
  flex: 1;
  height: 36px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 550;
  color: var(--text-2);
  transition: 0.16s var(--ease);
}
.auth-tabs button:hover { color: #fff; }
.auth-tabs button.active { background: #26262b; color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset; }
.auth-card form { display: flex; flex-direction: column; gap: 16px; }
.auth-card .field > label { font-size: 12.5px; color: var(--text-2); }
.auth-card .input { height: 46px; background: #101012; }
.auth-card .field .hint { margin-top: 1px; }

.code-row { display: flex; gap: 9px; }
.code-row .input { flex: 1; }
.btn-code { height: 46px; padding: 0 14px; font-size: 13px; flex-shrink: 0; border-radius: 10px; }
.btn-code:disabled { opacity: 0.5; }

.eye-btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 8px;
  display: grid; place-items: center; color: var(--text-3);
}
.eye-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.eye-btn svg { width: 18px; height: 18px; }
.pw-input { padding-right: 44px; }

.pw-meter { display: flex; gap: 5px; margin-top: 2px; }
.pw-meter i { flex: 1; height: 3px; border-radius: 99px; background: #232327; transition: background 0.2s; }
.pw-meter[data-level="1"] i:nth-child(1) { background: var(--down); }
.pw-meter[data-level="2"] i:nth-child(-n + 2) { background: #f0a133; }
.pw-meter[data-level="3"] i { background: var(--up); }
.pw-label { font-size: 11.5px; color: var(--text-3); margin-top: 5px; }

.auth-card .checkbox { margin-top: 2px; }
.auth-card .btn-lg { height: 48px; border-radius: 11px; font-size: 15px; }
.auth-card .error-text { margin: -4px 0 -2px; }

.auth-divider { position: relative; text-align: center; margin: 22px 0 18px; }
.auth-divider::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.auth-divider span { position: relative; padding: 0 12px; background: #050506; font-size: 12px; color: var(--text-3); }

.auth-legal { margin-top: 22px; font-size: 11.5px; color: var(--text-4); line-height: 1.7; }
.auth-legal a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }

.auth-footnote {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 13px;
  border-radius: 10px;
  background: rgba(0, 184, 151, 0.07);
  border: 1px solid rgba(0, 184, 151, 0.18);
  font-size: 12px;
  color: #9cebda;
  line-height: 1.6;
}
.auth-footnote svg { width: 15px; height: 15px; flex-shrink: 0; }

.demo-code {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 9px; border-radius: 7px;
  background: rgba(0, 184, 151, 0.12);
  border: 1px dashed rgba(0, 184, 151, 0.4);
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.16em; color: #9cebda;
  cursor: pointer;
}
.demo-code:hover { background: rgba(0, 184, 151, 0.18); }

.steps-line { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.steps-line .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--text-4); }
.steps-line .dot.on { background: #fff; }

/* --------------------------------- 响应式 --------------------------------- */
@media (max-width: 980px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-main { padding: 24px 22px 48px; min-height: 100vh; }
  .auth-main::before {
    content: "宇宙魔方";
    display: block;
    padding-left: 33px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='M12 2.8l8 4.5v9.4l-8 4.5-8-4.5V7.3z'/%3E%3Cpath d='M4 7.3l8 4.5 8-4.5M12 11.8v9.4'/%3E%3C/svg%3E") left center / 25px 25px no-repeat;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 0.03em;
    margin-bottom: 26px;
  }
  .auth-card { margin-top: 10px; }
  .auth-top { justify-content: flex-end; }
}
