* {
  padding: 0;
  margin: 0;
}

.d_none {
  display: none !important;
}

.regError {
  height: 20px;
  text-align: center;
}

.regError p {
  color: #ff8190;
}

.regDisplay input {
  border-color: #ff8190;
}

.displayFlex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  width: 100%;
  max-width: 1440px;
  margin: auto;
  padding: 0 0 0 0;
  position: relative;
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #f6f7f8;
}

header {
  height: 200px;
}

main {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
}

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
}

footer a {
  text-decoration: none;
  margin: 8px;
  color: #a8a8a8;
  font-size: 16px;
  font-family: "Inter", sans-serif;
  transition: ease-in-out 100ms;
}

footer a:hover {
  cursor: pointer;
  color: #29abe2;
  font-weight: bold;
  transition: ease-in-out 100ms;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

button {
  background-color: #2a3647;
  color: white;
  padding: 15px 24px;
  border-radius: 8px;
  border-style: none;
  font-size: 21px;
  font-weight: 700;
  font-family: "Inter", sans-serif;
}

button:hover {
  background-color: #29abe2;
  border: 1px solid #29abe2;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.422);
  cursor: pointer;
  transition: ease-in-out 100ms;
}

h1 {
  text-align: center;
  font-size: 61px;
  font-weight: 700;
  font-family: "Inter", sans-serif;
}

#join-logo {
  height: 120px;
  width: 100px;

  position: absolute;
  top: 40px;
  left: 50px;
}

#no-user-container {
  display: flex;

  justify-content: flex-end;
  align-items: center;
  font-size: 20px;
  font-weight: 400;
  font-family: "Inter", sans-serif;
  gap: 35px;
  position: absolute;
  top: 40px;
  right: 50px;
}

#no-user-container-mobile {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 40px;
  margin-bottom: 40px;
  font-size: 20px;
  font-weight: 400;
  font-family: "Inter", sans-serif;
  gap: 35px;
}

#login-container {
  padding: 48px 115px;
  background-color: white;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
  width: 100%;
  gap: 16px;
  box-shadow: 1px 1px 1px rgba(255, 255, 255, 0.43);

  > hr {
    height: 3px;
    width: 150px;
    background-color: #29abe2;
    border-radius: 3px;
    border: #29abe2;
  }
}

#login-inputfields {
  display: flex;
  flex-direction: column;
  margin-top: 8px;

  > #email-login {
    background-image: url(../assets/icons/login_signup/mail.svg);
    background-position: 382px;
    background-repeat: no-repeat;
  }

  > #password-login {
    background-image: url(../assets/icons/login_signup/lock.svg);
    background-position: 390px;
    background-repeat: no-repeat;
  }
}

input {
  height: 50px;
  width: 420px;
  border: 1px solid #d1d1d1;
  border-radius: 10px;
  font-size: 20px;
  font-family: "Inter", sans-serif;
  padding-left: 21px;
}

input::placeholder {
  display: flex;
  justify-content: space-between;
  color: #d1d1d1;
}

#login-buttons {
  margin: 32px;
  gap: 32px;
  display: flex;
  > button:first-child {
    border: none;
  }

  > button {
    height: 100%;
    padding: 15px 24px;
  }
}

#guest-login {
  background-color: white;
  color: #2a3647;
  border: 1px solid #2a3647;
}

#guest-login:hover {
  color: #29abe2;
  border: 1px solid #29abe2;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.422);
  transition: ease-in-out 100ms;
  cursor: pointer;
}

#no-user-container > button {
  border: none;
}

.password-container {
  position: relative;
  display: flex;
  align-items: center;
}

#password-login {
  width: 100%;
  padding-right: 40px;
}

#toggle-password {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
}

#toggle-password img {
  width: 24px;
  height: 24px;
}

.toogle-visibility:hover {
  cursor: pointer;
  box-shadow: none;
  transform: scale(1.1);
}

.toogle-visibility:focus {
  outline: none;
}

#mail-icon{
  position: absolute;
  margin-left: -58px;
  margin-top: 10px;
}

@media (max-width: 960px) {
  #back-button {
    margin-right: -20px;
    padding-left: 20px;
  }
  #join-logo {
    height: 80px;
    width: 64px;
    top: 10px;
    left: 25px;
  }

  main {
    min-height: initial;
  }
  #login-container {
    padding: 0;
  }
  h1 {
    padding: 16px 0;
    font-size: 47px;
    width: 100%;
  }
  #login-buttons {
    display: flex;
    flex-direction: column;
    gap: 21px;
    padding: 21px;
    margin: 0;
  }

  header {
    height: 100px;
  }
}

@media (max-width: 560px) {
  input {
    width: 320px;
  }

  #login-inputfields {
    > #email-login {
      background-position: 291px;
    }
  }
  #email-input,
  #password-input,
  #confirm-password-input {
    background-position: 307px;
  }

  #name-input {
    background-position: 310px;
  }

  #password-login {
    padding-right: 0;
  }
}

@media (max-width: 420px) {
  input {
    width: 90%;
  }
  #toggle-password {
    right: 0px;
  }
  #login-inputfields {
    > #email-login {
      background-position: 182px;
    }

    #mail-icon{
      margin-left: -40px;
    }
  }

  #email-input,
  #name-input,
  #password-input,
  #confirm-password-input {
    background-image: none;
  }

  #login-buttons {
    > button {
      padding: 10px;
      font-size: 14px;
    }
  }

  #login,
  #guest-login {
    width: 180px;
    height: auto;
  }
}
