/* =====================================================================
   聚流 · 登录 / 注册（邀请码制）
   版式：整屏彩色流体背景 + 左侧白色文案 + 右侧轻毛玻璃表单卡
   字体：Google Sans（拉丁/数字），中文回退系统字体
   ===================================================================== */

/* ---------- Google Sans ---------- */
@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/GoogleSans-300.woff2') format('woff2');
  unicode-range: U+0020-007E, U+00A0-00FF, U+2000-206F, U+2190-2193, U+2212, U+25A0-25FF;
}
@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/GoogleSans-400.woff2') format('woff2');
  unicode-range: U+0020-007E, U+00A0-00FF, U+2000-206F, U+2190-2193, U+2212, U+25A0-25FF;
}
@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/GoogleSans-500.woff2') format('woff2');
  unicode-range: U+0020-007E, U+00A0-00FF, U+2000-206F, U+2190-2193, U+2212, U+25A0-25FF;
}
@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/GoogleSans-600.woff2') format('woff2');
  unicode-range: U+0020-007E, U+00A0-00FF, U+2000-206F, U+2190-2193, U+2212, U+25A0-25FF;
}
@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/GoogleSans-700.woff2') format('woff2');
  unicode-range: U+0020-007E, U+00A0-00FF, U+2000-206F, U+2190-2193, U+2212, U+25A0-25FF;
}

/* ---------- 令牌 ---------- */
:root {
  --blue: #1a73e8;
  --blue-hover: #1b66c9;
  --blue-press: #185abc;
  --blue-soft: #e8f0fe;
  --blue-text: #1765cc;

  --ink: #1f1f1f;
  --ink-2: #444746;
  --ink-3: #5f6368;
  --ink-4: #6f7479;
  --line: #dadce0;
  --line-soft: #e8eaed;

  --danger: #d93025;
  --danger-soft: #fce8e6;
  --green: #1e8e3e;
  --green-text: #146c2e;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-pill: 999px;

  --shadow-1: 0 1px 2px rgba(60, 64, 67, .08), 0 1px 3px rgba(60, 64, 67, .06);
  --shadow-card:
    0 40px 90px -36px rgba(38, 50, 90, .38),
    0 12px 32px -18px rgba(38, 50, 90, .22),
    0 1px 0 rgba(255, 255, 255, .9) inset;

  --font: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', sans-serif;

  --ease: cubic-bezier(.25, .8, .3, 1);
  --ease-soft: cubic-bezier(.32, .72, 0, 1);
  --ease-apple: cubic-bezier(.25, .1, .25, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --pad-x: clamp(24px, 6vw, 96px);
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }

/* data-view 切换：非当前视图一律隐藏（优先级高于 display:grid/flex） */
[data-view][hidden],
body[data-view="login"] [data-view="register"],
body[data-view="register"] [data-view="login"] {
  display: none !important;
}

/* 视图切换时的淡入 */
@keyframes view-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}

@keyframes pitch-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: #cfe6ef;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
svg { display: block; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 6px;
}
.card :focus-visible,
.segmented :focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 12px;
  z-index: 999;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: #1f1f1f;
  color: #fff;
  transition: top .2s var(--ease);
}
.skip-link:focus-visible { top: 12px; }

