body {
  min-height: 100vh;
  max-width: 1920px;
  margin: auto;
  display: flex;
  flex-direction: column;
}

#login_top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 50px;
}

.logo_start img {
  width: 120px;
  height: 120px;
}

.logo_start img:hover {
  cursor: pointer;
  scale: 1.1;
}

#to_signup {
  display: flex;
  gap: 24px;
  align-self: flex-start;
  color: #4589ff;
}

#to_signup a {
  color: #4589ff;
  font-weight: bold;
}

#to_signup a:hover {
  scale: 1.1;
  cursor: pointer;
}

button {
  background-color: #4589ff;
  color: #ffffff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 20px;
}

button:hover {
  background-color: rgb(64, 80, 224);
  transform: translateY(-2%);
  cursor: pointer;
}

#main {
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: center;
  flex-grow: 1;
}

#login_border {
  border: 1px solid #d3d3d3a1;
  border-radius: 16px;
  box-shadow: 0px 0px 16px 2px rgba(151, 150, 150, 0.3);
  height: 20%;
  margin-top: 4%;
}

#login_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 104px;
}

#login_form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.input_container {
  position: relative;
  display: inline-block;
}

.input_container input {
  padding-right: 30px;
  font-size: 24px;
}

.input_icon_email {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  height: auto;
  width: 18px;
}

.input_icon_password {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-70%);
  cursor: pointer;
  height: auto;
  width: 18px;
}

#login_container h2 {
  text-decoration: underline 3px #4589ff;
  text-underline-offset: 16px;
  font-size: 40px;
  padding-bottom: 40px;
}

input {
  border: none;
  border-bottom: 2px solid #d3d3d3;
  outline: none;
  padding: 5px;
  font-size: 16px;
}

::placeholder {
  color: #d3d3d3;
  opacity: 1;
}

input.error {
  border-bottom: 2px solid rgb(255 0 0);
}

#error_msg {
  color: rgb(255 0 0);
  position: absolute;
  bottom: -20px;
  left: 0;
  font-size: 14px;
  display: none;
}

#login_buttons {
  display: flex;
  gap: 24px;
}

#guest_button {
  border: 1px solid grey;
  background-color: #ffffff;
  color: gray;
}

#guest_button:hover {
  color: #4589ff;
  transform: translateY(-2%);
  border: 1px solid #4589ff;
}

#bottom_bar {
  width: 100%;
  height: 40px;
  padding-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  font-size: 16px;
}

.nav_link {
  text-decoration: none;
  color: rgb(94, 91, 91);
}

.nav_link:hover {
  color: #4589ff;
  cursor: pointer;
  scale: 1.1;
}

@media (max-width: 900px) {
  #login_top {
    padding: 20px;
  }

  .logo_start img {
    width: 80px;
    height: 80px;
  }

  #login_border {
    margin-top: 50px;
  }
}

@media (max-width: 560px) {
  #login_border {
    width: 95%;
  }

  #login_container {
    padding: 20px 50px;
  }

  #login_form {
    width: 100%;
  }

  .input_container {
    width: 100%;
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 505px) {
  #login_top {
    flex-direction: column;
    gap: 50px;
    padding: 20px 10px;
  }

  .logo_start {
    align-self: flex-start;
  }

  #to_signup {
    align-self: center;
  }

  #login_border {
    margin-top: 10px;
  }
}

@media (max-width: 440px) {
  #login_form {
    gap: 20px;
  }

  #login_buttons {
   margin-top: 30px;
  }

  #error_msg {
    bottom: -40px;
}
}

@media(max-width:355px) {
  button{
    font-size: 16px;
  }
}