html {
  background: #06080c;
  scrollbar-gutter: auto;
}

.av2-login-body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background: #06080c;
  color: var(--av2-text);
}

.av2-login-body::before,
.av2-login-body::after {
  position: fixed;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.av2-login-body::before {
  inset: 0 auto 0 8%;
  width: 1px;
  background: rgb(102 140 255 / 12%);
  box-shadow: calc(84vw - 1px) 0 0 rgb(102 140 255 / 8%);
}

.av2-login-body::after {
  right: 0;
  bottom: 7%;
  left: 0;
  height: 1px;
  background: rgb(114 209 214 / 12%);
}

.av2-login-stage {
  display: grid;
  width: min(1040px, calc(100% - 40px));
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  margin: 0 auto;
  padding: 28px 0;
}

.av2-login-shell {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 590px;
  grid-template-columns: minmax(330px, .9fr) minmax(420px, 1.1fr);
  overflow: hidden;
  border: 1px solid var(--av2-line-strong);
  border-radius: 8px;
  background: #0a0e14;
  box-shadow: 0 34px 80px rgb(0 0 0 / 48%);
}

.av2-login-shell::after {
  display: none;
}

.av2-login-identity {
  display: grid;
  min-width: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  border-right: 1px solid var(--av2-line);
  background: #081019;
  padding: 52px 46px 38px;
}

.av2-login-brand-statement {
  display: grid;
  min-width: 0;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: center;
  align-self: center;
  gap: 20px;
}

.av2-login-hero-seal {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border: 1px solid rgb(102 140 255 / 48%);
  border-radius: 50%;
  background: var(--av2-accent-soft);
  color: var(--av2-accent-strong);
}

.av2-login-brand-copy {
  min-width: 0;
}

.av2-login-brand-copy strong,
.av2-login-brand-copy small,
.av2-login-brand-lines {
  display: block;
}

.av2-login-brand-copy strong {
  max-width: 100%;
  color: #f4f7ff;
  font-family: var(--av2-font-display);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.av2-login-brand-copy small {
  margin-top: 10px;
  color: var(--av2-muted);
  font: 700 12px/1.4 var(--av2-font-code);
  letter-spacing: 0;
}

.av2-login-brand-lines {
  margin-top: 22px;
}

.av2-login-brand-lines i {
  display: block;
  width: 116px;
  height: 1px;
  background: var(--av2-accent);
}

.av2-login-brand-lines i + i {
  width: 64px;
  margin-top: 8px;
  background: var(--av2-lapis);
}

.av2-login-identity > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--av2-line);
  padding-top: 18px;
  color: var(--av2-muted-2);
  font: 700 12px/1.4 var(--av2-font-code);
}

.av2-login-access {
  display: grid;
  min-width: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center;
  background: #0c1016;
}

.av2-login-mobile-brand {
  display: none;
}

@media (max-height: 700px) and (min-width: 821px) {
  .av2-login-shell {
    min-height: 520px;
  }

  .av2-login-form {
    gap: 16px;
    padding-block: 34px 28px;
  }
}

@media (max-width: 820px) {
  .av2-login-body::before,
  .av2-login-body::after,
  .av2-login-identity {
    display: none;
  }

  .av2-login-stage {
    width: 100%;
    min-height: 100dvh;
    padding: 0;
  }

  .av2-login-shell {
    min-height: 100dvh;
    grid-template-columns: minmax(0, 1fr);
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .av2-login-access {
    min-height: 100dvh;
    grid-template-rows: auto minmax(0, 1fr) auto;
    place-items: stretch;
  }

  .av2-login-mobile-brand {
    display: flex;
    min-height: 88px;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--av2-line);
    padding: max(18px, env(safe-area-inset-top)) 24px 16px;
  }

  .av2-login-mobile-brand > span {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border: 1px solid rgb(102 140 255 / 48%);
    border-radius: 50%;
    background: var(--av2-accent-soft);
    color: var(--av2-accent-strong);
  }

  .av2-login-mobile-brand > div {
    min-width: 0;
  }

  .av2-login-mobile-brand strong,
  .av2-login-mobile-brand small {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    letter-spacing: 0;
  }

  .av2-login-mobile-brand strong {
    color: #f4f7ff;
    font-size: 17px;
  }

  .av2-login-mobile-brand small {
    margin-top: 3px;
    color: var(--av2-muted);
    font: 700 12px/1.4 var(--av2-font-code);
  }

  .av2-login-form {
    width: 100%;
    max-width: 470px;
    align-self: start;
    justify-self: center;
    gap: 18px;
    margin: 0 auto;
    padding: 42px 24px 30px;
  }

  .av2-form-heading h1 {
    font-size: 32px;
  }

  .av2-login-access-footer {
    min-height: 44px;
    border-top: 0;
    padding: 12px 24px max(14px, env(safe-area-inset-bottom));
    text-align: left;
  }
}

@media (max-width: 360px) {
  .av2-login-mobile-brand,
  .av2-login-form,
  .av2-login-access-footer {
    padding-inline: 18px;
  }
}
