html,
body {
  height: 100%;
}

body {
  color: #3e3e3e;
  font-size: 16px;
  font-weight: normal;
  margin: 0;
  min-height: 100vh;
}

#kc-info {
  display: none;
}

#kc-content {
  min-height: 100%;
}

#kc-content-wrapper {
  min-height: 100%;
}

.kc-feedback-text {
  font-size: 14px;
  line-height: 20px;
  color: #717171;
}

.alert {
  padding-bottom: 24px;
}

.alert-error {
  color: #ea1d2c;
}

.card {
  max-width: 55%;
  margin: auto;
  display: flex;
}

.card__wrapper {
  max-width: 542px;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

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

.form-actions>button {
  min-width: 340px;
  font-size: 1em;
}

.form-description {
  color: #717171;
  font-size: 14px;
  font-weight: 300;
  line-height: 16px;
  margin-bottom: 24px;
  text-align: center;
}

.form-row {
  margin-bottom: 24px;
}

.form-row--reset-password {
  margin-bottom: 40px;
}

.form-signin {
  display: grid;
  grid-column-gap: 16px;
  grid-template-columns: 1fr 1fr;
}

.form-title {
  color: #3e3e3e;
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
  margin: 0;
  text-align: center;
}

.form-title--signup {
  font-weight: 300;
  margin: 48px 0 32px;
  text-align: left;
}

.login-grid {
  background: #ffffff;
  border: 1px solid #f2f2f2;
  border-radius: 4px;
  box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.04);
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 auto;
  max-width: 680px;
  padding: 32px 16px;
}

.signin {
  border-right: 1px solid #dcdcdc;
  padding-right: 24px;
}

.signup {
  margin: 0 auto;
  max-width: 220px;
}

.signup .form-description {
  margin-top: 8px;
}

.signup__image {
  margin-bottom: 16px;
  text-align: center;
}

.input-error {
  margin-top: 8px;
  display: block;
  color: #ea1d2c;
}

/* OTP TEMPLATE */

.login {
  max-width: 552px;
  margin: auto;
  padding: 2em;
  color: #3e3e3e;
}

.login__form {
  display: flex;
  justify-content: center;
}

.login__header {
  text-align: center;
}

.login__description {
  font-size: 12px;
  margin-top: 0;
  margin-bottom: 24px;
  color: #3e3e3e;
}

.login__title {
  font-size: 20px;
  line-height: 24px;
  color: #3e3e3e;
}

.login__subtitle {
  font-size: 14px;
  line-height: 22px;
  font-weight: normal;
  color: #717171;
  margin-bottom: 24px;
}

.login__footer {
  margin-top: 1.5em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3em;
  font-size: 14px;
  color: #717171;
}

.login__footer>div:nth-child(3) a {
  text-decoration: none;
  font-weight: 500;
}

.login__link {
  font-weight: 600;
  line-height: 1em;
  color: #ea1d2c;
  text-decoration: none;
}

.login__button {
  min-width: 343px;
  padding: 12px 40px;
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
  border-radius: 6px;
  border: 0;
  color: #ffffff;
  background: #ea1d2c;
  cursor: pointer;
}

/* ------------------- */

@keyframes animateActive {
  0% {
    color: #717171;
    transform: scale(1);
  }

  60% {
    transform: scale(1.3);
  }

  100% {
    color: #27824c;
    transform: scale(1);
  }
}

@keyframes animateInactive {
  0% {
    color: #27824c;
  }

  100% {
    color: #717171;
  }
}

/* LOGIN UPDATE PASSWORD */

.login-reset {
  max-width: 541px;
  margin: auto;
  display: flex;
}

.login-reset-title {
  margin: 0 0 .5em;
}

.login-reset__inner>span:nth-child(2) {
  font-size: 1em;
  font-weight: 400;
  line-height: 1.5em;
  color: #717171;
}

.login-reset__inner>form {
  margin-top: 3em;
}

.login-reset__password {
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin: 3em 0;
}

.login-reset__button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.login-reset__button>button {
  font-size: 14px;
  font-weight: 500;
  min-width: 295px;
}

