* {
  font-family: "Inter";
  box-sizing: border-box;
}

body,
head {
  margin: 0;
  border: 0;
  padding: 0;
  background-color: #f6f7f8;
  font-size: 16px;
}

button {
  background-color: #2a3647;
  font-size: 14px;
  font-weight: 700;
  color: white;
  width: 91px;
  height: 51px;
  border-radius: 8px;
  cursor: pointer;
  margin: 10px 10px;
  z-index: 99;
}

a {
  color: inherit;
  text-decoration: none;
}

.mainContainer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.loginButton {
  width: 145px;
  height: 51px;
  background: #2a3647;
  border-radius: 8px;
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-size: 21px;
  line-height: 120%;
  z-index: 0;
}

.whiteButton {
  background-color: white;
  width: 145px;
  height: 51px;

  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-size: 21px;
  line-height: 120%;

  color: #2a3647;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 185px;
}

.signInField {
  position: absolute;
  top: 25px;
  right: 50px;
  font-size: 25px;
  font-weight: bold;
  z-index: 0;
}

.signInField button {
  margin: 0;
  border: none;
}

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

.loginScreen {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
  background-color: white;
  width: 650px;
  border-radius: 30px;
  height: 550px;
  box-shadow: 0px 0px 14px 3px rgba(0, 0, 0, 0.04);
}

.signUpScreen {
  height: 600px;
}

.arrowBack {
  position: absolute;
  top: 24px;
  left: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.loginHeading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.loginHeading > h1 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 0.25em;
}

.blueLigne {
  height: 3px;
  background-color: #29abe2;
  width: 30%;
}

.inputFields {
  box-sizing: border-box;
  padding: 13px 21px;
  gap: 10px;
  width: 422px;
  height: 51px;
  background: #ffffff;
  border: 1px solid #d1d1d1;
  border-radius: 10px;
  font-size: 21px;
}

::placeholder {
  width: 125px;
  height: 25px;
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-size: 21px;
  line-height: 120%;
  color: #d1d1d1;
}

.inputContainer {
  flex: none;
  order: 0;
  flex-grow: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.inputContainer img {
  width: 20px;
  height: 18px;
}

.selectColor {
  padding-top: 5px;
  padding-bottom: 5px;
  font-size: 21px;

  appearance: none;
  background-image: url(/img/down-arrow.svg);
  background-repeat: no-repeat;
  background-position: right 0.8rem top 50%;
  background-size: 1rem auto;
  cursor: pointer;
}

.color {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.colorCircle {
  width: 15px;
  height: 15px;
  border-radius: 50%;
}

.inputFieldContainer {
  position: relative;
}

.inputFieldContainer .img {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 20px;
  height: 18px;
}

.rememberOrForgetFields {
  display: flex;
  align-items: center;
  gap: 35px;
}

.rememberOrForgetFields > a {
  text-align: center;
}

.checkboxContainer {
  display: flex;
  gap: 15px;
}

.forgotMyPassword {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 120%;
  color: #29abe2;
  cursor: pointer;
}

/* Animation */
.startScreen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;

  animation-duration: 0.5s;
  animation-timing-function: ease-in-out;
  animation-delay: 750ms;
  animation-fill-mode: both;
  animation-name: startAnimation;
}

@keyframes startAnimation {
  0% {
    width: 100%;
    height: 100%;
    background-color: white;
  }
  10% {
    background-color: transparent;
  }
  100% {
    height: 150px;
    width: 133px;
    background-color: transparent;
  }
}

.startSignUpScreen {
  animation: none;
  height: 150px;
  width: 133px;
  background-color: transparent;
}

.logo {
  height: 150px;
  width: 124px;
  opacity: 1;
  z-index: 99;

  animation-duration: 1s;
  animation-timing-function: ease-in-out;
  animation-delay: 400ms;
  animation-fill-mode: both;
  animation-name: startLogo;
}

@keyframes startLogo {
  0% {
    height: 150px;
  }
  100% {
    height: 100px;
    width: 83px;
  }
}

.logoSignUpScreen {
  animation: none;
  height: 100px;
  width: 83px;
}

/* ================================== SNACKBAR =======================================*/

/* The snackbar - position it at the bottom and in the middle of the screen */
#missingSignedUp,
#alreadySignedUp,
#successfullySignedUp,
#userDoesNotExist,
#pwEmailIncorrect,
#sendEmail {
  visibility: hidden; /* Hidden by default. Visible on click */
  min-width: 280px; /* Set a default minimum width */
  margin-left: -140px; /* Divide value of min-width by 2 */
  background-color: #2a3647; /* Black background color */
  color: #fff; /* White text color */
  text-align: center; /* Centered text */
  border-radius: 10px; /* Rounded borders */
  padding: 16px 8px; /* Padding */
  position: fixed; /* Sit on top of the screen */
  z-index: 1; /* Add a z-index if needed */
  left: 50%; /* Center the snackbar */
  bottom: 30px; /* 30px from the bottom */
}

