/* Mobile secure-access system */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

@media (max-width: 780px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    min-width: 0;
    background-position: 18% top;
    background-size: auto 760px;
    background-repeat: no-repeat;
  }

  .login-shell {
    display: flex;
    min-height: calc(100dvh - 34px);
    flex-direction: column;
  }

  .login-story {
    min-height: 290px;
    align-items: center;
    justify-content: center;
    padding: calc(34px + env(safe-area-inset-top)) 20px 34px;
  }

  .login-mark {
    align-items: center;
    gap: 16px;
    text-align: center;
  }

  .login-mark > span {
    width: 68px;
    height: 68px;
    border-width: 1px;
    margin-left: 0;
    box-shadow: 0 0 0 7px rgba(169, 202, 153, .08);
    font-size: 28px;
  }

  .login-mark strong {
    font-size: clamp(32px, 9.5vw, 43px);
    line-height: 1.1;
    letter-spacing: -.065em;
  }

  .login-card {
    width: 100%;
    min-height: 540px;
    align-self: stretch;
    margin-top: 0;
    padding: 42px 24px calc(42px + env(safe-area-inset-bottom));
    transform: none;
    border-radius: 30px 30px 0 0;
    background: rgba(251, 254, 250, .98);
    box-shadow: 0 -16px 44px rgba(6, 32, 22, .12);
  }

  .login-card > header {
    gap: 14px;
    margin-bottom: 30px;
  }

  .login-card > header h1 {
    font-size: 38px;
  }

  .login-card > header i {
    width: 34px;
  }

  form,
  .setup-card {
    gap: 20px;
  }

  input {
    min-height: 56px;
    font-size: 16px;
  }

  button,
  .setup-card a {
    min-height: 58px;
  }

  .login-site-record {
    position: relative;
    right: auto;
    bottom: auto;
    padding: 12px 12px calc(14px + env(safe-area-inset-bottom));
    background: var(--surface);
    text-align: center;
  }
}

@media (max-width: 380px) {
  .login-story {
    min-height: 258px;
  }

  .login-mark strong {
    font-size: 31px;
  }

  .login-card {
    padding-right: 18px;
    padding-left: 18px;
  }
}
