:root {
  --login-ink: #121b29;
  --login-muted: #657080;
  --login-line: #dfe4e8;
  --login-blue: #2867e8;
  --login-blue-dark: #1650c3;
  --login-blue-soft: #edf3ff;
  --login-red: #bd3539;
  --login-surface: #fffefd;
}

body {
  overflow-x: hidden;
  padding-top: 24px;
  background:
    radial-gradient(circle at 76% 14%, rgb(217 230 249 / 43%), transparent 30rem),
    linear-gradient(132deg, transparent 0 72%, rgb(214 224 236 / 17%) 72% 72.15%, transparent 72.15%),
    #f8f9f8;
}

.page-shell {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto 32px;
}

.app-header {
  display: none;
}

.login-page {
  position: relative;
  display: grid;
  overflow: hidden;
  border: 1px solid #dbe0e2;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 80%), transparent 34%),
    var(--login-surface);
  box-shadow: 0 22px 46px rgb(24 39 58 / 12%), 0 2px 5px rgb(24 39 58 / 4%);
  isolation: isolate;
}

.login-page::before,
.login-page::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.login-page::before {
  top: 74px;
  right: -6%;
  width: 56%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(83 121 177 / 20%), transparent);
  transform: rotate(-16deg);
}

.login-page::after {
  bottom: 68px;
  left: 0;
  width: 38%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(83 121 177 / 19%));
  transform: rotate(12deg);
}

.login-card__header,
.login-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.login-card__header {
  min-height: 78px;
  padding: 18px 28px 12px;
}

.login-brand {
  color: var(--login-ink);
  font-size: 1.36rem;
  font-weight: 780;
  letter-spacing: -0.045em;
  text-decoration: none;
}

.login-brand:focus-visible {
  border-radius: 5px;
}

.login-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, #3475ed, #225bd8);
  box-shadow: 0 8px 18px rgb(34 91 216 / 20%);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 750;
  padding: 8px 16px 8px 10px;
  text-decoration: none;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.login-action:hover {
  background: linear-gradient(135deg, #3d7cf0, #1950c8);
  box-shadow: 0 11px 22px rgb(34 91 216 / 27%);
  transform: translateY(-1px);
}

.login-action:active {
  transform: translateY(0) scale(0.985);
}

.login-action:focus-visible {
  outline: 3px solid rgb(40 103 232 / 32%);
  outline-offset: 3px;
}

.google-mark {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
}

.google-mark svg {
  width: 17px;
  height: 17px;
}

.login-card__body {
  display: grid;
  grid-template-columns: minmax(285px, 0.78fr) minmax(0, 1.22fr);
  min-height: 500px;
  align-items: center;
  gap: 12px;
  padding: 18px 42px 22px 48px;
}

.login-copy {
  position: relative;
  z-index: 1;
  max-width: 485px;
  padding: 20px 0 14px;
}

.login-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 25px;
  color: var(--login-blue);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.login-kicker span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--login-blue);
  box-shadow: 0 0 0 4px rgb(40 103 232 / 10%);
}

.login-copy h1 {
  max-width: 490px;
  margin: 0;
  color: var(--login-ink);
  font-size: clamp(2.55rem, 4.1vw, 4.3rem);
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 0.99;
}

.login-description {
  max-width: 300px;
  margin: 22px 0 0;
  color: #424f5f;
  font-size: 0.91rem;
  line-height: 1.52;
}

.login-session-note {
  max-width: 370px;
  margin: 18px 0 0;
  color: var(--login-muted);
  font-size: 0.76rem;
  line-height: 1.48;
}

.login-alert {
  display: flex;
  max-width: 370px;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding: 11px 13px;
  border: 1px solid #efc9ca;
  border-radius: 9px;
  background: #fff6f6;
  color: #8b2529;
  font-size: 0.8rem;
  line-height: 1.4;
}

.login-alert p {
  margin: 0;
}

.login-alert__mark {
  display: grid;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 800;
}

.login-capabilities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 460px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.login-capabilities li {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 9px;
  padding: 0 12px;
  border-right: 1px solid #e2e5e8;
}

.login-capabilities li:first-child {
  padding-left: 0;
}

.login-capabilities li:last-child {
  border-right: 0;
}

.capability-icon {
  display: grid;
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid #dce3eb;
  border-radius: 50%;
  color: var(--login-blue);
}

.capability-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

