* {
  box-sizing: border-box;
}

html,
body {
  overflow: auto;
}

body {
  font-family: Raleway, Avenir, Helvetica, Arial, sans-serif;
  font-feature-settings: "pnum" on, "lnum" on, "ss01" on;
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
}

button:disabled {
  pointer-events: none;
}
button:disabled .wf-spinner {
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes slide {
  0% {
    transform: translatex(-200%);
  }
  100% {
    transform: translatex(0%);
  }
}

@keyframes fadein {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fadeout {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    visibility: hidden;
    display: none;
  }
}

.login-screen-wrapper {
  display: flex;
  height: 100%;
  width: 100%;
  min-height: 100vh;
}

.left-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  background: #ff2e5f;
  max-width: 844px;
  border-radius: 0 100px 100px 0;
  animation: slide 1.5s ease-out forwards;
}

.girl-on-cloud {
  width: 70%;
  display: block;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: fadein 1s ease-in 2.5s forwards;
}

.lots-to-do {
  color: #fff;
  font-size: 3.125rem;
  font-weight: bold;
  text-align: center;
  margin-top: 15px;
  opacity: 0;
  animation: fadein 1.5s 1.5s forwards;
}

.right-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  flex: 1;
  width: 100%;
}

.sign-in-form-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  opacity: 0;
  animation: fadein 1s ease-in 3.5s forwards;
}

.melon-logo {
  max-width: 100%;
}

.user-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 23.625rem;
  max-width: 664px;
}

.sign-in-wrapper {
  width: 100%;
  text-align: center;
}

.error-wrapper {
  display: none;
  flex-direction: row;
  width: 100%;
  border-radius: 10px;
  background-color: #FAE5E5;
  padding: 12px 26px 12px 16px;
  gap: 12px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.error-txt {
  color: #B00000;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-align: left;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
}

.error-txt span {
  font-weight: 700;
}

.input-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  border-radius: 10px;
  border: solid 1px #dcdcdc;
}

.row-single-item {
  border: solid 1px black;
  max-width: 250px;
}

.email {
  margin-top: 14px;
}

.user-image {
  width: 30px;
  margin-left: 8px;
}

.email-input {
  background-color: transparent;
  padding: 0 0.5rem;
  height: 3.313rem;
  width: 100%;
  outline: none;
  font-size: 0.875rem;
  border: none;
}

.button-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  border-radius: 1000px;
  background-size: 200% 200%;
  transition: opacity 0.2s ease 0s;
  background-image: radial-gradient(
    circle at center,
    #ff385c 0%,
    #e61e4d 27.5%,
    #e31c5f 40%,
    #bd1e59 75%,
    #bd1e59 100%
  );
}

.animated-button {
  position: relative;
  transition: color 0.2s ease 0s;
}
.animated-button:hover {
  outline: none;
  color: #ffffff;
  background: #db0e4f;
}
.animated-button:hover .button-gradient {
  opacity: 1;
}
.animated-button:active .button-gradient {
  opacity: 0;
}

.button {
  width: 100%;
  max-width: 300px;
  cursor: pointer;
  display: block;
  height: 3.375rem;
  margin: 20px auto;
  border-radius: 1000px;
  font-size: 1.125rem;
  font-weight: bold;
  border: 0;
  color: #fff;
  text-transform: uppercase;
  background-color: #ffffff;
  background-image: linear-gradient(to right, #ff2e5f, #e50f53);
  letter-spacing: 0.1125rem;
}

.button-content {
  z-index: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
}

.sign-up-button {
  width: 50%;
}

.sign-up-wrapper {
  display: none;
  padding: 0 40px;
}
.sign-up-form-content {
  display: flex;
  flex-direction: column;
  justify-items: center;
}

.sign-up-header {
  font-size: 1.875rem;
  text-align: left;
  line-height: 2rem;
  font-weight: bold;
  letter-spacing: 0.46px;
  max-width: 490px;
  color: #ff2e5f;
  margin-bottom: 15px;
}

.sign-up-paragraph {
  letter-spacing: 0.22px;
  color: #3d3d3d;
}

.sign-up-input-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.sign-up-label-input-group {
  flex-direction: column;
  align-items: flex-start;
  width: auto;
  border: 0;
}

.row {
  display: flex;
  margin-bottom: 25px;
}

.fullname-wrapper {
  display: flex;
  flex-wrap: wrap;
}
.fullname {
  flex-direction: column;
}

select {
  text-overflow: ellipsis;
  min-width: 175px;
  border-radius: 1000px;
  border: solid 1px #dcdcdc;
  height: 35px;
  min-height: 35px;
  box-shadow: none;
  padding: 0 8px;
  appearance: none;
}

.select-wrapper {
  position: relative;
}

.select-wrapper:after {
  position: absolute;
  content: "\2304";
  top: 3px;
  right: 12px;
}

label {
  font-size: 0.65rem;
  font-weight: bold;
  letter-spacing: 0.71px;
  color: #404040;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.signup-input {
  height: 36px;
  padding: 0 14px;
  background-color: #fff;
  border-radius: 10px;
  border: solid 1px #d8d8d8;
}

.success-panel {
  display: none;
}

.mobile-snap-animation-wrapper {
  display: none;
}

.wf-spinner {
  display: none;
  vertical-align: middle;
  border: 0.2em solid #ff2e5f;
  border-left-color: #ffc7d4;
  width: 1.5em;
  height: 1.5em;
  line-height: 0;
  border-radius: 50%;
  animation: spin 450ms linear infinite;
  margin-right: 6px;
}

.success-content {
  margin: 0 auto;
  padding: 0 16px;
}

.signup-for-demo-button {
  border: none;
  background-color: transparent;
  text-decoration: underline;
  color: #ff2e5f;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 0.48px;
  font-size: 12px;
  padding: 0;
  margin-left: 4px;
  cursor: pointer;
}

/* give margin for second item for signup inputs. only for desktop */
@media (min-width: 976px) {
  .sign-up-label-input-group:nth-child(2) {
    margin-left: 30px;
  }
}

@media (max-width: 976px) {
  select {
    width: 100%;
  }
  .select-wrapper {
    width: 100%;
  }
  .sign-up-header {
    margin: 16px auto 0;
  }
  .signup-input {
    width: 100%;
    border-radius: 5px;
  }
  .sign-up-label-input-group {
    margin-bottom: 20px;
    width: 100%;
  }
  .row {
    flex-wrap: wrap;
    margin-bottom: 0;
  }
  .sign-up-wrapper {
    width: 100%;
    padding: 0 20px;
  }
  .left-content {
    display: none;
    background: blue;
  }

  .sign-in-form-wrapper {
    padding: 0 20px 0;
  }
  .user-form {
    width: 100%;
    max-width: 400px;
  }
  .melon-logo {
    width: 100%;
  }

  .mobile-snap-animation-wrapper {
    display: flex;
    background-color: #ff2e5f;
    position: fixed;
    height: 100%;
    width: 100%;
    flex-direction: column;
    z-index: 1;
    justify-content: center;
    align-items: center;
    animation: fadeout 1s 2.5s forwards;
    opacity: 1;
  }

  .snap-fade-wrapper {
    display: block;
    animation: fadein 2s 0.1s forwards;
    opacity: 0;
  }

  .snap-gif {
    display: block;
    animation: fadein 1s 0s forwards;
    opacity: 0;
    height: 12rem;
  }

  .snap-text {
    font-size: 2rem;
    color: #ffffff;
    font-weight: 600;
    text-align: center;
  }
}