/* =====================================================================
   彩色流体背景
   ===================================================================== */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(58% 66% at 6% 4%, #8ce7ea 0%, rgba(140, 231, 234, 0) 62%),
    radial-gradient(42% 52% at 30% 26%, #c3e79b 0%, rgba(195, 231, 155, 0) 64%),
    radial-gradient(72% 82% at 16% 64%, #9a8cf2 0%, rgba(154, 140, 242, 0) 66%),
    radial-gradient(58% 66% at 58% 34%, #f4f0cd 0%, rgba(244, 240, 205, 0) 68%),
    radial-gradient(64% 74% at 98% 48%, #ffe7a0 0%, rgba(255, 231, 160, 0) 66%),
    radial-gradient(58% 62% at 86% 96%, #ffc490 0%, rgba(255, 196, 144, 0) 68%),
    radial-gradient(70% 70% at 46% 108%, #f7b6d2 0%, rgba(247, 182, 210, 0) 70%),
    linear-gradient(118deg, #a9e4ee 0%, #c9bdf5 42%, #f2ecc4 72%, #ffdca8 100%);
}

/* 缓慢游动的柔光，让背景「流体」起来 */
.aurora__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
  mix-blend-mode: soft-light;
  will-change: transform;
}
.aurora__blob--1 {
  width: 46vw; height: 46vw; max-width: 720px; max-height: 720px;
  left: -8vw; top: 6vh;
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, rgba(255, 255, 255, 0) 68%);
  animation: float-a 28s var(--ease) infinite alternate;
}
.aurora__blob--2 {
  width: 42vw; height: 42vw; max-width: 660px; max-height: 660px;
  left: 18vw; bottom: -12vh;
  background: radial-gradient(circle at 50% 50%, #b9a4ff 0%, rgba(185, 164, 255, 0) 70%);
  opacity: .5;
  animation: float-b 34s var(--ease) infinite alternate;
}
.aurora__blob--3 {
  width: 40vw; height: 40vw; max-width: 620px; max-height: 620px;
  right: -6vw; top: 20vh;
  background: radial-gradient(circle at 50% 50%, #fff4b8 0%, rgba(255, 244, 184, 0) 70%);
  opacity: .6;
  animation: float-c 30s var(--ease) infinite alternate;
}

/* 左侧压暗薄纱：保证白色文案在浅色背景上仍有足够对比 */
.aurora__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(40, 36, 82, .58) 0%, rgba(40, 36, 82, .34) 30%, rgba(40, 36, 82, .04) 58%, rgba(40, 36, 82, 0) 70%),
    linear-gradient(0deg, rgba(40, 36, 82, .18) 0%, rgba(40, 36, 82, 0) 46%);
  pointer-events: none;
}

/* 细颗粒，压住大色块的塑料感 */
.aurora__grain {
  position: absolute;
  inset: 0;
  opacity: .14;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events: none;
}

@keyframes float-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(6vw, 5vh, 0) scale(1.14); }
}
@keyframes float-b {
  from { transform: translate3d(0, 0, 0) scale(1.06); }
  to   { transform: translate3d(-5vw, -6vh, 0) scale(.94); }
}
@keyframes float-c {
  from { transform: translate3d(0, 0, 0) scale(.96); }
  to   { transform: translate3d(-6vw, 4vh, 0) scale(1.1); }
}

/* =====================================================================
   页头 / 页脚（浮在背景上）
   ===================================================================== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px var(--pad-x);
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(40, 50, 90, .22);
  transition: opacity .16s var(--ease);
}
.brand:hover { opacity: .86; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .92);
  color: #1a73e8;
  box-shadow: 0 2px 8px rgba(40, 50, 90, .16);
}
.brand__name { font-size: 19px; font-weight: 500; letter-spacing: -.015em; }

.topbar__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .56);
  border: 1px solid rgba(255, 255, 255, .78);
  color: #3c4043;
  font-size: 13.5px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color .18s var(--ease);
}
.topbar__back:hover { background: rgba(255, 255, 255, .78); color: #1f1f1f; }

.foot {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 10;
  padding: 24px var(--pad-x);
  color: rgba(45, 52, 70, .68);
  font-size: 12.5px;
}
.foot a { opacity: .92; transition: opacity .16s var(--ease); }
.foot a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

/* =====================================================================
   主体两栏
   ===================================================================== */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  align-items: center;
  gap: clamp(32px, 5vw, 88px);
  padding: clamp(80px, 9vh, 108px) var(--pad-x) clamp(60px, 7vh, 84px);
}

/* ---------- 左侧文案 ---------- */
.pitch {
  max-width: 34em;
  color: #fff;
  animation: pitch-in 1s var(--ease-soft) .1s both;
  text-shadow: 0 1px 3px rgba(30, 28, 60, .28), 0 10px 40px rgba(30, 28, 60, .22);
}

.pitch__title {
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.24;
}

.pitch__lede {
  margin-top: 22px;
  max-width: 24em;
  font-size: clamp(14.5px, 1.1vw, 16.5px);
  line-height: 1.85;
  color: rgba(255, 255, 255, .94);
}

/* =====================================================================
   右侧表单卡（轻毛玻璃）
   ===================================================================== */
.panel {
  justify-self: end;
  width: max-content;
  max-width: 100%;
}

.card {
  position: relative;
  isolation: isolate;
  /* 两个视图同宽：宽度变化会让内容逐帧重排，这是闪烁的根源 */
  width: 520px;
  max-width: 100%;
  padding: 0;
  border-radius: var(--r-xl);
}

.card__body {
  width: 100%;
  padding: 32px 36px 24px;
}

/* 毛玻璃单独一层：避免尺寸动画时 backdrop-filter 反复重绘导致闪烁 */
.card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(26px) saturate(165%);
  -webkit-backdrop-filter: blur(26px) saturate(165%);
  pointer-events: none;
}

/* 动画期间让内容在卡片内部被裁掉。
   注意：不能加在 .card 上——.card 自己的 ::before 承载了投影，
   一旦 overflow:hidden 会把投影一起裁掉，切换时阴影就"消失又弹出"。
   所以裁剪放在 .card__body 上（投影那一层是它的兄弟节点，不受影响）。 */
.card.is-resizing .card__body {
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
}


.card__head { margin-bottom: 18px; }
.card__head h1 {
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -.03em;
  color: var(--ink);
}
.card__head p {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--ink-3);
}
.card__head p a {
  margin-left: 6px;
  color: var(--blue-text);
  font-weight: 500;
}
.card__head p a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* 分段切换 登录 / 注册 */
.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 18px;
  border-radius: var(--r-md);
  background: rgba(60, 64, 67, .07);
  position: relative;
}
.segmented a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 22px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-3);
  transition: background-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
}
.segmented a:hover { color: var(--ink); }
.segmented a {
  position: relative;
  z-index: 1;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
  user-select: none;
}
.segmented a[aria-current="page"] { color: var(--ink); }
.segmented__pill {
  position: absolute;
  z-index: 0;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(60, 64, 67, .16);
  transition: transform .5s var(--ease-soft), width .5s var(--ease-soft);
  pointer-events: none;
}

/* 演示提示 */
.demo-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(26, 115, 232, .16);
  border-radius: var(--r-md);
  background: rgba(232, 240, 254, .66);
  font-size: 12px;
  line-height: 1.6;
  color: #174ea6;
}
.demo-note svg { flex: none; margin-top: 1px; }
.demo-note b { font-weight: 500; }

/* ---------- 表单 ---------- */
.form { display: grid; gap: 12px; }

.field { display: grid; gap: 7px; }

.field__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.field__label .opt { font-weight: 400; font-size: 12px; color: var(--ink-4); }
.field__label a { font-size: 12.5px; font-weight: 500; color: var(--blue-text); }
.field__label a:hover { text-decoration: underline; text-underline-offset: 3px; }

.control { position: relative; display: flex; align-items: center; }

