body {
  overflow-x: hidden;
  background-color: #f6f7f8;
  font-family: "Inter";
  box-sizing: border-box;
  margin: 0;
}

/*CSS for Mainpage*/

.mainpage {
  overflow: hidden;
}

.d-none {
  display: none;
}

.container {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/*Animation at the beginning*/

@-webkit-keyframes slide-tl {
  0% {
    top: 345px;
    left: 583px;
    width: 274px;
    height: 334.07px;
    -webkit-transform: translateY(0) translateX(0);
    transform: translateY(0) translateX(0);
  }

  100% {
    top: 80px;
    left: 77px;
    width: 100.03px;
    height: 121.97px;
    -webkit-transform: translateY(0) translateX(0);
    transform: translateY(0) translateX(0);
  }
}

@keyframes slide-tl {
  0% {
    top: 345px;
    left: 583px;
    width: 274px;
    height: 334.07px;
    -webkit-transform: translateY(0) translateX(0);
    transform: translateY(0) translateX(0);
  }

  100% {
    top: 80px;
    left: 77px;
    width: 100.03px;
    height: 121.97px;
    -webkit-transform: translateY(0) translateX(0);
    transform: translateY(0) translateX(0);
  }
}

.animate {
  display: flex;
  position: absolute;
  width: 274px;
  height: 334.07px;
  top: 345px;
  left: 583px;
  gap: 0px;
  transition: transform 200ms ease-in-out, width 200ms ease-in-out, height 200ms ease-in-out, top 200ms ease-in-out, left 200ms ease-in-out;
  animation: slide-tl 0.4s 0.2s forwards;
}

/*Mainpage*/

.hiddenMainpage {
  visibility: hidden;
}

.visibleMainpage {
  opacity: 1;
  visibility: visible;
  transition: opacity 100ms ease-in-out, visibility 100ms ease-in-out;
}

/*Login page top right*/

.mainpageSignUpContainer {
  width: 279px;
  height: 49px;
  /*top: 67px;*/
  /*left: calc(100% / 1.5);*/
  top: 80px;
  gap: 35px;
  position: absolute;
  display: flex;
  align-items: center;
  right: 77px;
}

.textNotUser {
  font-size: 20px;
  font-weight: 400;
  line-height: 24px;
  text-align: left;
  color: #000000;
}

.mainpageSignUpButton {
  grid-template-columns: max-content;
  width: 91px;
  height: 49px;
  padding: 15px 16px 15px 16px;
  gap: 10px;
  border-radius: 8px;
  background: #2a3647;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  line-height: 19.2px;
  display: grid;
  align-content: center;
  justify-content: center;
  cursor: pointer;
}

.mainpageSignUpButton:hover {
  background-color: #29abe2;
  border: none;
  box-shadow: 0px 4px 4px 0px #00000040;
}

/*Login page login box*/

.loginContainer {
  display: flex;
  align-items: center;
  flex-direction: column;
  background-color: #ffffff;
  width: 422px;
  height: 470px;
  padding: 48px 115px 48px 115px;
  border-radius: 30px;
  gap: 32px;
  box-shadow: 0px 0px 14px 3px #0000000a;

}

/*Login headline*/

.loginHeadline {
  font-family: Inter;
  font-size: 61px;
  font-weight: 700;
  line-height: 73.2px;
  text-align: center;
  position: relative;
  width: 315px;
  height: 89px;
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 0;
}

.loginHeadline::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  border-bottom: 3px solid #29abe2;
}

/*Login credentials box*/

.mainCredentials {
  height: 196px;
  width: 422px;
  gap: 20px;
  display: flex;
  flex-direction: column;
}

.loginInputFields {
  width: 422px;
  height: 152px;
  position: relative;
}

.interactionContainer {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 422px;
  height: 196px;
}

.emailContainer {
  display: flex;
  align-items: center;
  position: relative;
}

.emailIcon {
  position: absolute;
  right: 21px;
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.visibility_off {
  content: url("./assets/img/visibility_off.svg");
}

.errorMessage {
  display: none;
  color: red;
  font-size: 12px;
  position: absolute;
  bottom: -5px;
  left: 0;
}

.loginEmail {
  width: 380px;
  height: 24px;
  gap: 10px;
  display: flex;
  border-radius: 10px;
  padding: 12px 21px 12px 21px;
  border: 1px solid #d1d1d1;
  font-size: 20px;
  font-weight: 400;
  line-height: 24px;
  cursor: pointer;
}

.loginEmail::placeholder,
.loginPassword::placeholder {
  color: #d1d1d1;
  outline: none;
}

input[type="email"]:focus,
input[type="password"]:focus {
  border: 1px solid #29abe2 !important;
  outline: none;
}

input[type="password"].error {
  border: 1px solid red !important;
  outline: none;
}

.loginPassword {
  width: 380px;
  gap: 8px;
  display: flex;
  height: 24px;
  padding: 12px 21px 12px 21px;
  gap: 10px;
  border-radius: 10px;
  border: 1px solid #d1d1d1;
  font-size: 20px;
  font-weight: 400;
  line-height: 24px;
  text-align: left;
  cursor: pointer;
}

/*Remember me section*/

.rememberMeSection {
  display: flex;
  width: 142px;
  height: 24px;
  gap: 8px;
  left: 39px;
  position: relative;
  align-items: center;
}

.checkboxRemember {
  display: none;
}

.checkboxLabel {
  font-family: Inter;
  font-size: 16px;
  font-weight: 400;
  line-height: 19.2px;
  text-align: left;
  padding-left: 30px;
}

.checkboxRemember+.checkboxLabel::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url("./assets/img/checkboxUnchecked.svg");
  background-size: cover;
  position: absolute;
  left: 0;
  top: -1px;
  transition: background-image 0.1s;
  cursor: pointer;
}

.checkboxRemember:not(:checked)+.checkboxLabel:hover::before {
  background-image: url("./assets/img/checkboxUncheckedHover.svg");
  cursor: pointer;
}

.checkboxRemember:checked+.checkboxLabel::before {
  background-image: url("./assets/img/checkboxChecked.svg");
  cursor: pointer;
}

.checkboxRemember:checked+.checkboxLabel:hover::before {
  background-image: url("./assets/img/checkboxCheckedHover.svg");
  cursor: pointer;
}

/*Login section buttons*/

.loginButtons {
  display: flex;
  width: 322px;
  height: 48px;
  gap: 35px;
}

.mainpageLoginButton {
  grid-template-columns: max-content;
  width: 110px;
  height: 48px;
  padding: 15px 24px 15px 24px;
  gap: 10px;
  border-radius: 8px;
  background: #2a3647;
  color: #ffffff;
  font-size: 21px;
  font-weight: 700;
  line-height: 25.2px;
  display: grid;
  align-content: center;
  justify-content: center;
  cursor: pointer;
}

.mainpageLoginButton:hover {
  background-color: #29abe2;
  border: none;
  box-shadow: 0px 4px 4px 0px #00000040;
}

.mainpageGuestButton {
  grid-template-columns: max-content;
  display: grid;
  width: 177px;
  height: 48px;
  padding: 15px 24px 15px 24px;
  gap: 10px;
  border-radius: 8px;
  border: 1px solid #2a3647;
  background-color: #ffffff;
  font-family: Inter;
  font-size: 21px;
  font-weight: 700;
  line-height: 25.2px;
  text-align: left;
  color: #2a3647;
  align-content: center;
  justify-content: center;
  cursor: pointer;
}

.mainpageGuestButton:hover {
  color: #29abe2;
  border: 1px solid #29abe2;
  box-shadow: 0px 4px 4px 0px #00000040;
}