/* The sign-in card. This is the only page before a sign-in. */
/* The picture is an original drawing. It is not stock art. */

.login-body {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.login-top { padding: 0.95rem 0 0.8rem; }

.login-page {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  margin: 0;
}

.login-main {
  position: absolute;
  inset: 0;
}

.login-art {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.login-art img {
  display: block;
  width: min(100%, 36rem);
  max-height: 88%;
  object-fit: contain;
  opacity: 0.72;
}

.login-art figcaption { display: none; }

.login-slot {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: max(1.25rem, 7%);
  transform: translateY(-50%);
  width: min(22.5rem, 42vw);
}

.login-body .site-foot {
  width: 100%;
  margin: 0;
  padding: 0.75rem 1rem 0.85rem;
  border-top: 1px solid var(--sand);
  background: var(--page);
  position: relative;
  z-index: 2;
}

.login-form {
  flex-direction: column;
  align-items: stretch;
  max-width: none;
  margin: 0;
  background: #fff;
  border-color: #fff;
  box-shadow:
    0 0 0 3px rgba(1, 126, 137, 0.28),
    0 16px 36px rgba(13, 34, 70, 0.18);
  padding: 1.25rem 1.25rem 1.15rem;
}

@media (max-width: 800px) {
  .login-art { left: 0; width: 100%; align-items: flex-end; padding-bottom: 0.25rem; }
  .login-art img { width: min(15rem, 62%); max-height: 34%; opacity: 0.4; }
  .login-slot {
    left: 50%;
    top: 46%;
    transform: translate(-50%, -50%);
    width: min(22.5rem, calc(100% - 1.5rem));
  }
}

@media (max-height: 640px) {
  .login-top { padding: 0.45rem 0 0.4rem; }
  .login-top h1 { font-size: 1.55rem; }
  .login-form { padding: 0.75rem 0.85rem; gap: 0.45rem; }
  .login-slot { width: min(20rem, calc(100% - 1.25rem)); }
}

.login-form label,
.login-form button[type="submit"] {
  flex: 0 0 auto;
}

#login-message {
  max-width: none;
}