.form-error {
  font-size: 12px;
  color: #ea1d2c;
  padding-top: 8px;
}

.form-error:empty {
  padding-top: 0px;
}

.password-criteria {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.password-criteria__item {
  flex: 1;
  font-size: 12px;
  color: #717171;
  animation: animateInactive 0.3s forwards;
}

.password-criteria__item--active {
  color: #27824c;
  border-bottom-color: #27824c;
  animation: animateActive 0.3s forwards;
}

.password-criteria__item--error {
  color: #ea1d2c !important;
}

/* COMMON */

.page-login {
  max-width: 55%;
  margin: auto;
  display: flex;
}

.page-login__image {
  display: none;
  margin: 0 0 32px;
}

.page-login--medium {
  max-width: 534px;
}

.page-login * {
  box-sizing: border-box;
}

.page-login__section {
  flex: 1;
}

.page-login__section+.page-login__section {
  position: relative;
}

.page-login__section+.page-login__section:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0px;
  bottom: 8px;
  border-left: 1px solid #DCDCDC;
}

.page-login__title,
.card-title,
.login__title,
.login-reset-title {
  font-size: clamp(1em, 2em, 2.5em);
  font-weight: 500;
  line-height: 1em;
}

.page-login__title,
.login__title,
.login-reset-title {
  margin: 0 0 16px;
}

.page-login__text,
.alert--username {
  margin: 0 0 8px;
  max-width: 470px;
  font-size: clamp(0.8em, 1em, 1em);
  font-weight: 300;
  line-height: 1.5em;
  color: #717171;
}

.page-login__username {
  display: flex;
  flex-direction: column;
}

.page-login__username__button {
  background: #ea1d2c;
}

.card-description {
  max-width: 515px;
  margin: 0 0 2em;
  color: #717171;
  font-size: clamp(0.8em, 1em, 1em);
  font-weight: 300;
  line-height: 1.5em;
}

.page-login__text+div {
  margin: 52px 0 24px;
}

.page-login__text+div>label {
  margin-top: 48px;
}

.page-login__text+div>label span,
input {
  color: #3e3e3e;
}


.page-login__change-email {
  padding: 4px 0 0;
}

.page-login__buttons {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin-top: 3em;
  justify-content: center;
  align-items: center;
}

.page-login__buttons--right {
  justify-content: flex-end;
}

.page-login__buttons>button {
  min-width: 343px;
  font-size: 14px;
  font-weight: 600;
}

.page-login__buttons>button:nth-child(2) {
  min-height: 48px;
  border: none;
  background: #ffffff;
}

