/**************************/
/* BODY */
/**************************/

body {
  background-color: #eef1ef;
}

/**************************/
/* FORM SECTION */
/**************************/

.section-form {
  display: flex;
  justify-content: center;
}

.form-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3.2rem 3.2rem;
  gap: 0.8rem;
  background-color: #fff;
  width: 90%;
  max-width: 45rem;
  min-width: 30rem;
  margin-top: 12.8rem;
  margin-bottom: 12.8rem;
  border-radius: 9px;
  box-shadow: 0 1.2rem 3.2rem rgba(0, 0, 0, 0.03);
}

.logo-container {
  margin-bottom: 4.8rem;
}

.logo {
  height: 2.2rem;
}

.btn-container {
  display: flex;
  justify-content: center;
  align-self: stretch;
  gap: 1.6rem;
}

.signup-tab,
.login-tab {
  white-space: nowrap;
  flex: 1;
  font-size: 1.4rem;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.8rem 0.4rem;
  border: none;
  background: none;
  cursor: pointer;
}

.btn-container {
  border-bottom: 2px solid #eff1ef;
}

.btn-container .active {
  border-bottom: 2px solid #ff6f61;
}

.input-containers {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 3.2rem;
  margin-bottom: 4.8rem;
  gap: 2.4rem;
}

.input-container {
  background-color: #eef1ef;
  align-self: stretch;
  border-radius: 9px;
}

.form-input {
  width: 100%;
  padding: 1.2rem;
  border: none;
  border-radius: 9px;
  outline: none;
  background-color: transparent;
  font-size: 1.6rem;
  font-weight: 400;
  color: #000;
  transition: all 0.3s;
}

.form-input:focus {
  font-size: 1.8rem;
  box-shadow: inset 0 0 0 2px #ff6f61;
}

.enter-password-container,
.confirm-password-container {
  margin-bottom: -2.4rem;
}

.confirm-password-container,
.enter-username-container {
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}

.confirm-password-container.show,
.enter-username-container.show {
  opacity: 1;
  visibility: visible;
  max-height: 8.6rem;
  margin-top: 2.4rem;
}

.error-message {
  font-size: 1.6rem;
  font-weight: 500;
  color: #ff6f61;
  margin: 0.4rem 1.2rem;
  display: none;
}

.error-message.show {
  display: block;
}

.success-message {
  font-size: 1.6rem;
  font-weight: 500;
  color: #000;
  margin: 0.4rem 1.2rem;
  display: none;
}

.success-message.show {
  display: block;
}

.btn-signup {
  display: none;
  justify-content: center;
}

.btn-signup.show {
  display: flex;
}

.btn-login.hide {
  display: none;
}

.btn-login,
.btn-signup {
  width: 100%;
  padding: 1.6rem 3.2rem;
  border: none;
  border-radius: 9px;
  background-color: #ff6f61;
  color: #fff;
  font-size: 2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

@media (hover: hover) and (pointer: fine) {
  .btn-login:hover,
  .btn-signup:hover {
    background-color: #fff;
    color: #000;
    box-shadow: inset 0 0 0 2px #ff6f61;
  }
}

.btn-login:active,
.btn-signup:active {
  background-color: #fff;
  color: #000;
  box-shadow: inset 0 0 0 2px #ff6f61;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 4px solid #fff;
  border-top: 4px solid #ff6f61;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 1rem auto;
  display: block;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.hidden {
  display: none;
}
