@font-face {
  font-family: 'Voyager Title';
  src: url('./fonts/zcool-qingke-huangyou-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-024F;
}
@font-face {
  font-family: 'Voyager Title';
  src: url('./fonts/zcool-qingke-huangyou.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0250-FFFF;
}
.galaxy-scene {
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  -webkit-font-smoothing: antialiased;
}
.galaxy-title {
  font-family: 'Voyager Title', 'Microsoft YaHei', sans-serif;
  font-weight: 400;
  letter-spacing: 0.075em;
  transform: skewX(-5deg);
  text-shadow: 0 2px 0 #a8c3ff18, 0 0 34px #b5d6ff20;
}
.galaxy-scene .galaxy-locale button { color: #b5bdca; background: transparent; }
.galaxy-scene .galaxy-locale button:hover { color: #f3f6ff; background: #e4edff0d; }
.galaxy-scene .galaxy-locale button > span:first-child { display: none; }
.galaxy-scene .galaxy-locale button > span:nth-child(2) { display: inline; font-size: 12px; letter-spacing: 0.08em; }
.galaxy-scene .galaxy-locale .absolute { background: #141f34; border-color: #c7d9ff24; }
.galaxy-scene .galaxy-locale .absolute button { font-size: 13px; }
.galaxy-hint { color: #bdc2cc; animation: galaxy-hint-breathe 5.6s ease-in-out infinite; }
@keyframes galaxy-hint-breathe { 0%, 100% { opacity: 0.32; } 50% { opacity: 0.58; } }
@media (prefers-reduced-motion: reduce) { .galaxy-hint { animation: none; opacity: 0.45; } }

.galaxy-scene {
  --px: 0;
  --py: 0;
  --warp: 0;
  --shake-x: 0px;
  --shake-y: 0px;
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: hidden;
  background: #0b1221;
  color: #f3f6ff;
  color-scheme: dark;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: pan-y;
}
.universe {
  position: absolute;
  z-index: 0;
  inset: -24px;
  pointer-events: none;
  transform: translate3d(var(--shake-x), var(--shake-y), 0);
}
.universe canvas { display: block; width: 100%; height: 100%; }
.glass {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at calc(50% + var(--px) * 18%) calc(30% + var(--py) * 12%), #e4edff08, transparent 65%),
    linear-gradient(115deg, #ffffff05, transparent 38%, #d8eaff03);
  backdrop-filter: blur(0.35px);
  -webkit-backdrop-filter: blur(0.35px);
  box-shadow: inset 0 0 140px #050a1820;
}
@media (prefers-reduced-motion: reduce) { .universe { transform: none; } }
@media (prefers-reduced-transparency: reduce) { .glass { backdrop-filter: none; -webkit-backdrop-filter: none; } }

* { box-sizing: border-box; }
body { margin: 0; background: #0b1221; }
a { color: #cbd5e5; text-decoration: none; text-underline-offset: 4px; }
a:hover { color: #f3f6ff; text-decoration: underline; }
.auth-page { display: flex; flex-direction: column; }
.auth-header { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; min-height: 76px; padding: 20px clamp(24px, 4vw, 64px); color: #a8b2c3; font-size: 12px; letter-spacing: .04em; }
.auth-main { position: relative; z-index: 2; display: grid; flex: 1; place-items: center; padding: 24px 24px 40px; }
.auth-content { width: min(100%, 420px); }
.auth-brand { margin-bottom: 30px; text-align: center; transform: translate3d(calc(var(--px) * -6px), calc(var(--py) * -4px), 0); }
.auth-logo { display: block; width: 86px; height: auto; margin: 0 auto 20px; filter: drop-shadow(0 10px 22px #050b2140); }
.auth-brand h1 { margin: 0; font-size: clamp(28px, 3.4vw, 36px); line-height: 1.5; letter-spacing: .045em; overflow-wrap: anywhere; }
.auth-brand p { margin: 10px 0 0; color: #a8b2c3; font-size: 12px; line-height: 1.8; letter-spacing: .06em; }
.auth-panel { padding: 28px; border: 1px solid #dce7ff1c; border-radius: 8px; background: #0c1424ad; box-shadow: 0 16px 60px #03071314; }
.auth-panel h2 { margin: 0; color: #e1e5ee; text-align: center; font-size: 21px; font-weight: 400; letter-spacing: .06em; line-height: 1.6; }
.intro { margin: 8px 0 28px; color: #a8b2c3; text-align: center; font-size: 13px; line-height: 1.8; }
form, fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
label { display: block; margin: 22px 0 8px; color: #bbc3d1; font-size: 12px; font-weight: 400; letter-spacing: .045em; }
input { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #cedbfa29; border-radius: 5px; background: #e4edff05; color: #eef1f7; font: inherit; font-size: 14px; box-shadow: none; user-select: text; }
input::placeholder { color: #9aa5b7; }
input:hover:not(:disabled) { border-color: #cedbfa4d; }
input:focus { border-color: #c8d8f294; outline: none; box-shadow: 0 0 0 3px #c8d8f20a; }
input:-webkit-autofill { -webkit-text-fill-color: #eef1f7; box-shadow: 0 0 0 1000px #111a2b inset; caret-color: #eef1f7; }
button { width: 100%; min-height: 46px; margin-top: 24px; padding: 10px 14px; border: 1px solid #dce7ff4d; border-radius: 5px; background: #e4edff0a; color: #eef1f7; font: inherit; font-size: 14px; letter-spacing: .05em; cursor: pointer; transition: background 180ms ease, border-color 180ms ease; white-space: nowrap; }
button:hover:not(:disabled) { border-color: #dce7ff94; background: #e4edff16; }
button:focus-visible, a:focus-visible { outline: 2px solid #c7d9ff; outline-offset: 4px; }
button:disabled, fieldset:disabled { opacity: .55; cursor: not-allowed; }
.secondary { background: transparent; }
.notice { margin: 16px 0; padding: 12px 14px; border: 1px solid #c7d9ff35; border-radius: 5px; color: #ccd5e4; background: #c7d9ff08; font-size: 13px; line-height: 1.8; }
.error { color: #ffb6c0; border-color: #e28c9760; background: #e28c970a; }
.code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.code-row button { width: auto; margin: 0; font-size: 12px; }
.form-status { margin: 8px 0 0; color: #b8c3d5; font-size: 12px; line-height: 1.8; }
.form-status:empty { display: none; }
.environment { margin: 18px 0 0; color: #a0abbd; font-size: 11px; text-align: center; }
.auth-footer { margin-top: 24px; text-align: center; font-size: 13px; line-height: 1.9; color: #a8b2c3; }
.auth-footer a { margin-left: 6px; }
.auth-copyright { position: relative; z-index: 2; padding: 18px 24px 24px; color: #a0abbd; font-size: 11px; text-align: center; letter-spacing: .045em; }
.choice { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.8; }
.choice input { flex: 0 0 17px; width: 17px; min-height: 17px; accent-color: #b7caed; }
.account-name { color: #dce5f6; }
.error-status { margin: 0 0 12px; color: #cbd5e5; text-align: center; font-size: 48px; line-height: 1.2; letter-spacing: .08em; }
.button-link { display: block; min-height: 46px; padding: 12px 14px; border: 1px solid #dce7ff4d; border-radius: 5px; background: #e4edff0a; color: #eef1f7; text-align: center; font-size: 14px; }
.button-link:hover { border-color: #dce7ff94; background: #e4edff16; text-decoration: none; }
@media (max-width: 600px) {
  .auth-header { min-height: 64px; padding: 16px 20px; }
  .auth-main { padding: 20px 20px 32px; }
  .auth-logo { width: 76px; margin-bottom: 16px; }
  .auth-brand { margin-bottom: 24px; }
  .auth-brand h1 { font-size: clamp(25px, 7vw, 32px); letter-spacing: .025em; }
  .auth-panel { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) { .auth-brand { transform: none; } button { transition: none; } }
@media (prefers-reduced-transparency: reduce) { .auth-panel { background: #101a2c; } }
