@import url("https://fonts.googleapis.com/css2?family=Rethink+Sans:wght@400;500;600&display=swap");

#container {
  display: grid;
  grid-template-rows: 130px auto auto 200px;
}

header {
  grid-row: 1/2;
}

footer {
  grid-row: 4/5;
}

.link {
  color: #004e00;
}

.message-container {
  grid-row: 2/3;
  justify-self: center;
  align-self: center;
  margin-top: 50px;
}

.login-container {
  grid-row: 3/4;
  display: grid;
  border: 2px solid lightgray;
  border-radius: 10px;
  width: 300px;
  height: 485px;
  justify-self: center;
  align-self: center;
  padding: 30px;
  margin-top: 70px;
  margin-bottom: 100px;
  grid-template-rows: 30% 70%;
  row-gap: 20px;
}

.login-header {
  display: grid;
  width: 300px;
  justify-self: center;
  justify-content: center;
  align-content: top;
}

.login-header__text {
    display: grid;
    align-self: center;
  color: #004e00;
  font-size: 28px;
  font-weight: bolder;
}

.login-header__signup {
    font-size: 12px ;
    text-align: right;
}

.form {
  display: grid;
  justify-content: center;
  height: 500px;
}



.login-form {

  height: 140px;
}

.form-control {
  justify-self: center;
  align-content: center;
  margin: 5px;
}

.password-field input,
.form-control input,
.form-control label,
.form-control textarea {
  display: grid;
  width: 180px;
  height: 20px;
  padding: 3px;
  border-radius: 15px;
}

.form-control label {
   font-size: 14px; 
}

 .password-field {
   position: relative;
   display: inline-block;
 }
 
 .form-control #email
 .password-field input {
   padding-right: 44px;
   box-sizing: border-box;
 }
 
 .password-toggle {
   position: absolute;
   top: 50%;
   right: 8px;
   transform: translateY(-50%);
   width: 24px;
   height: 24px;
   padding: 0;
   margin: 0;
   border: none;
   background: transparent;
   color: #667;
   display: grid;
   place-items: center;
   cursor: pointer;
   z-index: 2;
   user-select: none;
   -webkit-tap-highlight-color: transparent;
 }
 
 .password-toggle:focus-visible {
   outline: 2px solid #79c879;
   border-radius: 50%;
 }
 
 .password-toggle .icon-eye-open-img,
 .password-toggle .icon-eye-closed-img {
   width: 20px;
   height: 20px;
   display: inline;
   object-fit: contain;
 }
 
 .password-toggle .icon-eye-closed-img {
   display: none;
 }
 
 .password-toggle.is-on .icon-eye-open-img {
   display: none;
 }
 
 .password-toggle.is-on .icon-eye-closed-img {
   display: inline;
 }
 
.google-login-btn {
  display: grid;
  grid-template-columns: 11% 89%;
  justify-content: center;
  align-content: center;
  width: 200px;
  margin-top: 50px;
  border-radius: 20px;
  padding: 8px;
  font-family: inherit;
  font-size: 14px;
   box-shadow: 0 3px 10px rgba(0, 0, 0, 0.24);
}

.google-login-btn p {
  color: black;
  align-self: center;
  justify-self: center;
}

.google-login-btn img {
  width: 20px;
}

.login-btn-wrapper {
  display: grid;
  justify-self: center;
  align-self: center;
  margin-top: 20px;
  width: 100%;
}


.login-form__forgot-password {
  font-size: 12px;
  margin: 2px;
  margin-right: 15px;
  text-align: right;
 
}

@media (max-width: 575.98px) {
  #container {
    grid-template-rows: 110px auto auto 180px;
  }

  .login-container {
    width: 80%;
    min-height: 420px;
    height: auto;
    padding: 24px;
    margin-top: 50px;
    margin-bottom: 100px;
    row-gap: 5px;
      grid-template-rows: 25% 65%;
  }

  .login-header {
    width: 100%;
  }

  .login-header__text {
    font-size: 24px;
  }



  .login-form {
    height: auto;
  }

  .form-control label,
  .form-control input,
  .form-control textarea {
    width: 100%;
  }

  .password-field {
    width: 100%;
  }

  .google-login-btn {
  

  }

  .login-btn-wrapper {
    width: 100%;
  }
}
