/* Sign-in (layouts/entrance.html): the QC building beside one centred column of brand, the Sign
   in card, the demo notice, help and footer. Tokens only; the art is two static files, one per
   theme (static/img/signin-light.svg, signin-dark.svg), with no text in them. */
.vr-login {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--vr-paper);
}

.vr-login-scene {
  display: none;
}

.vr-login-workspace {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.vr-login-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--vr-space-4);
  width: 100%;
  max-width: 32.857rem;
  margin: 0 auto;
  padding: var(--vr-space-10) var(--vr-space-4) var(--vr-space-6);
}

.vr-login .vr-entrance-theme {
  top: var(--vr-space-4);
  right: var(--vr-space-4);
}

.vr-login-main .vr-entrance-brand {
  justify-content: center;
  margin-bottom: var(--vr-space-2);
  font-size: var(--vr-font-size-6);
}

.vr-login-main .vr-entrance-brand img {
  width: 32px;
  height: 32px;
}

/* The Sign in card. */
.vr-login .vr-entrance-panel {
  max-width: none;
  padding: var(--vr-space-6);
  border-radius: var(--vr-radius-xl);
  box-shadow: var(--vr-shadow-panel);
}

.vr-login .vr-entrance-panel h1 {
  margin-bottom: var(--vr-space-1) !important; /* over the page's mb utility */
  font-size: var(--vr-font-size-9);
  font-weight: var(--vr-font-weight-heavy);
  font-stretch: var(--vr-font-stretch-title);
  line-height: var(--vr-line-height-tight);
}

.vr-login .vr-entrance-lead {
  margin-bottom: var(--vr-space-5);
  color: var(--vr-text-muted);
}

/* Sign in is the primary; passkey and single sign-on take the tonal secondary look (app.css
   themes btn-outline-primary that way). */
.vr-login-submit {
  width: 100%;
  justify-content: center;
  margin-top: var(--vr-space-2);
}

/* The demo notice on this page is a quiet card under the Sign in card. */
.vr-login .vr-announcement {
  margin: 0;
  padding: var(--vr-space-5);
  border-radius: var(--vr-radius-xl);
  background: var(--vr-surface);
  box-shadow: none;
  font-size: var(--vr-font-size-4);
}

.vr-login .vr-announcement-title {
  margin-bottom: var(--vr-space-2);
  color: var(--vr-text-strong);
  font-size: var(--vr-label-size);
  font-weight: var(--vr-font-weight-heavy);
  font-stretch: var(--vr-font-stretch-title);
  letter-spacing: 0.06em;
  text-transform: var(--vr-label-case);
}

.vr-login .vr-announcement-body .table {
  margin: var(--vr-space-3) 0;
  border-collapse: separate;
  border-spacing: 0;
}

.vr-login .vr-announcement-body .table > :not(caption) > * > * {
  padding: var(--vr-space-1-5) var(--vr-space-2);
  border: 0;
  background: transparent;
  box-shadow: none;
  vertical-align: top;
}

.vr-login .vr-announcement-body .table > thead > tr > th {
  background: var(--vr-th-bg);
  font-size: var(--vr-label-size);
  font-weight: var(--vr-font-weight-bold);
  letter-spacing: var(--vr-label-tracking);
  text-transform: var(--vr-label-case);
}

.vr-login .vr-announcement-body .table > thead > tr > th:first-child {
  border-top-left-radius: var(--vr-radius-lg);
  border-bottom-left-radius: var(--vr-radius-lg);
}

.vr-login .vr-announcement-body .table > thead > tr > th:last-child {
  border-top-right-radius: var(--vr-radius-lg);
  border-bottom-right-radius: var(--vr-radius-lg);
}

.vr-login .vr-announcement-body :is(code, pre) {
  color: var(--vr-text-strong);
  font-family: var(--vr-font-data);
  font-variant-numeric: tabular-nums slashed-zero;
}

.vr-login .vr-announcement-body pre {
  padding: var(--vr-space-1-5) var(--vr-space-2-5);
  border-radius: var(--vr-radius-lg);
  background: var(--vr-surface-2);
}

/* The answer of a certificate check, above the form for the next file. */
.vr-login .vr-check-answer {
  margin-bottom: var(--vr-space-5);
}

.vr-login-help {
  max-width: 52ch;
  margin: 0 auto;
  color: var(--vr-text-muted);
  font-size: var(--vr-font-size-3);
  line-height: var(--vr-line-height-base);
  text-align: center;
  text-wrap: pretty;
}

.vr-login-workspace > .vr-app-footer {
  justify-content: center;
  padding: var(--vr-space-4) var(--vr-space-4) var(--vr-space-6);
  background: transparent;
  text-align: center;
}

@media (max-width: 575.98px) {
  .vr-login-main {
    padding-top: var(--vr-space-16); /* room for the theme menu */
  }

  .vr-login-main .alert:has(> .vr-status) {
    flex-direction: column;
  }

  /* In a column the body's basis would be a height: it takes the height of its text. */
  .vr-login-main .alert:has(> .vr-status) > :not(.vr-status) {
    flex-basis: auto;
  }
}

/* From 992px the art takes the left side: sticky, the full viewport high, its building at the
   bottom centre (cover only trims the outdoor edges), the caption in its plain top band. */
@media (min-width: 992px) {
  .vr-login {
    grid-template-columns: minmax(0, 1fr) minmax(32.75rem, 46%);
    align-items: start;
  }

  .vr-login-scene {
    position: sticky;
    top: 0;
    display: block;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    border-radius: 0 var(--vr-radius-main) var(--vr-radius-main) 0;
    background: var(--vr-topbar-bg) url("../img/signin-light.d42fb449e2ea.svg") 50% 100% / cover no-repeat;
  }

  [data-bs-theme="dark"] .vr-login-scene {
    background-image: url("../img/signin-dark.7fd1c6b790aa.svg");
  }

  .vr-login-caption {
    max-width: 30ch;
    margin: var(--vr-space-10);
  }

  .vr-login-title {
    margin: 0;
    color: var(--vr-text-strong);
    font-size: var(--vr-font-size-8);
    font-weight: var(--vr-font-weight-heavy);
    font-stretch: var(--vr-font-stretch-title);
    line-height: var(--vr-line-height-tight);
    text-wrap: balance;
  }

  .vr-login-description {
    margin: var(--vr-space-2) 0 0;
    color: var(--vr-text-muted);
    font-size: var(--vr-font-size-6);
    line-height: var(--vr-line-height-base);
  }
}