.control input {
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.4;
  transition: border-color .26s var(--ease-soft), box-shadow .26s var(--ease-soft), background-color .26s var(--ease-soft);
  -webkit-appearance: none;
  appearance: none;
}
.control input::placeholder { color: #9aa0a6; }
.control input:hover { border-color: #c4c7cc; }
.control input:focus {
  outline: none;
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, .16);
}
.control input:disabled { background: #f1f3f4; color: var(--ink-4); cursor: not-allowed; }

.control--icon input { padding-left: 44px; }
.control--action input { padding-right: 52px; }

.control__icon {
  position: absolute;
  left: 15px;
  display: grid;
  place-items: center;
  color: #9aa0a6;
  pointer-events: none;
}
.control input:focus ~ .control__icon { color: var(--blue); }

.control__action {
  position: absolute;
  right: 6px;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  transition: background-color .16s var(--ease), color .16s var(--ease);
}
.control__action:hover { background: rgba(60, 64, 67, .07); color: var(--ink); }

/* 校验态 */
.field.is-invalid .control input { border-color: var(--danger); }
.field.is-invalid .control input:focus { box-shadow: 0 0 0 3px rgba(217, 48, 37, .14); }
.field.is-valid .control input { border-color: #b7d7bd; }

.field__error {
  display: none;
  align-items: flex-start;
  gap: 6px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--danger);
}
.field.is-invalid .field__error {
  display: flex;
  animation: err-in .38s var(--ease-soft) both;
}
@keyframes err-in {
  from { opacity: 0; transform: translateY(-3px); }
  to   { opacity: 1; transform: none; }
}
.field__error svg { flex: none; margin-top: 2px; }

.field__hint { font-size: 12.5px; line-height: 1.55; color: var(--ink-4); }

/* ---------- 验证码输入 + 发送按钮 ---------- */
.control--code input {
  padding-right: 128px;
  letter-spacing: .16em;
  font-variant-numeric: tabular-nums;
}

.code-send {
  position: absolute;
  right: 6px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--blue-text);
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .24s var(--ease-soft), border-color .24s var(--ease-soft),
              color .24s var(--ease-soft);
}
.code-send:hover:not(:disabled) {
  background: var(--blue-soft);
  border-color: transparent;
}
.code-send:disabled {
  color: var(--ink-4);
  background: var(--surface-2);
  border-color: var(--line-soft);
  cursor: not-allowed;
}
.code-send.is-busy { color: var(--ink-3); }

/* 密码强度 */
.strength { display: grid; gap: 6px; margin-top: 2px; }
.strength__bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.strength__bars i {
  height: 4px;
  border-radius: 2px;
  background: rgba(60, 64, 67, .12);
  transform-origin: left center;
  transition: background-color .4s var(--ease-soft), transform .4s var(--ease-soft);
}
.strength__text { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--ink-4); }
.strength[data-level="1"] .strength__bars i:nth-child(-n+1) { background: var(--danger); }
.strength[data-level="2"] .strength__bars i:nth-child(-n+2) { background: #e8710a; }
.strength[data-level="3"] .strength__bars i:nth-child(-n+3) { background: #f9ab00; }
.strength[data-level="4"] .strength__bars i { background: var(--green); }

/* ---------- 自定义勾选框 ---------- */
.check {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-3);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.check input {
  position: absolute;
  width: 1px; height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.check__box {
  flex: none;
  display: grid;
  place-items: center;
  width: 18px; height: 18px;
  margin-top: 1px;
  border: 1.5px solid #b8bcc2;
  border-radius: 5px;
  background: rgba(255, 255, 255, .9);
  color: #fff;
  transition: background-color .18s var(--ease), border-color .18s var(--ease),
              box-shadow .26s var(--ease-soft), transform .26s var(--ease-soft);
}
.check__box svg {
  opacity: 0;
  transform: scale(.6);
  transition: opacity .22s var(--ease-soft), transform .34s cubic-bezier(.22, 1.35, .36, 1);
}

.check:hover .check__box { border-color: #8f949b; }

.check input:focus-visible ~ .check__box {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, .18);
}

.check input:checked ~ .check__box {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 1px 3px rgba(26, 115, 232, .3);
}
.check input:checked ~ .check__box svg {
  opacity: 1;
  transform: none;
}

.check:active .check__box { transform: scale(.955); }

.check__text { min-width: 0; }
.check a { color: var(--blue-text); text-decoration: underline; text-underline-offset: 2px; }

.check.is-invalid .check__box {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(217, 48, 37, .14);
  animation: shake .42s var(--ease-soft);
}
.check.is-invalid { color: var(--danger); }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-2px); }
  65% { transform: translateX(1.5px); }
}

/* 主按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 50px;
  margin-top: 4px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  background: var(--blue);
  color: #fff;
  font-family: var(--font);
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(26, 115, 232, .22), 0 8px 20px -10px rgba(26, 115, 232, .5);
  transition: background-color .26s var(--ease-soft), box-shadow .26s var(--ease-soft), transform .26s var(--ease-soft), opacity .26s var(--ease-soft);
}
.btn:hover:not(:disabled) { background: var(--blue-hover); box-shadow: 0 2px 10px rgba(26, 115, 232, .3); }
.btn:active:not(:disabled) { background: var(--blue-press); transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: not-allowed; }

.btn__spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn.is-loading .btn__spinner { display: block; }
.btn.is-loading .btn__label { opacity: .85; }

@keyframes spin { to { transform: rotate(360deg); } }

/* 提交结果 */
.form-status {
  display: none;
  align-items: flex-start;
  gap: 8px;
  padding: 11px 13px;
  border-radius: var(--r-md);
  font-size: 12.5px;
  line-height: 1.6;
}
.form-status.is-error {
  display: flex;
  border: 1px solid rgba(217, 48, 37, .2);
  background: var(--danger-soft);
  color: #a50e0e;
}
.form-status.is-ok {
  display: flex;
  border: 1px solid rgba(30, 142, 62, .22);
  background: #e6f4ea;
  color: var(--green-text);
}
.form-status.is-error,
.form-status.is-ok { animation: status-in .42s var(--ease-soft) both; }
@keyframes status-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}
.form-status svg { flex: none; margin-top: 1px; }

/* 行内文字按钮 */
.linkbtn {
  padding: 0;
  margin: 0 0 0 4px;
  border: 0;
  background: none;
  color: var(--blue-text);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: opacity .16s var(--ease);
}
.linkbtn:hover { opacity: .78; text-decoration: underline; text-underline-offset: 3px; }

/* 密码 + 确认密码：宽屏并排，压掉一整行高度 */
.field-row { display: grid; gap: 12px; }
.field-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}
.field-row .field__label { font-size: 12.5px; }

/* 窄屏退回单列 */
@media (max-width: 620px) {
  .field-row { grid-template-columns: minmax(0, 1fr); }
}

