.auth-page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: radial-gradient(ellipse at 85% 38%, #231940 0%, var(--bg) 58%);
}

.auth-layout {
  display: grid;
  align-items: center;
  max-width: 1118px;
  padding-block: clamp(27px, 5vh, 60px);
}

.auth-frame {
  display: grid;
  grid-template-columns: minmax(350px, .93fr) minmax(0, 1.07fr);
  overflow: hidden;
  border: 1px solid #b6a7ff3b;
  border-radius: var(--radius);
  background: #111322;
  box-shadow: 0 26px 86px #05050d88;
}

.auth-content {
  align-self: center;
  padding: clamp(27px, 4.6vw, 66px);
}

.auth-content h1 {
  margin-top: 15px;
  font-size: clamp(38px, 4.45vw, 58px);
  font-weight: 640;
  line-height: 1.02;
  letter-spacing: -.074em;
}

.auth-intro {
  max-width: 355px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.auth-form {
  display: grid;
  margin-top: 24px;
}

.auth-form label {
  margin-bottom: 7px;
  color: #e4def4;
  font-size: 13px;
  font-weight: 580;
}

.auth-form input {
  --field: #0d0f1d;
  width: 100%;
  min-height: 49px;
  padding: 12px 13px;
  border: 1px solid #a4a1c24d;
  border-radius: 8px;
  background: var(--field);
  color: var(--ink);
  caret-color: var(--accent);
  font-size: 16px;
}

.auth-form input + label {
  margin-top: 16px;
}

.auth-form input:hover {
  border-color: #c3adff8c;
}

.auth-form input:focus-visible {
  outline-offset: 2px;
}

.auth-form input:-webkit-autofill {
  box-shadow: 0 0 0 1000px var(--field) inset;
  -webkit-text-fill-color: var(--ink);
}

.auth-form .action.primary {
  min-height: 49px;
  margin-top: 22px;
  cursor: pointer;
}

.auth-form .action.primary:active {
  transform: translateY(0);
}

.auth-logout {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 9px;
}

.auth-logout .action {
  flex: 1 0 auto;
}

.auth-logout .action.primary {
  min-height: 43px;
  margin-top: 0;
}

.auth-error {
  padding: 10px 12px;
  margin-top: 17px;
  border: 1px solid #ed9fac55;
  border-radius: 8px;
  background: #381e32;
  color: #ffcad3;
  font-size: 13px;
  line-height: 1.55;
}

.auth-help {
  margin-top: 22px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.auth-visual {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-width: 0;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background: radial-gradient(ellipse at 63% 48%, #2c1f4d, #0b0b18 76%);
}

.auth-visual img {
  display: block;
  width: 106%;
  height: auto;
  mask-image: radial-gradient(ellipse 72% 68% at 52% 51%, #000 44%, transparent 94%);
}

.auth-visual .hero-trace {
  bottom: 20px;
  right: 20px;
}

.auth-footer {
  display: flex;
  align-items: center;
  min-height: 56px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 780px) {
  .auth-layout {
    max-width: 490px;
    padding-block: 27px;
  }

  .auth-frame {
    grid-template-columns: 1fr;
    background: radial-gradient(ellipse at 100% -15%, #211933, #111322 63%);
  }

  .auth-content {
    padding: clamp(20px, 6vw, 36px);
  }

  .auth-visual {
    display: none;
  }

  .auth-footer {
    min-height: 48px;
  }
}
