.password-requirements {
  margin-bottom: 12px;
  padding: 8px 10px;
  border: 1px solid #d5dfec;
  border-radius: 8px;
  background: #f3f7fc;
  color: #273951;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.password-requirements ul {
  margin: 2px 0 0;
  padding-inline-start: 1.2em;
}

#screen-reset .reg-error:empty,
#screen-change-pw .reg-error:empty {
  display: none;
}

@media (max-width: 420px) {
  #screen-reset .reg-card {
    width: calc(100% - 24px);
    padding-inline: 16px;
  }

  #screen-change-pw .password-change-body {
    padding-inline: 12px;
  }

  #screen-change-pw .password-change-card {
    padding-inline: 16px;
  }
}

@media (max-height: 670px) {
  .password-requirements {
    margin-bottom: 9px;
  }

  #screen-reset .pass-strength-wrap,
  #screen-change-pw .pass-strength-wrap {
    margin-bottom: 8px;
  }

  #screen-reset #btn-back-from-reset {
    margin-top: 10px;
  }

  #screen-reset .reg-card {
    margin-block: 8px;
    padding-block: 14px;
  }

  #screen-reset .reg-divider {
    margin-bottom: 8px;
  }

  #screen-change-pw .password-change-body {
    padding-block: 12px;
  }

  #screen-change-pw .password-change-card {
    padding-block: 16px;
  }
}

@media (max-width: 420px) and (max-height: 670px) {
  .password-requirements {
    padding-block: 6px;
  }

  #screen-reset .reg-card {
    margin-block: 4px;
    padding-block: 12px;
  }

  #screen-reset .login-logo {
    margin-bottom: 4px;
  }

  #screen-reset .login-logo-mark {
    width: 36px;
    height: 36px;
  }

  #screen-reset .reg-divider {
    margin-bottom: 6px;
  }

  #screen-change-pw .password-change-body {
    padding-block: 6px;
  }

  #screen-change-pw .password-change-card {
    padding-block: 10px;
  }

  #screen-change-pw .password-change-card h2 {
    margin-bottom: 4px;
  }

  #change-pw-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 8px;
  }

  #change-pw-form > * {
    grid-column: 1 / -1;
  }

  #change-pw-form label[for="new-password"],
  #change-pw-form #new-password {
    grid-column: 1;
  }

  #change-pw-form label[for="new-password-confirm"],
  #change-pw-form #new-password-confirm {
    grid-column: 2;
  }

  #change-pw-form label[for="new-password"],
  #change-pw-form label[for="new-password-confirm"] {
    grid-row: 4;
  }

  #change-pw-form #new-password,
  #change-pw-form #new-password-confirm {
    grid-row: 5;
  }

  #screen-reset .login-input,
  #screen-change-pw .login-input {
    margin-bottom: 9px;
  }

  #screen-reset .reg-error,
  #screen-change-pw .reg-error {
    margin-top: 6px;
  }
}