#missingSignedUp {
  background-color: red;
}

/* Show the snackbar when clicking on a button (class added with JavaScript) */
#missingSignedUp.show,
#alreadySignedUp.show,
#successfullySignedUp.show,
#userDoesNotExist.show,
#pwEmailIncorrect.show,
#sendEmail.show {
  visibility: visible; /* Show the snackbar */
  /* Add animation: Take 0.5 seconds to fade in and out the snackbar.
  However, delay the fade out process for 2.5 seconds */
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }
  to {
    bottom: 30px;
    opacity: 1;
  }
}

@keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }
  to {
    bottom: 30px;
    opacity: 1;
  }
}

@-webkit-keyframes fadeout {
  from {
    bottom: 30px;
    opacity: 1;
  }
  to {
    bottom: 0;
    opacity: 0;
  }
}

@keyframes fadeout {
  from {
    bottom: 30px;
    opacity: 1;
  }
  to {
    bottom: 0;
    opacity: 0;
  }
}

/* =========================== RESPONSIVENESS ======================= */

@media (max-width: 720px) {
  .loginScreen {
    width: 100%;
  }
  .contentContainer {
    padding-left: 50px;
    padding-right: 50px;
  }

  .loginHeading:before {
    bottom: -16px;
  }
}

@media (max-width: 600px) {
  .signUpScreen {
    height: 550px;
  }

  .signInContainer {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 25px;
  }
  .signInField {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
  }

  .inputFields {
    padding: 13px 21px;
    gap: 10px;
    width: 327px;
    height: 41px;
    width: 100%;
  }

  .selectColor {
    padding-top: 5px;
    padding-bottom: 5px;
  }

  ::placeholder {
    width: 100%;
    height: 25px;
    font-size: 21px;
    line-height: 120%;
  }

  .inputContainer {
    flex: none;
    order: 0;
    flex-grow: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
  }

  .inputContainer img {
    width: 20px;
    height: 18px;
  }

  .inputFieldContainer {
    position: relative;
    width: 100%;
  }

  .inputFieldContainer .img {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 20px;
    height: 18px;
  }

  .rememberOrForgetFields {
    display: flex;
    gap: 35px;
  }

  .checkboxContainer {
    display: flex;
    gap: 15px;
  }

  .forgotMyPassword {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 120%;
    color: #29abe2;
  }

  .loginHeading {
    font-size: 45px;
  }

  .loginHeading:before {
    bottom: -11px;
  }
  .contentContainer {
    padding-left: 25px;
    padding-right: 25px;
  }
}

@media (max-width: 480px) {
  @keyframes startAnimation {
    0% {
      width: 100%;
      height: 100%;
      background-color: white;
    }
    10% {
      background-color: transparent;
    }
    100% {
      height: 125px;
      width: 111px;
      background-color: transparent;
    }
  }

  @keyframes startLogo {
    0% {
      height: 150px;
    }
    100% {
      height: 75px;
      width: auto;
    }
  }

  .startSignUpScreen {
    animation: none;
    height: 125px;
    width: 111px;
    background-color: transparent;
  }

  .logoSignUpScreen {
    height: 75px;
    width: auto;
  }

  .loginScreen {
    padding-left: 20px;
    padding-right: 20px;
    height: 500px;
  }

  .inputContainer {
    width: 100%;
  }

  .inputFieldContainer {
    width: 100%;
    margin-left: 10px;
    margin-right: 10px;
  }

  .rememberOrForgetFields {
    flex-direction: column-reverse;
    align-items: flex-start;
    width: 90%;
    margin-left: 20px;
  }
  .rememberOrForgetFields p {
    margin: 10px 0;
  }

  .rememberOrForgetFields {
    gap: 0;
  }
  .loginAndWhiteButton {
    display: flex;
    flex-direction: column;
    position: relative;
  }

  .contentContainer {
    padding-left: 15px;
    padding-right: 15px;
  }

  .inputFields {
    font-size: 16px;
  }

  .arrowBack img {
    width: 25px;
    height: 25px;
  }

  .signInContainer {
    padding-left: 15px;
    padding-right: 15px;
  }

  .signInField {
    gap: 20px;
  }

  .signInField > span {
    font-size: 20px;
  }

  .signInField > button {
    scale: 0.9;
  }

  .loginHeading > h1 {
    font-size: 2.5rem;
  }
}

@media (max-height: 750px) {
  .mainContainer {
    height: 95%;
  }
  .header {
    height: 150px;
  }
  .loginHeading h1 {
    margin: 0.25em;
  }
  .signInContainer {
    bottom: -30px;
    padding-bottom: 15px;
  }
  .loginScreen {
    height: 450px;
  }
}

@media (max-width: 300px) {
  .inputFieldContainer {
    margin-left: 10px;
    margin-right: 10px;
  }

  .rememberOrForgetFields {
    margin-left: 10px;
  }

  .signInField {
    gap: 0;
  }
}
