body {
  min-width: 320px;
  background: #f6f8fb;
  color: var(--color-text);
  color-scheme: light;
}

.auth-page {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(520px, 0.95fr);
}

.auth-context {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100dvh;
  border-right: 1px solid var(--color-border);
  background: #ffffff;
  padding: 32px 42px;
}

.auth-context::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../images/relayra-hero-light.jpg") center / cover no-repeat;
  opacity: 0.72;
}

.auth-context::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, #ffffff 0%, rgb(255 255 255 / 0.96) 43%, rgb(255 255 255 / 0.34) 100%),
    linear-gradient(180deg, transparent 62%, #ffffff 100%);
}

.auth-context .brand {
  width: fit-content;
}

.auth-copy {
  align-self: center;
  display: grid;
  gap: 18px;
  max-width: 610px;
  padding: 64px 0;
}

.auth-kicker {
  color: var(--accent-green);
  font-family: var(--font-code);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.auth-copy h1 {
  max-width: 590px;
  font-size: 62px;
  font-weight: 650;
  line-height: 1.02;
  text-wrap: balance;
}

.auth-copy > p:not(.auth-kicker) {
  max-width: 520px;
  color: #536075;
  font-size: 18px;
  line-height: 1.6;
}

.auth-network-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
}

.auth-network-row img {
  width: 38px;
  height: 38px;
  border: 1px solid var(--color-border);
  border-radius: 7px;
  background: rgb(255 255 255 / 0.9);
  padding: 8px;
}

.auth-context-foot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border: 1px solid #bde7d2;
  border-radius: 6px;
  background: rgb(234 248 241 / 0.9);
  color: #14754f;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 700;
}

.auth-context-foot span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgb(22 155 103 / 0.1);
}

.auth-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  place-items: center;
  min-width: 0;
  padding: 30px 48px;
}

.auth-back {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #526075;
  font-size: 13px;
  font-weight: 650;
}

.auth-back:hover {
  color: var(--accent-green);
}

.auth-card {
  align-self: center;
  width: min(430px, 100%);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--white);
  padding: 30px;
  box-shadow: 0 18px 50px rgb(25 43 78 / 0.09);
}

.auth-card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #d8e0ff;
  border-radius: 7px;
  background: #f2f5ff;
  color: var(--accent-green);
  margin-bottom: 22px;
  font-size: 20px;
}

.auth-card h2 {
  margin-top: 8px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
}

.auth-card > .muted {
  margin-top: 8px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.5;
}

.form-stack {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.form-stack > label {
  display: grid;
  gap: 8px;
  color: #445067;
  font-size: 12px;
  font-weight: 700;
}

.form-stack label small {
  color: #818a9a;
  font-size: 10px;
  font-weight: 500;
}

.auth-card .field {
  min-height: 46px;
  border-radius: 7px;
  background: #fbfcfe;
  padding: 11px 12px;
  font-size: 14px;
}

.auth-card .field::placeholder {
  color: #98a2b3;
}

.auth-card .field:focus {
  border-color: #7690ef;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgb(49 85 231 / 0.1);
}

.password-field {
  position: relative;
  display: block;
}

.password-field .field {
  padding-right: 46px;
}

.password-field button {
  position: absolute;
  top: 50%;
  right: 7px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  transform: translateY(-50%);
  border-radius: 6px;
  color: #697588;
  font-size: 17px;
}

.password-field button:hover {
  background: #eef2f7;
  color: var(--color-text);
}

.auth-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.check-field {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 8px !important;
  color: #657084 !important;
  font-size: 11px !important;
  font-weight: 550 !important;
  line-height: 1.4;
}

.check-field input {
  width: 15px;
  height: 15px;
  accent-color: var(--accent-green);
}

.auth-form-row a,
.auth-switch a,
.auth-legal a {
  color: var(--accent-green);
  font-weight: 700;
}

.auth-form-row a {
  font-size: 11px;
}

.auth-card .btn {
  width: 100%;
  min-height: 46px;
  margin-top: 2px;
}

.auth-switch {
  margin-top: 20px;
  border-top: 1px solid var(--color-border);
  padding-top: 18px;
  color: var(--color-muted);
  text-align: center;
  font-size: 13px;
}

.auth-legal {
  color: #8a94a4;
  text-align: center;
  font-size: 10px;
}

@media (max-width: 1040px) {
  .auth-page {
    grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  }

  .auth-copy h1 {
    font-size: 48px;
  }
}

@media (max-width: 840px) {
  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-context {
    min-height: 330px;
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
    padding: 24px;
  }

  .auth-copy {
    gap: 12px;
    padding: 44px 0 32px;
  }

  .auth-copy h1 {
    max-width: 520px;
    font-size: 40px;
  }

  .auth-copy > p:not(.auth-kicker) {
    font-size: 15px;
  }

  .auth-network-row,
  .auth-context-foot {
    display: none;
  }

  .auth-panel {
    min-height: 620px;
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .auth-context {
    min-height: 280px;
  }

  .auth-copy h1 {
    font-size: 34px;
  }

  .auth-panel {
    min-height: 580px;
    padding: 20px 14px;
  }

  .auth-card {
    padding: 22px;
  }
}
