/* Show the artwork above the form without enlarging the image to fill the viewport. */
.auth-page .auth-page__scene {
  --login-hero-height: clamp(104px, min(59vw, 30vh), 272px);
  width: 86%;
  width: min(calc(100% - 32px), calc(var(--login-hero-height) * 1.14));
  max-width: 310px;
  height: 180px;
  height: var(--login-hero-height);
  min-height: 0;
  margin: 12px auto 0;
  margin-top: max(12px, env(safe-area-inset-top, 0px));
  border-radius: 18px 18px 0 0;
  background: #fff;
}

.auth-page .auth-page__bg {
  background-image: url('/images/login-hero.jpg');
  background-image: image-set(
    url('/images/login-hero-553b4f42c691.webp') type('image/webp'),
    url('/images/login-hero.jpg') type('image/jpeg')
  );
  background-size: 100% auto;
  background-position: center top;
}

.auth-page .auth-page__scene::after {
  display: block;
  height: 12%;
  background: linear-gradient(transparent, #fff);
}

.auth-page .auth-page__content,
.auth-page.auth-page--embedded .auth-page__content {
  max-width: 420px;
  margin-top: 0;
}

/* At larger widths the app's rem scale also grows, including on phones in landscape. */
@media (min-width: 500px) {
  .auth-page .auth-page__content {
    padding-inline: 20px;
  }

  .auth-page .auth-panel__head,
  .auth-page .auth-options {
    margin-bottom: 14px;
  }

  .auth-page .auth-panel__head .auth-page__platform {
    font-size: 28px;
  }

  .auth-page .auth-panel__desc,
  .auth-page .auth-options,
  .auth-page .auth-link,
  .auth-page .auth-field__label {
    font-size: 14px;
  }

  .auth-page .auth-field {
    margin-bottom: 12px;
  }

  .auth-page .auth-field__control,
  .auth-page .auth-btn {
    height: 46px;
    min-height: 46px;
  }

  .auth-page .auth-field__input,
  .auth-page .auth-field__input::placeholder,
  .auth-page .auth-btn {
    font-size: 16px;
  }
}

@media (min-width: 700px) and (max-height: 500px) {
  .login-page.auth-page:not(.auth-page--embedded) {
    display: grid;
    grid-template-columns: minmax(0, 250px) minmax(0, 420px);
    align-content: start;
    align-items: start;
    justify-content: center;
    gap: 16px;
    padding: 12px;
  }

  .auth-page:not(.auth-page--embedded) .auth-page__scene {
    --login-hero-height: clamp(104px, 48vh, 216px);
    grid-column: 1;
    grid-row: 1;
  }

  .auth-page:not(.auth-page--embedded) .auth-page__content {
    grid-column: 2;
    grid-row: 1;
  }
}
