:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: #0f172a;
  background: #f3f4f6;
}
* { box-sizing: border-box; }
body {
  position: relative; isolation: isolate; margin: 0; min-height: 100svh;
  display: grid; place-items: center; padding: 24px;
}
.login-card {
  position: relative; z-index: 1; width: min(100%, 420px); padding: 32px;
  background: white; border: 1px solid #e5e7eb; border-radius: 8px; box-shadow: 0 8px 36px #0f172a0a;
}
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; color: #016085; font-size: 14px; font-weight: 700; }
.brand img, .welcome-brand { object-fit: contain; border-radius: 8px; }
h1 { margin: 0 0 8px; font-size: 24px; line-height: 1.3; }
.login-intro { margin: 0 0 20px; color: #475569; font-size: 14px; }
.login-period {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 16px; margin: 0 0 24px;
}
.login-period :is(h2, strong) { display: block; margin: 0 0 4px; color: #334155; font-size: 15px; }
.login-period p { margin: 0; color: #016085; font-size: 14px; font-weight: 600; }
label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
input {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid #cbd5e1; border-radius: 6px;
  background: white; color: #0f172a; font: 500 22px Inter, "Segoe UI", sans-serif; letter-spacing: 8px;
}
.hint { display: block; margin-top: 8px; color: #475569; font-size: 12px; }
input[aria-invalid=true] { border-color: #b91c1c; }
.error { margin: 12px 0 0; color: #b91c1c; font-size: 13px; }
.primary {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%;
  min-height: 44px; padding: 0 16px; border: 0; border-radius: 6px;
  background: #016085; color: white; font: 600 14px Inter, "Segoe UI", sans-serif; cursor: pointer;
}
.login-card .primary { margin-top: 24px; }
.primary:hover { background: #014b68; }
.primary:disabled { opacity: .65; cursor: wait; }
:where(input, button):focus-visible { outline: 2px solid #087d9f; outline-offset: 3px; }
.welcome-brand { display: block; margin-bottom: 12px; }
#welcome .login-period { margin: 16px 0; }
#welcome .login-period p { color: #016085; }
#session-error { margin-bottom: 12px; }
@media (max-width: 480px) { .login-card { padding: 24px; } }

.tracking-background{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:0}
.tracking-glow{position:absolute;width:min(75vw,850px);height:min(75vw,850px);border-radius:50%;opacity:.65;animation:tracking-drift 28s ease-in-out infinite alternate;will-change:transform}
.glow-blue{left:-18%;top:-30%;background:radial-gradient(circle,#0284c71c 0,#0284c70c 42%,transparent 70%)}
.glow-teal{right:-16%;bottom:-34%;background:radial-gradient(circle,#0d948824 0,#0d94880b 44%,transparent 70%);animation-duration:34s;animation-delay:-12s}
.tracking-routes{width:100%;height:100%;fill:none;stroke-linecap:round}
.route-tracks{stroke:#016085;stroke-width:1;opacity:.075}
.route-pulses{stroke:#0284c7;stroke-width:2.5;stroke-dasharray:16 740;opacity:.2;animation:tracking-route 32s linear infinite}
.route-pulses use:nth-child(2){stroke:#0d9488}
.route-nodes{fill:#0284c7;stroke:#fff;stroke-width:2;opacity:.18}
@keyframes tracking-drift{from{transform:translate3d(0,0,0)}to{transform:translate3d(8%,10%,0)}}
@keyframes tracking-route{from{stroke-dashoffset:1512}to{stroke-dashoffset:0}}
@media(prefers-reduced-motion:reduce){.tracking-glow,.route-pulses{animation:none;will-change:auto}}