.page-login__buttons>button:nth-child(2)>a {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.page-login__buttons>a {
  text-decoration: none;
}

.page-login__illustration {
  margin: -8px auto 0;
  display: block;
}

.page-login__section--signup .page-login__text {
  margin-bottom: 32px;
}

.kc-signin {
  margin: 0 auto;
  width: 100%;
  height: 100%;
}

.kc-signin__wrapper {
  margin: 0;
  display: flex;
  height: 100vh;
  width: 100%;
}

.kc-signin__wrapper--first-column {
  width: 45%;
  min-width: 35%;
  padding: 1em 0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  background: #F7F0F0;
}

.kc-signin__wrapper--first-column>.logo svg {
  height: 80px;
}

@media (max-width: 999px) {
  .kc-signin__wrapper--first-column {
    display: none;
  }

  .card {
    max-width: unset;
    padding: 1em;
  }
}


@media only screen and (max-height: 400px) {
  .logo {
    height: 40px;
    width: auto;
  }
}

.illustration>img {
  max-width: 400px;
  max-height: 400px;
}

@media only screen and (max-height: 600px) {
  .illustration>img {
    max-width: 300px;
    max-height: 250px;
  }
}

.illustration_description {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.illustration_description__title>span {
  font-size: clamp(1em, 1.5em, 2.5em);
  line-height: 2em;
}

@media only screen and (max-height: 400px) {
  .illustration_description__title>span {
    font-size: 1.2em;
  }
}

.illustration_description__subtitle {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 24px;
}

.illustration_description__subtitle span {
  color: #666666;
  font-size: clamp(0.8em, 1em, 1em);
  font-weight: 300;

  @media only screen and (max-height: 400px) {
    font-size: 0.7em;
    line-height: 1.5em;
  }
}

.page-login__sign-up {
  display: flex;
  gap: .5em;
  color: #717171;
  margin-top: 1em;
}

.page-login__sign-up>span {
  font-size: 1em;
  font-weight: 300;
}

.page-login__sign-up>span a,
.c-button--tertiary {
  text-decoration: none;
  font-size: 1em;
  font-weight: 500;
  background: transparent;
  border: none;
  color: #EA1D2C;
  cursor: pointer;
}

/* ---- MEDIA QUERIES */
@media (max-width: 999px) {
  .page-login {
    flex-flow: column;
    max-width: unset;
    padding: 24px;
    width: 100%;
  }

  .page-login__image {
    display: block;
  }

  .page-login__text {
    font-size: 14px;
  }

  .page-login__text+div {
    margin: 0 0 16px;
  }

  .page-login__section+.page-login__section:before {
    content: none;
  }

  .page-login__section--login {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .page-login__illustration {
    display: none;
  }

  .page-login--medium .page-login__section {
    padding: 0 0 16px;
  }

  .page-login__buttons {
    margin-top: 2em;
    gap: .5em;
  }

  .login-reset__inner {
    padding: 32px 16px;
  }

  .login-reset__buttons {
    flex-direction: column;
  }
}

@media only screen and (max-width: 999px) {
  .login-grid {
    border: unset;
    box-shadow: unset;
    grid-template-columns: 1fr;
    padding: 0 12px;
  }

  .signin {
    border-bottom: 1px solid #dcdcdc;
    border-right: unset;
    padding-bottom: 48px;
    padding-right: 0;
  }

  .signup {
    margin-top: 48px;
  }
}

/* MEDIA QUERIES */
@media (max-width: 999px) {
  .page-header {
    padding: 20px 16px;
  }

  .page-header .page-button {
    padding: 8px 16px;
    font-size: 14px;
  }

  .page-header__logo {
    width: 56px;
  }

  .footer {
    display: none;
    padding: 32px 16px;
  }

  .footer__content {
    flex-direction: column;
    padding: 0 28px 28px;
    gap: 40px;
  }

  .footer__list-item:last-child {
    padding-bottom: 0;
  }

  .footer__title {
    margin-bottom: 32px;
  }

  .footer__payments {
    margin: -16px 0 48px;
  }

  .footer__security {
    margin-top: -16px;
  }

  .footer__bottom {
    padding: 32px 20px 8px;
    flex-direction: column-reverse;
  }

  .footer__list-bottom {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .footer__nav-bottom {
    padding-bottom: 40px;
  }

  .footer__sign-text {
    flex: 1;
  }
}

@media (min-width:601px) {
  .input-text__placeholder--password-mobile {
    display: none;
  }

  .input-text__placeholder--password-desktop {
    display: block;
  }
}

@media (max-width: 600px) {
  .page-login__buttons {
    margin: 0;
  }

  .page-login__buttons>button {
    width: 100%;
    min-width: unset;
  }

  .page-login__sign-up {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 4px;
  }

  .page-login__title {
    font-size: 24px;
  }

  .page-login__text+div>label {
    margin-top: 24px;
  }

  /* Password Page */
  .page-login--password {
    margin: 0;
  }

  .page-login--password .page-login__title,
  .page-login--password .page-login__text,
  .page-login--password .input-text--email,
  .page-login--password .page-login__sign-up,
  .input-text__placeholder--password-desktop {
    display: none;
  }

  .input-text__placeholder--password-mobile {
    display: block;
  }

  .page-login--password .input-checkbox {
    margin: 0 0 50px;
    font-size: 12px;
  }

  .page-login--password .page-login__text+div {
    margin: 0;
  }

  .input-text__placeholder {
    font-size: 12px;
  }

  .page-login__section .input-text--open .input-text__placeholder {
    top: 0;
    left: 10px;
    padding: 0 4px;
    color: #666666;
  }
}