:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #f5f5f7;
  background: #000;
  font-synthesis: none;
  --line: #303036;
  --muted: #a1a1a6;
  --blue: #3b8cff;
}

* { box-sizing: border-box; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
.nw { white-space: nowrap; }

.entrance {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 38px 20px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 49% 40%, #07101f 0%, #03060c 39%, transparent 70%),
    radial-gradient(ellipse at 83% 88%, #040910 0%, transparent 37%),
    #000;
}
/* 与首页同源的呼吸光晕，给入口一点“活”的背景 */
.entrance::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(1140px, 150vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(59,140,255,.16) 0%, rgba(59,140,255,.05) 42%, transparent 68%);
  animation: gate-breath 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes gate-breath {
  0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(.96); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
}

.access {
  position: relative;
  width: min(100%, 880px);
  min-width: 0;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid transparent;
  border-radius: 27px;
  background:
    linear-gradient(166deg, #121217 0%, #0c0d11 100%) padding-box,
    linear-gradient(125deg, #2d2d34 5%, #3d4c61 50%, #84a2c0 72%, #292b33 100%) border-box;
  box-shadow: 0 46px 90px -47px #123b79, inset 0 1px 0 rgba(255,255,255,.04);
  overflow: hidden;
}
/* 顶边流光，呼应首页卡片 */
.access::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120,175,255,.55) 30%, rgba(190,220,255,.85) 50%, rgba(120,175,255,.55) 70%, transparent);
  opacity: .8;
  animation: gate-sheen 7s ease-in-out infinite;
}
@keyframes gate-sheen {
  0%, 100% { transform: translateX(-32%); opacity: .45; }
  50% { transform: translateX(32%); opacity: .95; }
}

.brand { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.brand img { display: block; width: 240px; height: auto; max-width: 100%; }
.edition {
  white-space: nowrap;
  border: 1px solid #405976;
  border-radius: 100px;
  color: #91c2ff;
  padding: 5px 11px;
  font-size: 11px;
  letter-spacing: .16em;
  background: rgba(59,140,255,.06);
}

.access h1 { font-size: clamp(34px, 4vw, 52px); font-weight: 700; letter-spacing: -.038em; margin: 27px 0 10px; line-height: 1.14; }
.lede { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.62; max-width: 62ch; }
form { margin-top: 26px; }

.fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "email invitation" "code send";
  gap: 17px 21px;
  padding: 20px;
  background: #16171b;
  border: 1px solid #2c2c31;
  border-radius: 15px;
}

.email { grid-area: email; }
.invitation { grid-area: invitation; }
.code { grid-area: code; }
label { display: grid; gap: 7px; color: #e9e9ee; font-size: 14px; font-weight: 520; min-width: 0; }
input { width: 100%; height: 46px; color: #f5f5f7; background: #0f1014; border: 1px solid var(--line); border-radius: 11px; padding: 0 12px; font-size: 16px; transition: border-color .2s ease, box-shadow .2s ease; }
input:hover { border-color: #3a4353; }
input[name="code"] { font-variant-numeric: tabular-nums; letter-spacing: .16em; }
input:focus, button:focus-visible { outline: none; border-color: #5c9bff; box-shadow: 0 0 0 3px rgba(59,140,255,.18); }
button { position: relative; min-width: 0; min-height: 46px; padding: 8px 17px; border: 0; border-radius: 100px; cursor: pointer; font-size: 14px; font-weight: 640; overflow: hidden; isolation: isolate; -webkit-tap-highlight-color: transparent; }
button:focus-visible { outline: 2px solid #76abff; outline-offset: 2px; }

/* 卡片式流光：一层斜向反光掠过按钮表面 */
.send::after, .verify::after {
  content: "";
  position: absolute;
  inset: -60% -30%;
  z-index: 2;
  background: linear-gradient(112deg, transparent 38%, rgba(255,255,255,.05) 44%, rgba(255,255,255,.26) 50%, rgba(255,255,255,.05) 56%, transparent 62%);
  transform: translate3d(72%, 72%, 0);
  opacity: 0;
  transition: transform .62s cubic-bezier(.22,.61,.36,1), opacity .3s ease;
  pointer-events: none;
}
.send:hover:not(:disabled)::after, .verify:hover:not(:disabled)::after { transform: translate3d(-72%, -72%, 0); opacity: 1; }

.send { grid-area: send; align-self: end; color: #deebff; background: #1d293b; border: 1px solid #314662; font-variant-numeric: tabular-nums; transition: background .2s ease, border-color .2s ease; }
.send:hover:not(:disabled) { background: #253750; border-color: #43618a; }
.verify { min-width: 186px; color: #fff; background: #2f6fd6; font-size: 15px; box-shadow: 0 12px 28px -16px rgba(59,140,255,.9); transition: background .2s ease, box-shadow .25s ease; }
.verify:hover:not(:disabled) { background: #3a7ae4; box-shadow: 0 16px 34px -14px rgba(59,140,255,1); }
button:disabled { cursor: default; }
.send:disabled { color: #aabbd1; background: #151c26; }
.verify:disabled { opacity: .55; box-shadow: none; }
.actions { display: flex; align-items: center; gap: 15px 19px; flex-wrap: wrap; margin-top: 22px; }
.notice { grid-column: 1 / -1; color: #aebacb; font-size: 13px; line-height: 1.52; margin: 0; overflow-wrap: anywhere; }
.notice:empty { display: none; }
.notice.error { color: #ff9d9b; }

.device-card {
  margin: 18px 0 0;
  padding: 14px 18px 15px;
  border: 1px solid #23262d;
  border-radius: 14px;
  background: rgba(255,255,255,.02);
}
.dc-head { margin: 0 0 10px; font-size: 11.5px; letter-spacing: .08em; color: #7d8694; }
.dc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; }
.dc-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 12.5px; }
.dc-list span { color: #6f747d; white-space: nowrap; }
.dc-list b { color: #c9d6e6; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
@media (max-width: 560px) { .dc-list { grid-template-columns: 1fr; } }
.audit-note { margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

.gate-foot {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid #232329;
}
.gate-foot p { margin: 0; }
.apply { color: #9098a5; font-size: 13px; line-height: 1.6; }
.mails {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 9px;
  font-size: 13.5px;
}
.mails a {
  color: #9ec5ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(126,178,255,.35);
  padding-bottom: 1px;
  transition: color .2s ease, border-color .2s ease;
}
.mails a:hover { color: #cfe3ff; border-color: rgba(207,227,255,.75); }
.mails i { color: #4a4f59; font-style: normal; }
.note { margin-top: 11px !important; color: #6f747d; font-size: 12.5px; line-height: 1.6; }

input.invite-nudge {
  border-color: #ff625f;
  box-shadow: 0 0 0 3px rgba(255,98,95,.16);
  animation: invite-nudge .5s ease-out both;
}

@keyframes invite-nudge {
  16%, 48% { transform: translateX(-4px); }
  32%, 64% { transform: translateX(4px); }
  80% { transform: translateX(-2px); }
  100% { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .entrance::before, .access::before { animation: none; }
  .send::after, .verify::after { transition: none; }
  input.invite-nudge { animation: none; }
}

@media (max-width: 580px) {
  .entrance { padding: 22px 15px; }
  .access { padding: 24px 18px 21px; border-radius: 22px; }
  .brand { gap: 10px; }
  .brand img { width: 186px; }
  .edition { font-size: 10px; letter-spacing: .10em; padding: 4px 8px; }
  .access h1 { font-size: 33px; margin-top: 21px; }
  .lede { font-size: 14px; }
  .lede .nw { white-space: normal; }
  form { margin-top: 19px; }
  .fields { grid-template-columns: minmax(0, 1fr); grid-template-areas: "email" "invitation" "send" "code"; gap: 13px; padding: 14px; }
  .actions { display: grid; gap: 12px; margin-top: 16px; }
  .verify { width: 100%; min-width: 0; }
  .gate-foot { margin-top: 22px; padding-top: 17px; }
  .mails { font-size: 13px; gap: 8px; }
  .note .nw { white-space: normal; }
}