.login-capabilities li > span:last-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.login-capabilities strong {
  color: var(--login-ink);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-capabilities small {
  color: #76818f;
  font-size: 0.63rem;
  line-height: 1.35;
}

.login-visual {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 470px;
  place-items: center;
  isolation: isolate;
}

.login-visual::before,
.login-visual::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.login-visual::before {
  inset: 8% 1% 8% 4%;
  z-index: -2;
  border: 1px solid rgb(110 142 187 / 16%);
  border-radius: 48% 11% 40% 18%;
  transform: rotate(-5deg);
}

.login-visual::after {
  top: 14%;
  right: 5%;
  z-index: -1;
  width: 29%;
  height: 38%;
  background-image: radial-gradient(rgb(90 128 185 / 35%) 1px, transparent 1.4px);
  background-size: 11px 11px;
  opacity: 0.6;
}

.motorcycle-illustration {
  display: block;
  width: min(100%, 648px);
  height: auto;
  aspect-ratio: 648 / 538;
  object-fit: contain;
}

.motorcycle-stage {
  display: flex;
  width: min(100%, 648px);
  justify-content: center;
  transform-origin: center;
}

.login-page[data-motion="full"] .motorcycle-stage {
  animation: motorcycle-float 7s ease-in-out infinite;
}

.bike-ground-shadow {
  fill: rgb(28 39 47 / 17%);
  filter: url("#bike-soft-shadow");
}

.bike-wheel {
  stroke: #11171c;
  stroke-width: 3;
}

.bike-spokes {
  fill: none;
  stroke: #7b878c;
  stroke-width: 1.3;
  opacity: 0.86;
}

.bike-tire-highlight {
  fill: none;
  stroke: #aab4b5;
  stroke-linecap: round;
  stroke-width: 2.2;
  opacity: 0.45;
}

.bike-frame {
  fill: none;
  stroke: #151d23;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 13;
}

.bike-frame--light {
  stroke: #68757b;
  stroke-width: 3;
}

.bike-seat {
  stroke: #0a0e12;
  stroke-linejoin: round;
  stroke-width: 4;
}

.bike-seat-highlight,
.bike-tank-highlight,
.bike-tail-line,
.bike-fairing-edge,
.bike-windscreen-edge {
  fill: none;
  stroke: #9ea9ac;
  stroke-linecap: round;
  stroke-width: 2;
  opacity: 0.58;
}

.bike-tail-light,
.bike-red-accent {
  fill: var(--login-red);
  stroke: #7f2329;
  stroke-linejoin: round;
  stroke-width: 2;
}

.bike-red-accent--thin {
  fill: none;
  stroke: #e0534f;
  stroke-width: 3;
}

.bike-tank-panel,
.bike-fairing-panel {
  fill: none;
  stroke: rgb(196 207 209 / 43%);
  stroke-linejoin: round;
  stroke-width: 2;
}

.bike-engine {
  stroke: #11171b;
  stroke-linejoin: round;
  stroke-width: 3;
}

.bike-engine-rib,
.bike-engine-detail,
.bike-brake {
  fill: none;
  stroke: #899499;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  opacity: 0.75;
}

.bike-exhaust-tip,
.bike-footpeg,
.bike-fork-dark,
.bike-bumper {
  fill: #1c252b;
  stroke: #0c1115;
  stroke-linejoin: round;
  stroke-width: 3;
}

.bike-front-fender {
  fill: #131a20;
  stroke: #69757a;
  stroke-linejoin: round;
  stroke-width: 3;
}

.bike-handlebar,
.bike-mirror-glint,
.bike-headlight-glow {
  fill: none;
  stroke: #c5cecd;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.bike-windscreen {
  stroke: #aeb8b7;
  stroke-linejoin: round;
  stroke-width: 3;
}

.bike-headlight {
  stroke: #748487;
  stroke-linejoin: round;
  stroke-width: 2;
}

.visual-marker {
  position: absolute;
  display: block;
  width: 16px;
  height: 1px;
  background: var(--login-blue);
}

.visual-marker::after {
  position: absolute;
  top: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--login-blue);
  content: "";
}

.visual-marker--top {
  top: 12%;
  left: 13%;
}

.visual-marker--top::after,
.visual-marker--bottom::after {
  right: -2px;
}

.visual-marker--right {
  top: 33%;
  right: 8%;
  width: 25px;
}

.visual-marker--right::after {
  left: -2px;
}

.visual-marker--bottom {
  bottom: 10%;
  left: 22%;
  width: 22px;
}

.visual-coordinate {
  position: absolute;
  color: #7c8792;
  font-size: 0.57rem;
  letter-spacing: 0.08em;
}

.visual-coordinate--one {
  right: 10%;
  bottom: 8%;
}

.visual-coordinate--two {
  right: 4%;
  bottom: 8%;
}

.login-card__footer {
  min-height: 58px;
  padding: 12px 28px 18px;
  border-top: 1px solid #edf0f1;
}

