#container {
  display: grid;
  grid-template-rows: 130px auto auto 200px;
}

.login-container {
  width: min(100%, 360px);
  min-height: 350px;
  height: auto;
  margin-top: clamp(40px, 8vh, 100px);
  margin-bottom: clamp(80px, 18vh, 300px);
  box-sizing: border-box;
}

.login-wrapper {
  display: grid;
  width: 100%;
  padding: 0;
  grid-template-rows: auto auto;
  gap: 18px;
  box-sizing: border-box;
}

.login-header {
  grid-row: 1/2;
}

.email-to-reset-header__text {
  text-align: center;
  font-size: 28px;
  color: #004f0c;
}

.email-to-reset-header__msg {
  color: black;
  font-size: 14px;
  padding: 10px;
  margin: 10px 0 10px 0;
  text-align: justify;
}

.login-form {
  grid-row: 2/3;
  display: grid;
  width: 100%;
  height: auto;
  grid-template-rows: auto auto;
  row-gap: 20px;
  justify-items: center;
}

.form-control input {
  grid-row: 1/2;
  justify-self: center;
  align-self: center;
  justify-content: center;
  align-content: center;
  width: min(100%, 220px);
  box-sizing: border-box;
}

.email-to-reset-message {
  justify-self: center;

}

.email-to-reset-btn {
  justify-self: center;
  align-self: center;
  height: 30px;
  min-width: 60px;
}

.email-to-reset-message-container {
  height: auto;
  min-height: 360px;
}

.email-to-reset-message-wrapper {
  display: grid;
  gap: 22px;
  align-content: center;
}

.email-to-reset-message-form {
  height: auto;
}

.email-to-reset-message__text {
  margin: 12px 0 0;
}

@media (max-width: 575.98px) {
  .login-container {
    width: calc(100vw - 32px);
    min-height: auto;
    padding: 24px 18px;
    margin-top: 32px;
    margin-bottom: 80px;
    row-gap: 16px;
  }

  .login-wrapper {
    height: auto;
    gap: 14px;
  }

  .email-to-reset-header__text {
    font-size: 24px;
  }

  .email-to-reset-header__msg {
    padding: 6px 0;
    margin: 6px 0;
    text-align: left;
  }

  .login-form {
    row-gap: 16px;
  }

  .form-control {
    width: 100%;
  }

  .form-control input {
    width: 100%;
    max-width: 100%;
  }

  .email-to-reset-message-wrapper {
    gap: 18px;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .login-container {
    width: min(100%, 380px);
    margin-top: 56px;
    margin-bottom: 120px;
  }
}
