@font-face {
  font-family: 'JetBrains Mono';
  src: url('/static/fonts/JetBrainsMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/static/fonts/JetBrainsMono-Bold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: #0a0c10;
  font-family: 'JetBrains Mono', monospace, sans-serif;
  color: #c8d6e5;
}

.login-scene {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 24px;
}

.login-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 640px;
  height: 640px;
  transform: translate(-50%, -50%);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}
.login-dish { width: 100%; height: 100%; overflow: visible; }
.ring { fill: none; stroke-width: 1.5; }
.ring-1 { stroke: #5ba3d066; animation: spin 60s linear infinite; }
.ring-2 { stroke: #56d88f55; animation: spin 40s linear infinite reverse; }
.ring-3 { stroke: #a06bd066; animation: spin 26s linear infinite; }
.hub { fill: #5ba3d0aa; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .ring { animation: none; }
}

.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 340px;
  background: #10141b;
  border: 1px solid #1e2a38;
  border-radius: 12px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 0 40px #00000066;
}

.login-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 4px;
}
.login-logo {
  font-size: 14px;
  font-weight: 600;
  color: #5ba3d0;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-shadow: 0 0 8px #5ba3d033;
}
.login-sub {
  font-size: 10px;
  color: #3a5070;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 10px;
  color: #6a8298;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.login-field input {
  font-family: inherit;
  font-size: 13px;
  color: #c8d6e5;
  background: #0d1016;
  border: 1px solid #1e2a38;
  border-radius: 6px;
  padding: 10px 12px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.login-field input:focus {
  border-color: #5ba3d066;
  box-shadow: 0 0 0 3px #5ba3d01a;
}

.login-submit {
  margin-top: 4px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #0a0c10;
  background: #5ba3d0;
  border: none;
  border-radius: 6px;
  padding: 11px 12px;
  cursor: pointer;
  transition: background .15s, box-shadow .15s, transform .1s;
}
.login-submit:hover:not(:disabled) { background: #6fb4de; box-shadow: 0 0 16px #5ba3d044; }
.login-submit:active:not(:disabled) { transform: scale(.98); }
.login-submit:disabled { opacity: .6; cursor: default; }

.login-error {
  font-size: 11px;
  color: #e0566e;
  background: #1a0008;
  border: 1px solid #e0566e44;
  border-radius: 6px;
  padding: 8px 10px;
}

.login-footer {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  font-size: 9px;
  color: #2a3d52;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.login-footer a { color: #4a6580; text-decoration: none; }
.login-footer a:hover { color: #5ba3d0; }
