:root {
  color-scheme: dark;
  --ink: #f1f4fb;
  --muted: #9daabd;
  --accent: #6a83ff;
  --line: #344151;
  --display: Bahnschrift, "Arial Narrow", sans-serif;
  --body: "Segoe UI", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font: 14px var(--body);
  color: var(--ink);
  background: #10141d;
}
button,
input {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
:focus-visible {
  outline: 3px solid #90a4ff;
  outline-offset: 4px;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
.auth-skip {
  position: fixed;
  top: -90px;
  left: 16px;
  padding: 14px;
  background: #fff;
  color: #111;
  z-index: 10;
}
.auth-skip:focus {
  top: 12px;
}
.auth-layout {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 50% 20%, #26384d55, transparent 54%), #10141d;
  overflow: clip;
}
.auth-layout::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 49.9%,
    #d2e7ff04 50%,
    transparent 50.1%
  );
  background-size: 100px 100px;
}
.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px clamp(22px, 4vw, 64px);
  border-bottom: 1px solid #ffffff0c;
}
.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 23px var(--display);
  letter-spacing: -0.7px;
}
.brand-light {
  font-weight: 400;
  color: #b6c4d9;
}
.auth-switch {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
}
.auth-switch > span {
  color: var(--muted);
}
.auth-switch a {
  border: 1px solid #414d60;
  padding: 10px 16px;
  border-radius: 7px;
}
.auth-switch a:hover {
  background: #ffffff08;
  text-decoration: none;
}
.auth-entry {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 24px 44px;
}
.auth-scene {
  position: relative;
  width: min(590px, 100%);
  margin: 0 auto 12px;
  text-align: center;
  pointer-events: none;
}
.scene-car {
  width: 100%;
  display: block;
  overflow: visible;
}
.scene-horizon {
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #7a9dcc55, transparent);
}
.scene-caption {
  font-size: 9px;
  letter-spacing: 3px;
  color: #8c9eb7;
}
.car-outline {
  animation: car-arrive 1.2s ease-out both;
}
.car-body {
  animation: car-idle 4s ease-in-out infinite;
}
.car-wheel {
  animation: wheel-turn 16s linear infinite;
}
.car-light {
  animation: led-light 5s ease-in-out infinite;
}
.car-reflection {
  animation: metal-sweep 9s ease-in-out infinite;
}
.road-dashes {
  animation: road-travel 2.5s linear infinite;
}
.auth-form-area {
  width: min(400px, 100%);
}
.auth-heading {
  text-align: center;
  margin: 14px 0 28px;
}
.auth-eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #b2c2de;
}
.auth-heading h1 {
  font: 500 clamp(26px, 4vw, 36px)/1.18 var(--display);
  letter-spacing: -1px;
  margin: 14px 0;
}
.auth-heading p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}
.auth-form {
  display: grid;
  gap: 19px;
}
.auth-form > label {
  display: grid;
  gap: 9px;
  font-size: 12px;
  font-weight: 550;
  color: #cbd5e4;
}
.auth-form input {
  width: 100%;
  min-width: 0;
  height: 49px;
  padding: 0 15px;
  border: 1px solid #364357;
  background: #182130;
  border-radius: 7px;
  color: #f5f7fc;
  transition:
    border-color 0.2s,
    background 0.2s;
  box-shadow: none;
}
.auth-form input:hover {
  border-color: #65748b;
}
.auth-form input:focus {
  border-color: #8096ff;
  background: #1c283c;
  outline: 2px solid #718bff35;
  outline-offset: 2px;
}
.auth-form input::placeholder {
  color: #8493a9;
  opacity: 1;
}
.auth-form input:disabled {
  opacity: 0.65;
}
.auth-password {
  display: flex;
  position: relative;
}
.auth-password input {
  padding-right: 92px;
}
.auth-password button {
  position: absolute;
  right: 8px;
  top: 7px;
  bottom: 7px;
  border: 0;
  border-radius: 4px;
  color: #becceb;
  background: transparent;
  padding: 0 8px;
  font-size: 11px;
  cursor: pointer;
}
.auth-password button:hover {
  background: #fff1;
}
.auth-submit {
  margin-top: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 50px;
  padding: 12px 18px;
  border: 1px solid #8da0ff88;
  border-radius: 7px;
  background: #627aef;
  color: white;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 28px #5274ff20;
  transition:
    transform 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}