/* 卡内页脚 */
.card__legal {
  margin-top: 14px;
  font-size: 11.5px;
  line-height: 1.7;
  text-align: center;
  color: var(--ink-4);
}
.card__legal a { color: var(--ink-3); text-decoration: underline; text-underline-offset: 2px; }

/* 分隔 + 邀请说明 */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 10px;
  font-size: 11.5px;
  color: var(--ink-4);
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(60, 64, 67, .12);
}

.invite-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.invite-hint a { color: var(--blue-text); font-weight: 500; }
.invite-hint a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* =====================================================================
   响应式
   ===================================================================== */
@media (max-width: 1100px) {
  :root { --pad-x: clamp(24px, 5vw, 56px); }
  .pitch__title { font-size: clamp(28px, 3.6vw, 38px); }
  .card__body { padding: 28px 30px 24px; }
}

/* 平板/手机：上下堆叠 */
@media (max-width: 900px) {
  /* 表单变长后页面会滚动，背景必须固定住，否则下方露出纯色底 */
  .aurora { position: fixed; inset: 0; height: auto; }

  .topbar {
    position: relative;
    padding: 22px 24px 0;
  }
  .topbar__back { display: none; }

  .page {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 28px;
    padding: 28px 24px 40px;
    min-height: 0;
  }

  .pitch { max-width: none; text-align: center; }
  
  .pitch__title { font-size: clamp(26px, 6.4vw, 34px); }
  .pitch__lede { margin: 16px auto 0; max-width: 26em; }
  
  

  .panel { justify-self: stretch; max-width: none; }
  .card { width: 100%; max-width: 520px; margin: 0 auto; }

  .foot {
    position: relative;
    padding: 0 24px 28px;
    text-align: center;
    color: rgba(255, 255, 255, .95);
  }
}

@media (max-width: 560px) {
  .topbar { padding: 18px 18px 0; }
  .brand__mark { width: 30px; height: 30px; border-radius: 9px; }
  .brand__name { font-size: 17px; }

  .page { padding: 22px 16px 32px; gap: 22px; }
  .pitch__title { font-size: clamp(24px, 7.4vw, 30px); letter-spacing: -.03em; }
  .pitch__lede { font-size: 14px; line-height: 1.8; }
  

  .card { border-radius: 20px; }
  .card__body { padding: 26px 20px 22px; }
  .card::before { background: rgba(255, 255, 255, .86); }
  .card__head h1 { font-size: 23px; }
  .segmented { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .segmented a { padding: 0 12px; }
  .foot { padding: 0 18px 22px; font-size: 11.5px; }
}

/* 矮屏横屏 */
@media (max-height: 700px) and (min-width: 901px) {
  .page { padding-top: 88px; padding-bottom: 64px; }
  .card__body { padding: 26px 30px 20px; }
  .card__head { margin-bottom: 18px; }
  .form { gap: 13px; }
}

/* ---------- 降级 ---------- */
/* 不再给一堆元素挂 will-change：常驻的合成层只会白占显存，
   真正的动画只在切换的那几百毫秒里发生。 */

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card::before { background: rgba(255, 255, 255, .95); }
}

/* =====================================================================
   邮箱验证区块（发送验证邮件 → 邮件里点链接 → 粘贴令牌）
   ===================================================================== */
.verify { display: grid; gap: 8px; }

.verify__send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  color: var(--blue-text);
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .26s var(--ease-soft), border-color .26s var(--ease-soft),
              color .26s var(--ease-soft);
}
.verify__send:hover:not(:disabled) { background: var(--blue-soft); border-color: transparent; }
.verify__send:active:not(:disabled) { background: #d7e6fd; }
.verify__send:disabled {
  color: var(--ink-4);
  background: #f8f9fa;
  border-color: var(--line-soft);
  cursor: default;
}
.verify__send.is-busy { color: var(--ink-3); }
.verify__send-icon { display: grid; place-items: center; }

.verify__hint {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-4);
  transition: color .34s var(--ease-soft);
}
.field__hint.is-sent { color: var(--green-text); }

#reg-code {
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
}

/* Turnstile 挂载点：只在渲染出组件后才占位，高度平滑展开 */
.cf-slot {
  height: 0;
  overflow: hidden;
  transition: height .5s var(--ease-soft);
}
.cf-slot.has-widget { height: 68px; }
.cf-slot iframe { border-radius: var(--r-sm); }

/* =====================================================================
   注册分步（1 邀请码 → 2 邮箱验证 → 3 设置密码）
   ===================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 2px;
  padding: 0;
  list-style: none;
}
.steps__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 6px;
  border-radius: 9px;
  background: rgba(60, 64, 67, .055);
  color: var(--ink-4);
  font-size: 12px;
  white-space: nowrap;
  transition: background-color .45s var(--ease-soft), color .45s var(--ease-soft);
}
.steps__dot {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  opacity: .8;
}
.steps__item.is-active {
  background: var(--blue-soft);
  color: var(--blue-text);
  font-weight: 500;
}
.steps__item.is-active .steps__dot { opacity: 1; }
.steps__item.is-done {
  background: rgba(30, 142, 62, .09);
  color: var(--green-text);
}

.step {
  display: grid;
  gap: 12px;
  transition: opacity .34s var(--ease-soft), transform .46s var(--ease-soft);
}
.step[hidden] { display: none; }
.step.is-entering { opacity: 0; transform: translateY(9px); }
.step.is-leaving { opacity: 0; transform: translateY(-7px); pointer-events: none; }

.step__nav {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 10px;
  margin-top: 2px;
}

.btn--ghost {
  background: #fff;
  color: var(--ink-2);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn--ghost:hover:not(:disabled) {
  background: #f8f9fa;
  box-shadow: none;
}
.btn--ghost:active:not(:disabled) {
  background: #f1f3f4;
  transform: translateY(1px);
}

@media (max-width: 400px) {
  .steps { gap: 4px; }
  .steps__item { min-height: 30px; gap: 4px; padding: 0 4px; font-size: 11px; }
}

/* =====================================================================
   动效系统 v2 —— 克制、快、可打断
   原则：只动 transform / opacity；进场 ease-out；交互反馈 ≤180ms；
        布局高度用 iOS 抽屉曲线（本体在 auth.js 里，420ms）
   ===================================================================== */