.login-build {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #77818c;
  font-size: 0.59rem;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.login-build > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--login-blue);
}

.login-build b {
  color: #9ba3a9;
  font-weight: 600;
}

.login-coordinate {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8b949c;
  font-size: 0.56rem;
}

.login-coordinate i {
  position: relative;
  display: block;
  width: 26px;
  height: 26px;
  border-right: 1px solid #aab5bd;
  border-bottom: 1px solid #aab5bd;
}

.login-coordinate i::before,
.login-coordinate i::after {
  position: absolute;
  background: var(--login-blue);
  content: "";
}

.login-coordinate i::before {
  top: 12px;
  left: -5px;
  width: 36px;
  height: 1px;
}

.login-coordinate i::after {
  top: 9px;
  left: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.login-action--mobile {
  display: none;
}

@keyframes motorcycle-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(0, -5px, 0) rotate(-0.35deg);
  }
}

@media (max-width: 900px) {
  body {
    padding-top: 16px;
  }

  .page-shell {
    width: min(100% - 32px, 720px);
  }

  .login-card__body {
    grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.18fr);
    min-height: 530px;
    padding: 18px 26px 22px 30px;
  }

  .login-copy h1 {
    font-size: clamp(2.35rem, 5vw, 3.35rem);
  }

  .login-capabilities {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 34px;
  }

  .login-capabilities li,
  .login-capabilities li:first-child {
    padding: 0;
    border-right: 0;
  }

  .login-capabilities li > span:last-child {
    display: flex;
    align-items: baseline;
    gap: 8px;
  }

  .login-visual {
    min-height: 400px;
  }
}

@media (max-width: 600px) {
  body {
    padding-top: 12px;
  }

  .page-shell {
    width: min(100% - 24px, 520px);
    margin-bottom: 20px;
  }

  .login-page {
    border-radius: 15px;
  }

  .login-card__header {
    min-height: 65px;
    padding: 15px 16px 8px;
  }

  .login-brand {
    font-size: 1.18rem;
  }

  .login-action--header {
    width: 42px;
    min-height: 38px;
    padding: 6px;
  }

  .login-action--header .login-action__label {
    display: none;
  }

  .login-action--header .google-mark {
    width: 25px;
    height: 25px;
  }

  .login-card__body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    align-items: stretch;
    gap: 0;
    padding: 0 18px 20px;
  }

  .login-visual {
    order: -1;
    min-height: 258px;
    margin: 0 -9px;
  }

  .login-visual::before {
    inset: 8% 4% 5%;
  }

  .login-visual::after {
    top: 13%;
    right: 4%;
    width: 32%;
    height: 34%;
  }

  .visual-marker--top {
    top: 13%;
    left: 9%;
  }

  .visual-marker--right {
    top: 29%;
    right: 6%;
  }

  .visual-marker--bottom,
  .visual-coordinate {
    display: none;
  }

  .login-copy {
    padding: 5px 0 0;
  }

  .login-kicker {
    margin-bottom: 16px;
    font-size: 0.6rem;
  }

  .login-copy h1 {
    font-size: clamp(2.2rem, 11vw, 3.1rem);
    letter-spacing: -0.07em;
  }

  .login-description {
    max-width: 280px;
    margin-top: 15px;
    font-size: 0.82rem;
  }

  .login-description__break {
    display: none;
  }

  .login-session-note,
  .login-alert {
    margin-top: 13px;
    font-size: 0.7rem;
  }

  .login-capabilities {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin: 25px 0 0;
  }

  .login-capabilities li,
  .login-capabilities li:first-child {
    gap: 6px;
    padding: 0 6px 0 0;
  }

  .login-capabilities li:not(:last-child) {
    border-right: 1px solid #e2e5e8;
  }

  .capability-icon {
    width: 25px;
    height: 25px;
  }

  .capability-icon svg {
    width: 13px;
    height: 13px;
  }

  .login-capabilities li > span:last-child {
    display: grid;
    gap: 3px;
    align-content: start;
  }

  .login-capabilities strong {
    font-size: 0.53rem;
  }

  .login-capabilities small {
    font-size: 0.55rem;
  }

  .login-card__footer {
    min-height: 0;
    flex-wrap: wrap;
    gap: 15px;
    padding: 14px 16px 16px;
  }

  .login-build,
  .login-coordinate {
    display: none;
  }

  .login-action--mobile {
    display: inline-flex;
    width: 100%;
    min-height: 43px;
    padding: 8px 14px 8px 10px;
    font-size: 0.77rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-page[data-motion="full"] .motorcycle-stage,
  .login-page[data-motion="reduced"] .motorcycle-stage {
    animation: none;
  }
}