.auth-submit:hover {
  background: #7288f7;
  box-shadow: 0 8px 32px #5274ff35;
  transform: translateY(-1px);
}
.auth-submit:active {
  transform: translateY(0);
}
.auth-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}
.auth-help {
  font-size: 12px;
  text-align: center;
  color: var(--muted);
  line-height: 1.8;
  margin: 22px 0 0;
}
.auth-help a {
  color: #c0ceff;
}
.auth-error,
.auth-notice {
  padding: 14px;
  margin: 0 0 20px;
  border-radius: 7px;
  line-height: 1.6;
}
.auth-error {
  background: #391e29;
  color: #ffbdc7;
  border: 1px solid #773d4d;
}
.auth-notice {
  background: #193b36;
  color: #b4e7d9;
  border: 1px solid #346957;
}
.auth-entry-footer {
  padding: 20px clamp(22px, 4vw, 64px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 11px;
  color: #8f9db1;
  border-top: 1px solid #ffffff0c;
}
.footer-status {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-status i {
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: #8299b8;
}
.auth-register .auth-scene {
  width: 360px;
  max-width: 100%;
  margin-top: 0;
}
.auth-register .auth-entry {
  padding-top: 0;
}
.auth-register .auth-heading {
  margin-top: 12px;
}
.auth-register .auth-form {
  gap: 15px;
}
.auth-register .auth-heading h1 {
  font-size: 30px;
}
.auth-register .auth-form-area {
  width: min(430px, 100%);
}
@keyframes car-arrive {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes car-idle {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(1.3px);
  }
}
@keyframes wheel-turn {
  to {
    transform: rotate(360deg);
  }
}
@keyframes led-light {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}
@keyframes metal-sweep {
  0%,
  35% {
    transform: translateX(0);
  }
  75%,
  100% {
    transform: translateX(900px);
  }
}
@keyframes road-travel {
  to {
    transform: translateX(-150px);
  }
}
@media (min-width: 1500px) and (min-height: 1000px) {
  .auth-entry {
    justify-content: center;
    padding-bottom: 65px;
  }
  .auth-scene {
    width: 650px;
    margin-bottom: 20px;
  }
  .auth-register .auth-entry {
    justify-content: flex-start;
  }
}
@media (max-width: 600px) {
  .auth-topbar {
    padding: 18px 20px;
    gap: 12px;
  }
  .auth-brand {
    font-size: 20px;
  }
  .auth-brand img {
    width: 27px;
    height: 27px;
  }
  .auth-switch > span {
    display: none;
  }
  .auth-switch a {
    font-size: 11px;
    padding: 10px;
  }
  .auth-entry {
    padding: 12px 24px 32px;
  }
  .auth-scene {
    margin-bottom: 12px;
  }
  .auth-heading {
    margin-top: 18px;
  }
  .auth-heading h1 {
    font-size: 30px;
  }
  .auth-heading p {
    font-size: 12px;
  }
  .auth-entry-footer {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 20px;
  }
  .auth-form input {
    font-size: 16px;
  }
  .auth-register .auth-heading h1 {
    font-size: 26px;
  }
  .scene-caption {
    font-size: 8px;
    letter-spacing: 2px;
  }
  .desktop-break {
    display: none;
  }
}
.auth-contacts { margin-top:24px; padding-top:20px; border-top:1px solid #ffffff18; }
.auth-contact-heading { color:#e7edf7; text-decoration:none; font-size:14px; }
.auth-contact-links { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:16px; font-size:12px; color:#9eacc0; }
.auth-contact-links > a { color:inherit; text-decoration:none; }
.auth-contact-links span span, .auth-contact-links a span { display:block; margin-top:5px; color:#e7edf7; overflow-wrap:anywhere; }
.auth-contact-links small { display:block; margin-top:4px; font-size:10px; }
.auth-contact-links a:hover, .auth-contact-heading:hover { color:#a9d6ff; }
.auth-contact-links a:focus-visible, .auth-contact-heading:focus-visible { outline:2px solid #a9d6ff; outline-offset:5px; }
@media (max-width:380px) { .auth-contact-links { grid-template-columns:1fr; } }
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .auth-scene {
    transform: none !important;
  }
}
