:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172d2b;
  background: #f3f6f2;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 10% 15%, rgb(216 232 216 / 60%), transparent 40%),
    #f3f6f2;
}

a {
  color: #176e58;
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #104d3e;
}

a:focus-visible,
input:focus-visible,
button:focus-visible {
  outline: 3px solid #9bc5a9;
  outline-offset: 3px;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(320px, 470px) minmax(240px, 400px);
  gap: clamp(36px, 8vw, 116px);
  align-items: center;
  justify-content: center;
  width: min(100% - 40px, 1120px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 48px 0;
}

.auth-card {
  width: 100%;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid #e2e9e1;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgb(31 57 48 / 9%);
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  color: #203d36;
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: #fff;
  font-size: 28px;
  line-height: 1;
}

.game-title {
  color: green;
  font-size:1.4rem;
}

.auth-heading {
  margin: 42px 0 28px;
}

.eyebrow,
.aside-kicker {
  margin: 0 0 10px;
  color: green;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #1d322e;
  font-size: clamp(30px, 5vw, 38px);
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.intro {
  margin: 12px 0 0;
  color: #6b7b76;
  font-size: 15px;
  line-height: 1.6;
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-form label {
  margin-top: 10px;
  color: #334842;
  font-size: 13px;
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #dce5de;
  border-radius: 10px;
  color: #203d36;
  background: #fbfcfb;
  font: inherit;
}

.auth-form input::placeholder {
  color: #9aa9a1;
}

.auth-form input:focus {
  border-color: #4c9a7c;
  outline: 3px solid rgb(76 154 124 / 15%);
}

.password-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.password-label label {
  margin-top: 10px;
}

.form-message {
  margin: 7px 0 0;
  padding: 11px 13px;
  border-radius: 9px;
  color: #9b3029;
  background: #fff1ef;
  font-size: 13px;
  line-height: 1.5;
}

.form-message[data-kind="success"] {
  color: #176e58;
  background: #edf8f1;
}

.submit-button {
  display: flex;
  min-height: 49px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: #176e58;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  transition: background 120ms ease, transform 120ms ease;
}

.submit-button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #125b49;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.75;
}

.button-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgb(255 255 255 / 45%);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.submit-button[aria-busy="true"] .button-spinner {
  display: inline-block;
}

.auth-footer {
  margin: 25px 0 0;
  color: #71817b;
  font-size: 13px;
  text-align: center;
}

.auth-footer a {
  margin-left: 3px;
}

.auth-aside {
  max-width: 330px;
}

.route-illustration {
  display: flex;
  height: 150px;
  align-items: center;
  margin-bottom: 31px;
}

.city {
  z-index: 1;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border: 5px solid #f3f6f2;
  border-radius: 50%;
  background: #2563eb;;
  box-shadow: 0 0 0 2px #2563eb;;
}

.city-end {
    background: #fe3aae;
    box-shadow: 0 0 0 2px #fe3aae;
}

.rail-line {
  width: 210px;
  height: 3px;
  margin: 0 -1px;
  background: repeating-linear-gradient(90deg, #00b4ef 0 12px, transparent 12px 18px);
  transform: rotate(-12deg);
}

.aside-copy {
  margin: 0;
  color: #63756d;
  font-size: 16px;
  line-height: 1.7;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 760px) {
  .auth-layout {
    grid-template-columns: minmax(0, 470px);
    width: min(100% - 28px, 470px);
    padding: 24px 0;
  }

  .auth-aside {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
