body,
html {
  height: 100%;
  margin: 0;
  font-family: 'Lato', sans-serif;
}

* {
  box-sizing: border-box;
}

.btn {
  display: block;
  width: 100%;
  margin:0;
  padding: 12px;
  text-align: center;
  font-size: 16px;
  line-height: 1em;
  font-weight: 700;
  border: 1px solid #2C364C;
  border-radius: 28px;
  background: #2C364C;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: #FAFAF2;

  &:hover {
    background-color: #181E2A;
    border-color: #181E2A;
    color: #FAFAF2;
  }

  &:active,
  &.active,
  &:focus,
  &.btn:active:focus {
    background-color: #181E2A;
    border-color: #181E2A;
    color: #FFFFFF;
    outline: none;
  }

  &:disabled,
  &.disabled {
    background-color: #181E2A99;
    border-color: #181E2A99;
    color: #FFFFFF;
  }
}

input[type="text"],
input[type="password"] {
  width: 100%;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  color: #171D2A;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  height: 40px;
  padding: 9px 13px;
  box-shadow: 0px 1px 2px rgba(18, 18, 23, 0.05);
  margin: 0;
  outline: none;

  &:hover {
    border-color: #94A3B8;
  }

  &:active,
  &.active,
  &:focus {
    border-color: #2C364C;
  }

  &:disabled,
  &.disabled {
    background-color: #E2E8F0;
    border-color: #CBD5E1;
  }

  &.error {
    border-color: #DC2626;
  }
}

.form-group {
  margin-bottom: 16px;
}

.form-group:has(input.error) {
  .error-message {
    display: block;
  }
}

.error-message {
  display: none;
  color: #DC2626;
  font-size: 12px;
  line-height: 21px;
  font-weight: 400;
  margin-top: 6px;
}

.ErrorDiv {
  color: #DC2626;
}

.form-block .form-check,
.form-check {
  display: flex;
  align-items: center;
  gap:8px;
  margin-bottom: 16px;

  input {
    line-height: 20px;
    border: 1px solid #CBD5E1;
    background-color: #fff;
    accent-color: #181E2A;
    margin: 0;
  }

  label {
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    margin: 0;
  }
}

.loginSection {
  display: flex;
  align-items: stretch;
  height: 100%;
  width: 100%;
}

 .loginSection--left {
  flex: 1;
  background: #E3E3DB;
  display: flex;
  justify-content: center;
  position: relative;
  padding: 16px;
}

.loginSection--left-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 450px;
}

.loginSection--right {
  flex: 1;
  background: #E3E3DB;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 40px 40px 0;

  .wrap-img {
    border-radius: 24px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25);
    width: 100%;
    height: 100%;
    flex: 1;
    object-fit: cover;
  }
}

.wrap-logo {
  padding: 10px 30px;
  margin-bottom: 40px;
   img {
    width: 100%;
    max-width: 500px;
   }
 }

.login-box {
  background: #FFFFFFCC;
  padding:40px;
  border-radius: 24px;
  z-index: 1;
}

.login-box h2 {
  text-align: center;
  color: #181E2A;
  font-size: 32px;
  line-height: 35px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 8px;
}

.login-box p {
  text-align: center;
  font-size: 16px;
  line-height: 25px;
  font-weight: 400;   
  margin-bottom: 32px;
  color: #181E2A;
}

.form-block {
  label {
    display: block;
    font-size: 16px;
    line-height: 25px;
    font-weight: 400;   
    margin-bottom: 8px;
    color: #181E2A;
    text-align: left;
  }

  .password-rules {
    list-style: none;
    margin-top: 16px;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;

    .rule {
      color: #171D2A;
      font-size: 14px;
      line-height: 1em;
      padding: 4px 7px;
      display: flex;
      gap: 4px;

      img {
        width: 10.5px;
        height: 10.5px;
      }

      &.error {
        color: #F95A4B;
      }

      &.success {
        color: #316456;
      }
    }
  }

  .form-footer {
    display: flex;
    align-content: center;
    justify-content: space-between;
    margin-bottom: 8px;

    .forgot-pass {
      color: #2C364C;
      font-size: 14px;
      line-height: 19.6px;
      font-weight: 700;
    }
  }
}

.wrap-button {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.btn-login {
  background: #fff;
  border: 1px solid #2C364C;
  color: #2C364C;
  font-size: 16px;
  line-height: 1em;
  font-weight: 700;
  border-radius: 28px;
  padding: 13px;
  width: 100%;
}

.decor-block {
  position:absolute;
  left: 0;
  bottom:0;
  z-index:0;
  
  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left;
  border-radius: 24px;
}

/* Tablet and smaller */
@media (max-width: 992px) {
  .loginSection--right {
    display: none;
  }

  .login-box {
    padding: 24px;
  }

  .login-box h2 {
    font-size: 28px;
    line-height: 32px;
  }
}

.hidden {
  display: none;
}

/* Tabs for training languages */
.tabs {
  display: flex;
  margin-bottom: 16px;
  border-bottom: 1px solid #E2E8F0;
}

.tab {
  /* flex: 1; */
  padding: 14px 16px;
  text-align: center;
  cursor: pointer;
  font-size: 14px;
  line-height: 1em;
  font-weight: 700;
  border-bottom: 1px solid transparent;
  color: #64748B;
}

.tab.active {
  border-bottom-color: #000;
  color: #181E2A;
}

.back {
  text-align: left;
  font-size: 18px;
  cursor: pointer;
  margin-bottom: 10px;
}

.switch-language {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 4px;
  height: 32px;
  border-radius: 6px;
  background: #F1F5F9;
  margin-bottom: 16px;
}

.switch-language-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50%;
  border-radius: 6px;
  cursor: pointer;
  color: #181E2A99;
  font-weight: 400;
  line-height: 24px;
}

.switch-language-btn.active {
  background-color: #FFFFFF;
  border-color: #F1F5F9;
  color: #181E2A;
}

.input-error {
  border: 1px solid #d9534f !important;
}
/*.email-sent-to{*/
/*  display: flex;*/
/*  flex-direction: row;*/
/*  justify-content: left;*/
/*  padding: 0px;*/
/*  gap: 10px;*/
/*  width: 437px;*/
/*  height: 76px;*/

/*  flex: none;*/
/*  order: 2;*/
/*  align-self: stretch;*/
/*  flex-grow: 0;*/
/*}*/