:root {
  --dur-1: .12s;   /* 按压、微反馈 */
  --dur-2: .18s;   /* 颜色、描边、焦点 */
  --dur-3: .24s;   /* 淡入 */
  --dur-4: .34s;   /* 让位、展开 */
}

/* ---------- 进场：卡片只进来一次，轻、短 ---------- */
@keyframes card-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.card { animation: card-in .56s var(--ease-out) both; }

/* ---------- 登录 / 注册 交叉淡入 ---------- */
.form {
  transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-4) var(--ease-out);
}
.form.view-leave { opacity: 0; transform: translateY(-5px); pointer-events: none; }
.form.view-enter { opacity: 0; transform: translateY(9px); }

/* ---------- 注册分步：让位快、进场稳 ---------- */
.step {
  transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-4) var(--ease-out);
}
.step.is-leaving { opacity: 0; transform: translateY(-5px); pointer-events: none; }
.step.is-entering { opacity: 0; transform: translateY(9px); }

/* ---------- 分段滑块：短一点，跟手 ---------- */
.segmented__pill {
  transition: transform .3s var(--ease-soft), width .3s var(--ease-soft);
}
.segmented a { transition: color var(--dur-2) var(--ease-out); }

/* ---------- 按钮：按压只下沉 1px，不夸张 ---------- */
.btn, .code-send, .verify__send, .control__action, .linkbtn {
  transition: background-color var(--dur-2) var(--ease-out),
              border-color var(--dur-2) var(--ease-out),
              color var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out),
              transform var(--dur-1) var(--ease-out),
              opacity var(--dur-2) var(--ease-out);
}
.btn:active:not(:disabled),
.btn--ghost:active:not(:disabled) { transform: translateY(1px) scale(.992); }
.control__action:active { transform: scale(.94); }
.code-send:active:not(:disabled),
.verify__send:active:not(:disabled) { transform: scale(.985); }

/* ---------- 输入框：描边 + 光环快速跟随 ---------- */
.control input {
  transition: border-color var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out),
              background-color var(--dur-2) var(--ease-out);
}

/* ---------- 勾选框：对勾干净地浮出来（去掉过冲与抖动） ---------- */
.check__box {
  transition: background-color var(--dur-2) var(--ease-out),
              border-color var(--dur-2) var(--ease-out),
              box-shadow var(--dur-3) var(--ease-out),
              transform var(--dur-1) var(--ease-out);
}
.check__box svg {
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-3) var(--ease-out);
}
.check input:checked ~ .check__box { transform: none; }
.check:active .check__box { transform: scale(.96); }
/* 错误态不再抖，红框 + 文案已经足够 */
.check.is-invalid .check__box { animation: none; }

/* ---------- 错误提示 / 状态条：轻推一下 ---------- */
.field.is-invalid .field__error { animation: err-in .2s var(--ease-out) both; }
.form-status.is-error,
.form-status.is-ok { animation: status-in .24s var(--ease-out) both; }

/* ---------- Turnstile 展开 ---------- */
.cf-slot { transition: height var(--dur-4) var(--ease-out); }

/* ---------- 强度条：颜色过渡更柔和 ---------- */
.strength__bars i {
  transition: background-color var(--dur-3) var(--ease-out),
              transform var(--dur-3) var(--ease-out);
}

/* ---------- 毛玻璃：更厚、更通透 ---------- */
.card::before {
  background: linear-gradient(158deg,
    rgba(255, 255, 255, .88) 0%,
    rgba(255, 255, 255, .72) 46%,
    rgba(255, 255, 255, .82) 100%);
  border-color: rgba(255, 255, 255, .74);
  backdrop-filter: blur(30px) saturate(185%);
  -webkit-backdrop-filter: blur(30px) saturate(185%);
}
.topbar__back {
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
}

/* ---------- 触屏不做 hover 位移（避免点一下「粘住」） ---------- */
@media (hover: none), (pointer: coarse) {
  .btn:hover:not(:disabled),
  .btn--ghost:hover:not(:disabled),
  .code-send:hover:not(:disabled),
  .verify__send:hover:not(:disabled),
  .control__action:hover,
  .segmented a:hover { background-color: inherit; }
  .card:hover, .check:hover .check__box { transform: none; }
}

/* ---------- 减少动态：更少更轻，而不是全无 ---------- */
@media (prefers-reduced-motion: reduce) {
  .card, .pitch { animation: none !important; }
  .step.is-entering, .step.is-leaving,
  .form.view-enter, .form.view-leave { transform: none !important; }
  .aurora__blob { animation: none !important; }
  .btn, .code-send, .verify__send, .control__action,
  .segmented a, .control input, .check__box, .check__box svg {
    transition-duration: .1s !important;
  }
  .btn:active:not(:disabled) { transform: none !important; }
}

/* =====================================================================
   Resend 化视觉：等宽微标签 / 黑白主色 / 更细的边框 / 更小的圆角
   参考 resend.com 的克制排版——近黑标题、1px 浅灰线、等宽小字、
   黑色主按钮；颜色只留给语义（成功 / 错误），不抢视觉
   ===================================================================== */
:root {
  --ink: #0a0a0a;
  --ink-2: #2b2b2e;
  --ink-3: #5b5f66;
  --ink-4: #8a8d92;
  --line: #e3e4e7;
  --line-soft: #eef0f2;
  --blue-text: #0a0a0a;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
}

/* 卡片刻度：宁可高一点，也别在长屏上像一条横条 */
.card { width: 520px; border-radius: 20px; }
.card__body { padding: 40px 42px 32px; }
.card__head { margin-bottom: 24px; }
.card__head h1 { font-size: 28px; letter-spacing: -.04em; }
.card__head p { font-size: 13px; color: var(--ink-3); margin-top: 9px; }
.segmented { margin-bottom: 20px; }
.form { gap: 14px; }

