/* AUTH-S1: phone and tablet touch areas and type; desktop retains existing rules. */

/* AUTH-S4: reset shows "Back to sign in" and the legal footer below 1280 only; on desktop
   the vertically centred column would shift up and break the unchanged-desktop bar. */
@media (min-width: 1280px) {
  .auth-sol--reset .auth-sol__after { display: none; }
}

@media (max-width: 1279px) {
  .auth-sol--reset button[type="submit"] {
    background: #1B1B1F !important;
    box-shadow: none !important;
  }

  .auth-sol__head h2 {
    color: #1B1B1F !important;
  }

  .auth-sol p,
  .auth-sol label,
  .auth-sol input,
  .auth-sol .n-note,
  .au-mail .n-note,
  .au-mail__rows,
  .au-mail__field label {
    font-size: 16px;
    line-height: 24px;
  }

  .auth-sol a,
  .auth-sol button,
  .au-mail a,
  .au-mail button {
    min-width: 44px;
    min-height: 44px;
  }

  .auth-sol a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .auth-sol button,
  .auth-sol__invitation a,
  .au-mail .n-btn {
    font-size: 16px;
    line-height: 22px;
  }

  .au-mail .n-btn {
    min-height: 44px;
  }

  .auth-sol .auth-sol__helper {
    font-size: 14px;
    line-height: 20px;
  }

  .auth-sol__invitation p {
    overflow-wrap: anywhere;
  }

  /* Keep the keyboard-only skip link hidden until focused, then touch-sized. */
  body:has(.auth-sol, .au-mail) > a[href='#main-content']:not(:focus) {
    opacity: 0;
  }

  body:has(.auth-sol, .au-mail) > a[href='#main-content']:focus {
    display: inline-flex;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
    font-size: 16px;
  }
}

@media (max-width: 767px) {
  .auth-sol {
    align-items: flex-start;
    padding-top: 40px;
  }

  .auth-sol__head {
    text-align: left;
  }

  .au-mail {
    background: #FFFFFF;
  }
}
