/* Account window: ink surfaces, mint accents, and an editorial heading. */
@font-face {
  font-family: 'Auth Noto Serif';
  src: url('./fonts/auth-noto-serif-sc.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Auth Noto Sans';
  src: url('./fonts/auth-noto-sans-sc.woff2?v=2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
.auth-overlay {
  z-index: 3100;
  background: rgba(5, 12, 17, .66);
  backdrop-filter: blur(16px) saturate(.65);
  -webkit-backdrop-filter: blur(16px) saturate(.65);
}
.auth-overlay.open { animation: auth-backdrop-in .25s ease both; }
.auth-modal {
  --auth-ink: #132024;
  --auth-surface: #19292e;
  --auth-text: #f1f5ee;
  --auth-muted: #a5b7b7;
  --auth-accent: #b5ebce;
  --auth-border: rgba(203, 229, 221, .14);
  display: none;
  position: fixed;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(848px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #526c6b transparent;
  z-index: 3101;
  color: var(--auth-text);
  font-family: 'Auth Noto Sans', 'Noto Sans SC', sans-serif;
  font-weight: 400;
  color-scheme: dark;
  outline: none;
  border-radius: 28px;
}
.auth-modal.open {
  display: grid;
  grid-template-columns: minmax(0, 472px) minmax(0, 348px);
  gap: 28px;
  align-items: start;
}
.auth-modal button, .auth-modal input, .auth-modal a { font-family: inherit; -webkit-tap-highlight-color: transparent; }
.auth-modal button, .auth-modal a { touch-action: manipulation; }
.auth-modal :is(button, a):focus-visible {
  outline: 2px solid var(--auth-accent);
  outline-offset: 4px;
}
.auth-side, .auth-main { min-width: 0; padding: 0; background: none; border: none; }
.auth-card, .auth-info-card {
  position: relative;
  border: 1px solid var(--auth-border);
  overflow: hidden;
  isolation: isolate;
}
.auth-card {
  padding: 32px 38px 26px;
  border-radius: 28px;
  background: radial-gradient(ellipse at 100% 0, rgba(103, 166, 146, .12), transparent 48%), var(--auth-ink);
  box-shadow: inset 0 1px 0 rgba(241, 255, 248, .045);
}
.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 38px;
  width: 76px;
  height: 2px;
  background: var(--auth-accent);
}
.auth-card-head, .auth-identity { display: flex; align-items: center; }
.auth-card-head { justify-content: space-between; gap: 12px; margin-bottom: 30px; }
.auth-identity { gap: 12px; }
.auth-brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  border: 1px solid rgba(181, 235, 206, .22);
  background: rgba(181, 235, 206, .07);
  color: var(--auth-accent);
}
.auth-brand-mark svg { width: 22px; height: 22px; }
.auth-eyebrow { color: var(--auth-muted); font-size: 10px; letter-spacing: .2em; font-weight: 500; }
.auth-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: rgba(217, 239, 226, .045);
  color: var(--auth-muted);
  cursor: pointer;
  transition: color .2s, background .2s, transform .2s;
}
.auth-close svg { width: 18px; height: 18px; }
.auth-close:hover { color: var(--auth-text); background: rgba(217, 239, 226, .12); transform: rotate(90deg); }
.auth-heading { margin-bottom: 26px; }
.auth-card-title {
  margin: 0;
  color: var(--auth-text);
  font-family: 'Auth Noto Serif', 'Noto Serif SC', serif;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: .055em;
}
.auth-card-sub { margin-top: 10px; color: var(--auth-muted); font-size: 13px; line-height: 1.8; }
.auth-tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 24px; border: 1px solid var(--auth-border); border-radius: 12px; background: rgba(4, 15, 18, .32); }
.auth-tab {
  flex: 1;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--auth-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.auth-tab:hover { color: var(--auth-text); }
.auth-tab.active { color: var(--auth-accent); background: #2b403f; border-color: rgba(181, 235, 206, .12); box-shadow: 0 2px 5px rgba(0, 0, 0, .1); }
.auth-panel { display: none; }
.auth-panel.active { display: block; animation: auth-content-in .25s ease both; }
.auth-field { margin-bottom: 18px; }
.auth-field label { display: block; margin-bottom: 9px; color: #c5d2cf; font-size: 12px; font-weight: 500; }
.auth-field-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.auth-input-wrap { position: relative; }
.auth-input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 15px;
  border: 1px solid rgba(190, 217, 211, .18);
  border-radius: 11px;
  background: #1b2c31;
  color: var(--auth-text);
  font-size: 14px;
  outline: none;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.auth-input-lg { padding-left: 45px; }
.auth-input-has-right { padding-right: 50px; }
.auth-input::placeholder { color: #8caaa9; opacity: 1; }
.auth-input:hover { border-color: rgba(190, 217, 211, .32); }
.auth-input:focus { background: #203438; border-color: #a3cfb8; box-shadow: 0 0 0 3px rgba(181, 235, 206, .1); }
.auth-input:autofill { background: #203438; color: var(--auth-text); }
.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover,
.auth-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--auth-text);
  caret-color: var(--auth-text);
  -webkit-box-shadow: 0 0 0 1000px #203438 inset;
}
.auth-input-icon { position: absolute; top: 50%; left: 15px; transform: translateY(-50%); width: 18px; height: 18px; color: #8eaba7; pointer-events: none; z-index: 1; transition: color .2s; }
.auth-input-icon svg { display: block; width: 100%; height: 100%; }
.auth-input-wrap:focus-within .auth-input-icon { color: var(--auth-accent); }
.auth-password-toggle { position: absolute; inset: 4px 4px 4px auto; display: grid; place-items: center; width: 44px; border: 0; border-radius: 8px; color: #a2bcb5; background: transparent; cursor: pointer; }
.auth-password-toggle svg { width: 19px; height: 19px; }
.auth-password-toggle:hover { color: var(--auth-accent); background: rgba(181, 235, 206, .06); }
.auth-eye-slash { display: none; }
.auth-password-toggle[aria-pressed="true"] .auth-eye-slash { display: block; }
.auth-link-muted { padding: 0; border: 0; background: transparent; color: var(--auth-muted); font-size: 12px; cursor: pointer; transition: color .2s; }
.auth-link-muted:hover { color: var(--auth-accent); }
.auth-submit {
  position: relative;
  display: block;
  width: 100%;
  height: 52px;
  margin-top: 24px;
  padding: 0 45px;
  border: 1px solid rgba(220, 255, 233, .24);
  border-radius: 11px;
  color: #18382e;
  background: var(--auth-accent);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 5px 16px rgba(2, 15, 10, .14);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.auth-submit::after { content: '→'; position: absolute; right: 19px; top: 50%; transform: translateY(-50%); font-size: 21px; font-weight: 400; transition: right .2s; }
.auth-submit:hover:not(:disabled) { background: #c8f4dc; box-shadow: 0 6px 22px rgba(125, 212, 160, .12); transform: translateY(-1px); }
.auth-submit:hover:not(:disabled)::after { right: 15px; }
.auth-submit:active:not(:disabled) { transform: translateY(0); }
.auth-submit[aria-busy="true"]::after { content: ''; width: 15px; height: 15px; top: calc(50% - 8px); border: 2px solid rgba(24, 56, 46, .25); border-top-color: #18382e; border-radius: 50%; animation: auth-spin .7s linear infinite; }
.auth-register-prompt { display: flex; align-items: baseline; justify-content: center; gap: 5px; margin-top: 18px; color: var(--auth-muted); font-size: 12px; }
.auth-register-prompt button { border: 0; background: none; color: var(--auth-accent); font-size: inherit; cursor: pointer; padding: 4px; }
.auth-register-prompt button:hover { text-decoration: underline; text-underline-offset: 4px; }
.auth-register-prompt button span { margin-left: 3px; }
.auth-alt-btn { display: block; width: 100%; min-height: 42px; margin-top: 12px; padding: 8px; border-radius: 9px; border: 1px solid var(--auth-border); background: transparent; color: #c2d4cc; font-size: 13px; cursor: pointer; }
.auth-alt-btn:hover { background: rgba(181, 235, 206, .06); color: var(--auth-accent); }
.auth-divider { display: flex; align-items: center; gap: 16px; margin: 22px 0 16px; color: var(--auth-muted); font-size: 11px; letter-spacing: .08em; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--auth-border); }
.auth-socials { display: flex; align-items: center; justify-content: center; gap: 18px; }
.auth-social { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(184, 225, 242, .22); border-radius: 50%; background: #223841; color: #8cdaff; text-decoration: none; transition: color .2s, background .2s, transform .2s, border-color .2s, box-shadow .2s; }
.auth-social svg { display: block; width: 25px; height: 25px; fill: currentColor; }
.auth-social-qq:hover { color: #d9f3ff; background: #225970; border-color: #64cafa; transform: translateY(-3px); box-shadow: 0 6px 20px rgba(18, 183, 245, .12); }
.auth-social-wechat { color: #99e4b1; border-color: rgba(153, 228, 177, .22); background: #203c33; }
.auth-social-wechat:hover { color: #d7ffe5; background: #275b41; border-color: #99e4b1; transform: translateY(-3px); }
.auth-note { margin: 14px 0 0; color: #91a8a5; text-align: center; font-size: 10px; line-height: 1.8; }
.auth-field-hint { margin-top: 8px; color: var(--auth-muted); font-size: 11px; line-height: 1.7; }
.auth-two-factor-icon { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 18px; border: 1px solid var(--auth-border); background: rgba(181, 235, 206, .08); color: var(--auth-accent); }
.auth-two-factor-icon svg { width: 30px; height: 30px; }
.auth-two-factor-copy { margin-bottom: 20px; color: var(--auth-muted); font-size: 13px; line-height: 1.8; text-align: center; }
.auth-two-factor-input { text-align: center; font-size: 22px; letter-spacing: .2em; text-transform: uppercase; }
.auth-info-stack { display: flex; flex-direction: column; gap: 18px; }
.auth-aside-heading { padding: 10px 4px 4px; }
.auth-aside-heading .auth-eyebrow { color: #b2c9c3; font-size: 9px; }
.auth-aside-heading p { margin-top: 10px; font-family: 'Auth Noto Serif', 'Noto Serif SC', serif; color: #e4ece2; font-size: 23px; letter-spacing: .04em; }
.auth-info-card { padding: 23px; border-radius: 22px; background: rgba(21, 37, 42, .94); }
.auth-weather-card { background: radial-gradient(ellipse at 100% 0, rgba(97, 169, 144, .18), transparent 75%), rgba(23, 43, 46, .96); }
.auth-info-badge, .auth-status-label-row { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; color: #c2d5d1; font-size: 11px; }
.auth-status-dot, .auth-system-dot { display: inline-block; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: #a5dfb9; box-shadow: 0 0 0 4px rgba(165, 223, 185, .07); }
.auth-system-dot { background: #85bdcf; box-shadow: 0 0 0 4px rgba(133, 189, 207, .07); }
.auth-weather-hero, .auth-weather-left { display: flex; align-items: center; }
.auth-weather-hero { justify-content: space-between; gap: 10px; margin-bottom: 21px; }
.auth-weather-left { gap: 16px; }
.auth-weather-icon-large { display: grid; place-items: center; width: 44px; height: 44px; color: #cceadf; }
.auth-weather-icon-large svg { width: 100%; height: 100%; }
.auth-weather-temp-main { font-size: 43px; font-weight: 400; line-height: 1.1; letter-spacing: -.04em; color: var(--auth-text); font-variant-numeric: tabular-nums; }
.auth-weather-cond-line { margin-top: 5px; color: var(--auth-muted); font-size: 11px; }
.auth-weather-aqi { display: inline-flex; align-items: center; border: 1px solid rgba(165, 223, 185, .12); border-radius: 6px; background: rgba(165, 223, 185, .08); padding: 5px 7px; color: #b9e9c8; font-size: 10px; white-space: nowrap; }
.auth-weather-meta { display: flex; justify-content: space-between; gap: 10px; color: #a5bebb; font-size: 10px; line-height: 1.7; }
.auth-weather-meta > :last-child { flex-shrink: 0; }
.auth-weather-meta-sub { margin-top: 8px; color: #91aba8; font-size: 9px; }
.auth-weather-hourly { margin-top: 16px; padding-bottom: 4px; }
.auth-modal .dash-weather-hourly { scrollbar-color: rgba(176, 214, 202, .25) transparent; }
.auth-modal .dash-weather-hour { border-color: rgba(184, 225, 210, .1); background: rgba(184, 225, 210, .035); }
.auth-modal .dash-weather-hour > span, .auth-modal .dash-weather-hour > small { color: #a5bebb; }
.auth-modal .dash-weather-hour > i { color: #c9e8d9; filter: none; }
.auth-modal .dash-weather-hour.current { background: rgba(181, 235, 206, .1); border-color: rgba(181, 235, 206, .24); }
.auth-progress-group { margin-bottom: 20px; }
.auth-progress-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; color: #adc2be; font-size: 11px; }
.auth-progress-head > :last-child { color: #d8e8e0; font-variant-numeric: tabular-nums; }
.auth-progress-bar { height: 4px; overflow: hidden; border-radius: 999px; background: rgba(198, 227, 215, .1); }
.auth-progress-fill { height: 100%; border-radius: inherit; transition: width .7s ease; }
.auth-progress-fill-blue { background: #88bacb; }
.auth-progress-fill-purple { background: #d3c29a; }
.auth-progress-fill-cyan { background: #a9ddc4; }
.auth-system-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--auth-border); padding-top: 16px; margin-top: 24px; font-size: 10px; color: #9db4ae; }
.auth-system-ok { display: inline-flex; align-items: center; gap: 8px; color: #bcdfc8; font-variant-numeric: tabular-nums; }
.rail-login-entry { color: #b5ebce; background: rgba(181, 235, 206, .11); border-color: rgba(181, 235, 206, .22); }
.rail-login-entry:hover { color: #d8f9e6; background: rgba(32, 61, 53, .96); border-color: rgba(181, 235, 206, .35); box-shadow: 0 8px 24px rgba(0, 20, 12, .18); }
.auth-modal.open .auth-side { animation: auth-content-in .4s cubic-bezier(.2, .75, .25, 1) both; }
.auth-modal.open .auth-main { animation: auth-content-in .45s .07s cubic-bezier(.2, .75, .25, 1) both; }
@keyframes auth-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes auth-content-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes auth-spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
  .auth-modal { width: min(472px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); }
  .auth-modal.open { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .auth-main { display: none; }
  .auth-card { padding: 28px 28px 24px; border-radius: 24px; }
  .auth-input { font-size: 16px; }
}
@media (max-width: 380px) {
  .auth-card { padding: 24px 21px 22px; }
  .auth-card-head { margin-bottom: 24px; }
  .auth-card-title { font-size: 32px; }
  .auth-eyebrow { font-size: 9px; }
}
@media (max-height: 740px) {
  .auth-card { padding-top: 24px; padding-bottom: 22px; }
  .auth-card-head { margin-bottom: 22px; }
  .auth-heading { margin-bottom: 22px; }
  .auth-tabs { margin-bottom: 20px; }
  .auth-divider { margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-overlay.open, .auth-modal.open .auth-side, .auth-modal.open .auth-main, .auth-panel.active { animation: none; }
  .auth-modal *, .auth-modal *::after, .rail-login-entry { transition: none; }
}