/* 等宽微标签（Resend 的招牌细节） */
.label-en {
  margin-left: 7px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #a9adb3;
  vertical-align: 1.5px;
}
.field__label { font-size: 12.5px; font-weight: 500; color: #6b7078; }
.field__label .opt { font-size: 11.5px; color: #a9adb3; }

/* 输入框：1px 浅灰线、10px 圆角、黑色焦点 */
.control input {
  min-height: 52px;
  border-color: var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 14.5px;
}
.control input:hover { border-color: #cfd2d7; }
.control input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(10, 10, 10, .07);
}
.control input:focus ~ .control__icon { color: var(--ink-2); }
.field.is-valid .control input { border-color: #cfd6d0; }

/* 主按钮：近黑 CTA */
.btn {
  min-height: 50px;
  border-radius: 10px;
  background: var(--ink);
  font-size: 14.5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .18), 0 10px 20px -14px rgba(0, 0, 0, .45);
  transition: background-color .18s var(--ease-out), box-shadow .18s var(--ease-out),
              transform .12s var(--ease-out), opacity .18s var(--ease-out);
}
.btn:hover:not(:disabled) {
  background: #24262a;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 12px 24px -14px rgba(0, 0, 0, .5);
}
.btn:active:not(:disabled) { background: #000; }
.btn--ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn--ghost:hover:not(:disabled) { background: #f7f7f8; }

/* 分段控件：中性灰轨道 + 白滑块 */
.segmented {
  border-radius: 10px;
  background: #f2f3f5;
  padding: 4px;
  margin-bottom: 20px;
}
.segmented a { min-height: 40px; border-radius: 8px; font-size: 13px; color: #6b7078; }
.segmented a[aria-current="page"] { color: var(--ink); }
.segmented__pill { border-radius: 8px; box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }

/* 步骤条：等宽序号，只有当前步是黑的 */
.steps { gap: 4px; margin-bottom: 4px; }
.steps__item {
  min-height: 34px;
  border-radius: 8px;
  background: transparent;
  color: #9aa0a6;
  font-size: 11.5px;
  transition: color .2s var(--ease-out), background-color .2s var(--ease-out);
}
.steps__dot {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  opacity: 1;
}
.steps__item.is-active { background: #f2f3f5; color: var(--ink); font-weight: 500; }
.steps__item.is-done { background: transparent; color: #6b7078; }

/* 发送邮件按钮 */
.code-send {
  height: 38px;
  border-radius: 8px;
  border-color: var(--line);
  color: var(--ink);
  font-size: 12px;
  padding: 0 12px;
}
.code-send:hover:not(:disabled) { background: #f7f7f8; border-color: #cfd2d7; }
.control--code input { padding-right: 118px; }

/* 链接统一近黑 + 细下划线 */
.linkbtn, .invite-hint a, .card__legal a, .check a, .foot a { color: var(--ink); }
.linkbtn {
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #c9cbd0;
}
.linkbtn:hover { opacity: 1; text-decoration-color: var(--ink); }
.card__legal a, .check a { text-decoration-color: #c9cbd0; }
.card__legal a:hover, .check a:hover { text-decoration-color: var(--ink); }

/* 强度条：没输入密码时根本不出现 */
.strength[data-level="0"] { display: none; }
.strength__text { font-size: 11px; color: #9aa0a6; }

/* Turnstile 挂载点：有内容时给浅底，像一块区域而不是空白 */
.cf-slot.has-widget {
  height: 74px;
  padding: 4px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #fafafb;
}

/* 动效时长微调（审查结论） */
.pitch { animation: pitch-in .52s var(--ease-out) both; }
.card { animation: card-in .38s var(--ease-out) both; }

/* 窄屏：把左侧长文案收成一行「抬头」，别让整页只剩一张孤零零的卡片 */
@media (max-width: 900px) {
  .pitch {
    display: block;
    max-width: 24em;
    margin: 0 auto;
    text-align: center;
  }
  .pitch__title { font-size: clamp(21px, 5.4vw, 27px); line-height: 1.32; letter-spacing: -.03em; }
  .pitch__lede { display: none; }
  .page { padding: 12px 20px 40px; gap: 22px; }
  /* .panel 基础样式是 width: max-content，窄屏必须解掉，否则卡片只占内容宽度、
     右边留一大块空白 */
  .panel { width: 100%; max-width: none; }
  .card { width: 100%; }
  .aurora__blob--2 { display: none; }
  .aurora__blob { filter: blur(56px); }
}

/* 页脚在桌面端压在深色渐变上，用浅色 + 轻投影保证对比 */
.foot { color: rgba(255, 255, 255, .82); text-shadow: 0 1px 2px rgba(30, 28, 60, .32); }
.foot a { color: rgba(255, 255, 255, .9); }

/* 「没有邀请码」只在第 1 步出现，后面两步不再打扰 */
#form-register[data-step="2"] ~ .invite-hint,
#form-register[data-step="3"] ~ .invite-hint { display: none; }
@media (max-width: 560px) {
  .page { padding: 10px 16px 20px; gap: 16px; }
  .card__body { padding: 30px 24px 26px; }
  .card__head { margin-bottom: 20px; }
  .card__head h1 { font-size: 24px; }
}

/* =====================================================================
   手机端完整适配
   目标：不横向滚动、不被键盘顶坏、不因聚焦放大页面、
        触控区 ≥44px、刘海/圆角屏不吃字
   ===================================================================== */
html, body { overflow-x: hidden; }

.page {
  padding-left: max(var(--pad-x), env(safe-area-inset-left));
  padding-right: max(var(--pad-x), env(safe-area-inset-right));
  padding-bottom: max(40px, env(safe-area-inset-bottom));
}

/* 触屏不要高亮块 */
.btn, .code-send, .verify__send, .control__action, .segmented a,
.linkbtn, .check, .topbar__back, .steps__item, .vbtn {
  -webkit-tap-highlight-color: transparent;
}

/* 滚动时聚焦的输入框不要被键盘/底栏盖住 */
@supports (padding: env(safe-area-inset-bottom)) {
  @media (max-width: 900px) {
    .card { scroll-margin-bottom: 120px; }
    .control input { scroll-margin-bottom: 140px; }
  }
}

/* ---------- 平板及以下 ---------- */
@media (max-width: 900px) {
  .page {
    /* 手机上内容通常比屏幕短，垂直居中才不显得「头重脚轻」；
       内容超高时 grid 会自然撑高，不会把顶部切掉 */
    min-height: calc(100dvh - 88px);
    align-items: center;
    align-content: center;
    padding-top: max(14px, env(safe-area-inset-top));
  }
  .card { max-width: 520px; margin: 0 auto; }
  .foot {
    padding-bottom: max(22px, env(safe-area-inset-bottom));
  }
}

/* ---------- 手机 ---------- */
@media (max-width: 620px) {
  /* 关键：输入框字号 16px，iOS 聚焦时才不会把整页放大 */
  .control input {
    font-size: 16px;
    min-height: 50px;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .control--icon input { padding-left: 42px; }
  .control--action input { padding-right: 50px; }
  .control__icon { left: 13px; }
  .control__action { right: 4px; width: 42px; height: 42px; }

  .btn { min-height: 48px; font-size: 15px; }
  .btn--ghost { min-height: 48px; }

  /* 触控区：发送邮件按钮抬到 44 */
  .code-send { height: 44px; font-size: 12.5px; padding: 0 12px; border-radius: 9px; }
  .control--code input { padding-right: 122px; }

  .field__label { font-size: 12.5px; }
  .field__error { font-size: 12px; }
  .field__hint, .verify__hint { font-size: 12px; }

  .segmented a { min-height: 40px; font-size: 13.5px; }
  .steps__item { min-height: 34px; font-size: 12px; }
  .steps__dot { font-size: 10px; }

  .form-status { font-size: 12px; padding: 10px 12px; }
  .check { font-size: 12.5px; }
  .check__box { width: 20px; height: 20px; }

  .card__head p { font-size: 13px; }
  .card__legal, .invite-hint { font-size: 11.5px; }

  /* 手机端密码强度条少占一行 */
  .strength__text { font-size: 10.5px; }
}

/* ---------- 小屏手机（360 / 320） ---------- */
@media (max-width: 400px) {
  .page { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .card__body { padding: 26px 18px 22px; }
  .card__head h1 { font-size: 22px; }
  .card__head { margin-bottom: 18px; }
  .label-en { display: none; }          /* 窄屏去掉英文微标签，给正文让位 */
  .steps__label { font-size: 11px; }
  .step__nav { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 8px; }
  .step__nav .btn { font-size: 14px; padding: 0 8px; }
  .form { gap: 12px; }
  .field-row { gap: 10px; }
  .token { font-size: 17px; }
}

@media (max-width: 340px) {
  .steps__label { display: none; }      /* 极窄屏只留 01/02/03 */
}

/* 窗口很矮（小笔记本窗口 / 高倍缩放）：卡片整体压紧，保证不用滚动看全表单 */
@media (max-height: 760px) {
  .card__body { padding: 24px 28px 20px; }
  .card__head { margin-bottom: 16px; }
  .card__head h1 { font-size: 23px; }
  .segmented { margin-bottom: 14px; }
  .form { gap: 11px; }
  .control input { min-height: 46px; }
  .btn { min-height: 46px; }
  .steps__item { min-height: 30px; }
  .card__legal { margin-top: 10px; }
}

/* 又矮又窄的窗口：抬头文案让位，表单贴顶 */
@media (max-height: 760px) and (max-width: 900px) {
  .pitch { display: none; }
  .page {
    min-height: auto;
    align-content: start;
    align-items: start;
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: 24px;
    gap: 14px;
  }
}

/* 极矮窗口（≈500px 高的小窗口）：再压一档，做到整页不滚动 */
@media (max-height: 560px) {
  .card__body { padding: 20px 24px 16px; }
  .card__head { margin-bottom: 14px; }
  .card__head h1 { font-size: 21px; }
  .form { gap: 10px; }
  .control input { min-height: 44px; }
  .btn { min-height: 44px; }
  .page { padding-bottom: 4px; gap: 10px; }
  .foot { padding: 0 16px 10px; font-size: 11px; }
  .card__legal { margin-top: 8px; }
}

/* 横屏矮屏：把纵向内边距压掉，别让卡片被切 */
@media (max-height: 520px) and (max-width: 900px) {
  .page { padding-top: 8px; padding-bottom: 16px; }
  .card__head h1 { font-size: 20px; }
  .card__head p { display: none; }
}

/* =====================================================================
   已登录态（登录页短路 + 身份卡）
   ===================================================================== */
[hidden] { display: none !important; }

.card__head .label-en {
  display: block;
  margin: 0 0 11px;
  letter-spacing: .14em;
}

.who {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  margin: 2px 0 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfbfc;
}

.who__av {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
}

.who__txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.who__name {
  font-size: 14px;
  font-weight: 550;
  color: var(--ink);
  letter-spacing: -.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.who__meta {
  font-size: 11.5px;
  color: var(--ink-4);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.who__dot {
  flex: none;
  margin-left: auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1f9d55;
  box-shadow: 0 0 0 3px rgba(31, 157, 85, .13);
}

.signedin__actions { display: grid; gap: 9px; }
.signedin__actions .btn { width: 100%; justify-content: center; }

.signedin__tip {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-4);
}

.signedin__tip svg { flex: none; margin-top: 2px; color: #1f9d55; }

@media (max-width: 620px) {
  .card__head .label-en { display: none; }
  .who { padding: 12px; margin-bottom: 16px; }
  .signedin__tip { font-size: 11.5px; }
}



/* =====================================================================
   与官网统一（Google 风格）
   官网基准：主色 #1a73e8、正文 #1f1f1f、描边 #e3e3e3、圆角 12 / 20、浅色底
   ===================================================================== */
:root {
  --blue: #1a73e8;
  --blue-hover: #1b66c9;
  --blue-press: #185abc;
  --blue-soft: #e8f0fe;
  --blue-text: #1765cc;

  --ink: #1f1f1f;
  --ink-2: #444746;
  --ink-3: #5f6368;
  --ink-4: #6f7479;

  --line: #e3e3e3;
  --line-soft: #f1f3f4;
  --surface: #ffffff;
  --surface-2: #f8f9fa;
  --surface-3: #f1f3f4;

  --green: #1e8e3e;
  --danger: #d93025;
  --warning: #e8710a;

  --mono: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI',
          'Microsoft YaHei', 'PingFang SC', sans-serif;

  --shadow-1: 0 1px 2px rgba(60, 64, 67, .08), 0 1px 3px rgba(60, 64, 67, .06);
  --shadow-card: 0 1px 2px rgba(60, 64, 67, .08), 0 18px 48px rgba(60, 64, 67, .12);
}

/* 背景：极浅的蓝绿微光，和官网首屏一致，不再压深色薄纱 */
.aurora {
  background:
    radial-gradient(70% 58% at 6% -8%, #e8f0fe 0%, rgba(232, 240, 254, 0) 60%),
    radial-gradient(54% 46% at 94% 0%, #e6f4ea 0%, rgba(230, 244, 234, 0) 58%),
    radial-gradient(90% 60% at 50% 116%, #eef1f6 0%, rgba(238, 241, 246, 0) 68%),
    linear-gradient(180deg, #fcfdff 0%, #f7f9fd 46%, #f2f5fa 100%);
}
.aurora__blob { display: none; }
.aurora__scrim {
  background: linear-gradient(180deg,
    rgba(255, 255, 255, .5) 0%,
    rgba(255, 255, 255, .1) 52%,
    rgba(255, 255, 255, 0) 100%);
}
.aurora__grain { opacity: .045; }

/* 左侧文案：深色字 */
.pitch { color: var(--ink); text-shadow: none; }
.pitch__title { font-size: clamp(30px, 3.1vw, 42px); font-weight: 500; letter-spacing: -.03em; }
.pitch__lede { margin-top: 20px; color: var(--ink-3); }

/* 顶栏返回 */
.topbar__back {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-2);
  box-shadow: var(--shadow-1);
}
.topbar__back:hover { background: var(--surface-2); border-color: #d5d7da; color: var(--ink); }

/* 卡片：白毛玻璃 + Google 投影 */
.card { width: 500px; border-radius: 20px; }
.card::before {
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}

/* 主按钮：谷歌蓝 */
.btn {
  background: var(--blue);
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(26, 115, 232, .2);
}
.btn:hover:not(:disabled) {
  background: var(--blue-hover);
  box-shadow: 0 2px 8px rgba(26, 115, 232, .28);
}
.btn:active:not(:disabled) { background: var(--blue-press); }
.btn--ghost {
  background: #fff;
  color: var(--ink-2);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn--ghost:hover:not(:disabled) {
  background: var(--surface-2);
  border-color: #d5d7da;
  color: var(--ink);
  box-shadow: none;
}

/* 分段控件：胶囊 + 白色滑块 */
.segmented { background: var(--surface-3); border-radius: 999px; padding: 4px; }
.segmented a { border-radius: 999px; font-size: 13px; color: var(--ink-3); }
.segmented a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.segmented__pill { border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(60, 64, 67, .18); }

/* 输入框 */
.control input {
  border-color: var(--line);
  border-radius: 12px;
  background: #fff;
}
.control input:hover { border-color: #c9ccd1; }
.control input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, .12);
}
.field__label { color: var(--ink-3); }
.field.is-invalid .control input { border-color: var(--danger); }

/* 链接统一蓝色 */
.linkbtn, .invite-hint a, .card__legal a, .check a, .foot a { color: var(--blue-text); }
.linkbtn:hover { color: var(--blue-press); }
.card__legal, .invite-hint { color: var(--ink-4); }

/* 英文等宽微标签在官网体系里没有，隐藏 */
.label-en { display: none; }

/* 步骤条：蓝色实心序号 */
.steps__dot { font-family: inherit; font-size: 11px; }
.steps__item.is-active { background: transparent; color: var(--ink); }
.steps__item.is-active .steps__dot { background: var(--blue); color: #fff; }
.steps__item.is-done .steps__dot { background: var(--blue-soft); color: var(--blue-text); }

/* 勾选框 */
.check input:checked ~ .check__box { background: var(--blue); border-color: var(--blue); }
.check:hover .check__box { border-color: var(--ink-4); }

/* 页脚 */
.foot { color: var(--ink-4); text-shadow: none; }
.foot a { color: var(--ink-3); }

/* 密码强度 */
.strength__text { color: var(--ink-4); }

/* 顶栏品牌：官网是「蓝底白点」，不是白色片 */
.brand { color: var(--ink); text-shadow: none; }
.brand__mark {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 2px 8px rgba(26, 115, 232, .28);
}

/* 窄屏卡片回到满宽（上面的 width: 500px 只用于桌面） */
@media (max-width: 900px) {
  .card { width: 100%; }
  .segmented { border-radius: 999px; }
}

/* 步骤条统一成「三个小圆点 + 文字」的 Google 风格 */
.steps { gap: 0; }
.steps__item {
  min-height: 30px;
  padding: 0 8px 0 0;
  background: transparent !important;
  color: var(--ink-4);
  font-size: 12px;
  font-weight: 400;
  gap: 6px;
}
.steps__dot {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--ink-3);
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 0;
}
.steps__item.is-active { color: var(--ink); font-weight: 500; }
.steps__item.is-active .steps__dot { background: var(--blue); color: #fff; }
.steps__item.is-done { color: var(--ink-3); }
.steps__item.is-done .steps__dot { background: var(--blue-soft); color: var(--blue-text); }
