/* Login-only atmosphere. The form remains an ordinary, opaque document layer. */
.auth-page.auth-experience {
  position: relative;
  isolation: isolate;
  min-width: 280px;
  overflow-x: clip;
  background: #0b2934;
  color-scheme: light;
}
.auth-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 5% 34%, #087b7b55, transparent 46%),
    radial-gradient(ellipse at 93% 75%, #008a7d40, transparent 46%),
    linear-gradient(130deg, #0a2531, #103d47 52%, #0a2c37);
}
.auth-grid,
.auth-circuit-map,
.auth-electric,
.auth-vignette { position: absolute; inset: 0; width: 100%; height: 100%; }
.auth-grid {
  background-image: linear-gradient(#9ce6df09 1px, transparent 1px), linear-gradient(90deg, #9ce6df09 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse, transparent 16%, #0009 65%, #000);
}
.auth-circuit-map { opacity: .9; }
.auth-circuit-rails {
  stroke: #68d7c9;
  stroke-width: 1;
  stroke-opacity: .19;
  vector-effect: non-scaling-stroke;
}
.auth-circuit-rails path { vector-effect: non-scaling-stroke; }
.auth-circuit-nodes { stroke: #9ceade; stroke-width: 1; stroke-opacity: .33; fill: #154a53; }
.auth-electric { opacity: .95; }
.auth-background-mark {
  position: absolute;
  width: clamp(130px, 19vw, 310px);
  height: auto;
  left: 5.5%;
  top: 43%;
  opacity: .035;
  transform: rotate(-9deg);
}
.auth-vignette {
  background: radial-gradient(ellipse at 50% 47%, transparent 25%, #041a2520 65%, #041a2570);
}
.auth-experience .auth-shell {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  padding: 100px 24px 62px;
}
.auth-experience .auth-card {
  position: relative;
  border: 1px solid #e7f6f0;
  border-radius: 16px;
  background: #fcfefd;
  box-shadow: 0 35px 100px #00131e66, 0 0 0 8px #8ae5ce06, 0 0 65px #6adfc50a;
}
.auth-experience .auth-card::before {
  content: '';
  position: absolute;
  width: 74px;
  height: 3px;
  left: 37px;
  top: -2px;
  border-radius: 4px;
  background: linear-gradient(90deg, #00a5ac, #8addbc);
}
.auth-page-tools {
  position: absolute;
  inset: 28px 34px auto;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: #cae4e2;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}
.auth-back-link > span { font-size: 19px; }
.auth-back-link:hover { color: #fff; }
.auth-motion-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #9ad8cf40;
  border-radius: 7px;
  background: #082b3599;
  color: #d0e9e3;
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
}
.auth-motion-toggle[hidden] { display: none; }
.auth-motion-toggle:hover { border-color: #94ddcb88; background: #154651; color: white; }
.auth-motion-toggle:disabled { cursor: default; }
.auth-motion-icon { width: 10px; height: 10px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.auth-motion-toggle[data-motion-state="paused"] .auth-motion-icon { width: 0; height: 0; border: 5px solid transparent; border-left: 8px solid currentColor; border-right: 0; }
.auth-motion-toggle:disabled .auth-motion-icon { width: 8px; height: 8px; border: 1px solid currentColor; border-radius: 50%; }
.auth-page-tools a:focus-visible,
.auth-page-tools button:focus-visible { outline: 2px solid #b0ffdf; outline-offset: 5px; }
@media (max-width: 700px) {
  .auth-page-tools { inset: 19px 20px auto; gap: 10px; }
  .auth-back-link { gap: 7px; font-size: 11px; }
  .auth-motion-toggle { padding: 10px 11px; font-size: 10px; gap: 7px; }
  .auth-experience .auth-shell { padding: 88px 20px 36px; }
  .auth-circuit-map { opacity: .7; }
  .auth-grid { background-size: 48px 48px; }
  .auth-background-mark { display: none; }
}
@media (max-width: 480px) {
  .auth-page-tools { inset-inline: 17px; }
  .auth-experience .auth-shell { padding-inline: 16px; }
  .auth-experience .auth-card { border-radius: 12px; box-shadow: 0 20px 60px #00131e66; }
  .auth-experience .auth-card::before { left: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-electric { display: none; }
}
