/* Sign-in (approved night-map mockup, Nov 12, 2026). The map is the same prerendered
   Condition One night world: full width, east to west, one loop a minute. Reduced motion
   holds the first frame, centred on 20°E. */

.signin-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: #060b11; }

.night-map {
  --map-h: 100vh;
  --map-w: calc(var(--map-h) * 3200 / 1136);
  --pan0: calc(50vw - var(--map-w) * 200 / 360);
  position: fixed; inset: 0; overflow: hidden; z-index: 0; background: #061020;
  pointer-events: none;
}
@supports (height: 100dvh) {
  .night-map { --map-h: 100dvh; }
}
.night-map-track {
  display: flex; height: var(--map-h); width: calc(var(--map-w) * 2);
  transform: translate3d(var(--pan0), 0, 0); will-change: transform;
}
@media (prefers-reduced-motion: no-preference) {
  .night-map-track { animation: night-drift 60s linear infinite; }
}
@keyframes night-drift {
  from { transform: translate3d(var(--pan0), 0, 0); }
  to { transform: translate3d(calc(var(--pan0) - var(--map-w)), 0, 0); }
}
.night-map img {
  display: block; width: var(--map-w); height: var(--map-h); max-width: none; flex: none;
}

.night-scrim {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(6, 11, 17, 0.78), rgba(6, 11, 17, 0.28) 22%, rgba(6, 11, 17, 0.28) 58%, rgba(6, 11, 17, 0.82)),
    rgba(6, 11, 17, 0.2);
}

.signin-main {
  position: relative; z-index: 1; flex: 1; display: flex;
  align-items: safe center; justify-content: safe center; overflow: auto;
  padding: 28px 16px 12px;
}
.signin-card {
  width: min(420px, 100%); padding: 28px 22px 22px;
  border: 1px solid rgba(52, 70, 86, 0.95); border-radius: 18px;
  background: rgba(13, 21, 29, 0.94); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.c1-wordmark {
  margin: 0 0 22px; text-align: center; font-size: 28px; font-weight: 800;
  letter-spacing: 0.08em; line-height: 1;
}
.c1-condition { color: #f2a900; }
.c1-one { color: #3fd1a5; }
.signin-heading { margin: 0 0 16px; font-size: 22px; font-weight: 800; }

.signin-form { display: flex; flex-direction: column; gap: 14px; }
.signin-field { display: flex; flex-direction: column; gap: 6px; }
.signin-field span,
.signin-field > label { color: #bcc9da; font-size: 14px; font-weight: 700; }
.signin-input { display: flex; align-items: center; gap: 8px; }
.signin-field input[type="email"],
.signin-field input[type="password"],
.signin-field input[type="text"] {
  flex: 1; width: 100%; min-height: 48px; padding: 0 12px; border-radius: 8px;
  border: 1px solid #344656; background: #0d151d; color: #e9eef2; font: 16px/1.4 inherit;
}
.show-password {
  flex: none; min-width: 64px; min-height: 48px; padding: 0 10px; border-radius: 8px;
  border: 1px solid #344656; background: transparent; color: #8fd9ff;
  font: 700 15px/1 inherit; cursor: pointer;
}
.check-row { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; }
.check-row input { width: 22px; height: 22px; margin-top: 2px; accent-color: #f2a900; }
.check-row strong { display: block; font-size: 16px; }
.check-row small { display: block; color: #bcc9da; font-size: 14px; line-height: 1.4; }
.signin-error { color: #ffb4a8; font-weight: 700; }
.signin-check, .signin-blocked { display: flex; flex-direction: column; gap: 14px; }
.signin-blocked { padding: 4px 0 8px; }
.panel-back {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 0; border: 0; background: transparent; color: #8fd9ff; font: 700 16px/1 inherit; cursor: pointer;
}

.signin-footer {
  position: relative; z-index: 1; display: flex; justify-content: center;
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
}
.signin-footer a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  color: #f4efe4; font-weight: 700; text-decoration: none;
}
.signin-footer a:hover { color: #f4efe4; }
.signin-footer img { width: 20px; height: 20px; border-radius: 5px; }

.signin-page noscript { position: relative; z-index: 1; padding: 0 16px 16px; text-align: center; color: #bcc9da; }

@media (max-width: 380px) {
  .c1-wordmark { font-size: 24px; }
  .signin-card { padding: 22px 16px 16px; }
}
