:root {
  --brand-color: #007D8D;
  --default-text-color: #10002B;
  --default-back-color: #FFFFFF;
  --pale-text-color: #A2B1B9;
  --bright-border-color: #9B9B9B;
  --pale-border-color: #D3D2D3;
  --pale-back-color: #F5F6F8;
  --menu-hover-color: #F5FAFE;
  --button-light-color: #10C8D2;
  --button-highlight-color: #12d5e0;
  --button-dark-color: #0C99A1;
  --red-color: #DD4545;
  --login-back-color: #F2F4F7;
  --login-separation: 45%;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  src: url('../fonts/Onest.ttf') format('truetype');
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Onest", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 16px;
  text-align: left;
  color: var(--default-text-color);
  height: 100vh;
  width: 100vw;
}

body, td {
  padding: 0;
}

a, a:hover {
  font-size: 16px;
  line-height: 20px;
  color: #00B2A9;
  cursor: pointer;
}

a {
  text-decoration: none;
}

p, div, span, label, a, li, dt, dd, input, textarea, pre, body, button, input.pnlbutton, input.file {
  font-style: normal;
  font-weight: normal;
  font-size: 16px;
}

.login_body {
  display: flex;
  flex-direction: column;
  background: var(--login-back-color);
  background-image: url(../img/ib/login-background.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top;
  flex-grow: 1000;
  color: var(--default-text-color);
  font-size: 12px;
  overflow: auto
}

.login_body_wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.login-wrapper {
  width: var(--login-separation);
  position: absolute;
  display: flex;
  justify-content: center;
  padding-top: 64px
}

.login {
  background: var(--default-back-color);
  box-shadow: 0px 4px 40px rgba(0, 81, 145, 0.1);
  top: 64px;
  width: 480px;
  display: flex;
  flex-flow: column;
  z-index: 1;
  border-radius: 8px;
}

.winlogin {
  border: none;
  padding: 0;
  display: flex;
  flex-flow: column;

  .type-warning {
    display: flex;
    gap: 15px;
    padding: 0 40px;
    margin: 15px 0;

    p {
      margin: 0;
      font-size: 14px;
      line-height: 20px;
      text-align: left;
    }

    img {
      width: 30px;
    }
  }
}

.divider {
  border-top: 1.95px solid var(--pale-border-color);
}

.bottom-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
}

.winlogin span {
  padding: 1px;
  line-height: 20px;
}

.winlogin .login_caption {
  font-style: normal;
  font-weight: bold;
  font-size: 24px;
  line-height: 32px;
  margin: 32px 40px 0;
  text-align: start;
}

.winlogin > table {
  flex-grow: 5;
}

.winlogin > table td {
  padding: 10px 0;
}

.winlogin .winlogin_auth {
  display: flex;
  padding: 20px 29px 10px;
  background: var(--default-back-color);
}

.winlogin .winlogin_auth td {
  padding: 0 0 5px 0;
}

.winlogin_auth #capsIndicator {
  position: absolute;
  font-size: 12px
}

.winlogin .tooltips {
  background: none repeat scroll 0 0 var(--menu-hover-color);
  border-radius: 5px;
  color: var(--red-color);
  height: auto;
  left: 385px;
  line-height: 30px;
  position: absolute;
  text-align: center;
  top: 0;
  width: auto;
  border-radius: 3px;
  z-index: 1000;
}

.winlogin .errmsg {
  background: none;
  color: var(--red-color);
  padding: 0;
  margin: 0;
  width: 189px;
}


.red, span.red, .winlogin span.red {
  color: var(--red-color);
}

#userName.withErrors, #password.withErrors {
  border: 1px solid var(--red-color) !important;
  outline: none;
}

.field-wrapper {
  padding-bottom: 24px;
  position: relative;
}

input.input {
  background: #F0F3F4;
  border: 1px solid #D5D9DE;
  box-sizing: border-box;
  border-radius: 5px;
  font-size: 18px;
  line-height: 28px;
  font-family: inherit;
  color: var(--default-text-color);
  height: 64px;
  padding: 0 24px;
  width: 408px;


  ::placeholder {
    color: var(--pale-text-color);
  }
}

input.input:focus,
input.input:focus-visible {
  border: 1px solid var(--brand-color);
  box-sizing: border-box;
  border-radius: 5px;
  color: var(--default-text-color);
  outline: none;
}

.actions-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 40px;

  .links {
    display: flex;
    flex-direction: column;
    gap: 7px;
    align-items: flex-end;

    a {
      line-height: 24px;
    }
  }
}


.ui_submit_button {
  border: none;
  border-radius: 4px;
  color: var(--default-back-color);
  background-color: var(--button-light-color);
  cursor: pointer;
  font-size: 16px;
  line-height: 24px;
  font-weight: normal;
  height: 56px;
  min-width: 136px;
}

.ui_submit_button:hover {
  background: var(--button-highlight-color);
  border-color: var(--button-highlight-color);
}

.ui_submit_button:active {
  background: var(--button-dark-color);
  border-color: var(--button-dark-color);
}

.ui_submit_button[disabled] {
  background-color: var(--pale-border-color);
  border-color: var(--pale-border-color);
}

.copyright {
  flex-grow: 1;
  display: table-cell;
  vertical-align: bottom;
  padding: 0 42px 32px 42px;
  margin-top: 16px;
  font-size: 12px;
}

.login_news, .login_banners {
  width: 55%;
  padding: 0 48px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
}

.login_news div {
  text-overflow: ellipsis;
  overflow: hidden;
}

.news-title {
  margin: 12px 0 12px 0;
}

.grow {
  flex-grow: 1;
}

.tooltips:after {
  border-bottom: 8px solid transparent;
  border-right: 8px solid var(--menu-hover-color);
  border-top: 8px solid transparent;
  content: "";
  height: 0;
  position: absolute;
  right: 100%;
  top: 8px;
  width: 0;
}

.errmsg {
  width: 189px;
  box-shadow: 0 10px 20px 0 #00000026;
}

.currCode {
  font-size: 14px !important;
  flex: 1 0 auto;
}

.curRates {
  padding: 0;
  font-weight: bold;
  margin: 0 auto;
  font-size: 14px;
  line-height: 16px;
}

.curRates div {
  display: inline-flex;
  margin-right: 12px;
  font-size: 14px;
  line-height: 16px;
  padding-bottom: 12px;
  color: var(--pale-text-color);
}

header {
  padding: 10px 113px;
  display: flex;
  font-size: 14px;
  color: var(--pale-text-color);
  justify-content: space-between;
  align-items: center;
  height: 72px;

  a {
    color: inherit;
  }

  .logo-block {
    display: flex;
    align-items: center;

    img {
      margin-right: 42px;
    }
  }

  .menu-block {
    display: flex;
    gap: 24px;
  }
}


main.main-segment {
  position: relative;
  height: 640px;
  width: 100%;
  background-image: url(../img/banners/banner.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
}

.banner-text-block {
  position: absolute;
  left: var(--login-separation);
  top: 64px;
  color: #fff;
  max-width: 289px;

  h1 {
    margin: 0;
    font-size: 36px;
    line-height: 46px;
    font-weight: 600;
  }

  p {
    margin: 16px 0 24px 0;
    font-size: 24px;
    line-height: 31px;
    font-weight: 400;
  }

  .banner-button {
    padding: 12px 24px;
    width: 164px;
    height: 44px;
    border: 1px solid #FFFFFF;
    border-radius: 36px;
    background: transparent;
    color: inherit;
    text-transform: uppercase;
    font-size: 12px;
    line-height: 20px;
    font-weight: 500;
    cursor: pointer;

    &:hover {
      background: #FFFFFF;
      color: #000000;
    }
  }
}

#lang {
  height: 20px;
  padding: 30px 50px 30px 0px;
  display: inline-flex;
  justify-content: flex-end;
  align-content: center;
  align-items: center;
}

div.language {
  color: var(--bright-border-color);
  float: right;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 16px;
  margin: 0 5px;
  cursor: pointer
}

.language.current {
  color: var(--brand-crolor);
  text-decoration: none;
  cursor: default;
}

#keyboardInputMaster thead {
  margin: 0px !important;
  background: var(--default-text-color);
  overflow: auto;
}

#captcha {
  margin-top: 12px;
}

.captcha-wrap {
  width: 241px;
  text-align: right;
}

#captchaImg {
  width: 195px;
  height: 49px;
  border: 1px solid #D7DCE4;
  box-sizing: border-box;
  border-radius: 5px;
}

.captcha-inp-lbl {
  display: none;
}

.captcha-inp-wrap, #captchaInp {
  width: 195px;
}

#captchaInp {
  border: 1px solid var(--red-color);
  box-sizing: border-box;
  border-radius: 5px;
  height: 28px;
  margin-top: 18px;
  margin-bottom: 70px;
}

#captchaErrorFrame {
  top: 15px;
  left: 205px;
}

.captcha-inp-wrap, .captcha-wrap {
  display: inline-block;
  position: relative;
  vertical-align: top;
}

.capthca-renew {
  cursor: pointer;
  margin-left: 9px;
  float: right;
}

#g-recaptcha > div {
  margin: 14px auto 28px;
}

.keyboardInputInitiator {
  position: absolute;
  background: var(--bright-border-color);
  mask-image: url('../img/ib/keyboard.svg');
  -webkit-mask-image: url('../img/ib/keyboard.svg');
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
  mask-size: contain;
  -webkit-mask-size: contain;
  width: 24px;
  height: 24px;
  top: 20px;
  transform: translateX(calc(-48px - 24px - 16px));
}

.password_icons {
  position: absolute;
  display: flex;
  top: 20px;
  right: calc(36px + 24px);
}

.pass-icon {
  display: block;
  width: 24px;
  height: 24px;
  background: var(--bright-border-color);
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
  mask-size: contain;
  -webkit-mask-size: contain;
}

.pass-eye {
  mask-image: url('../img/new/eye.svg');
  -webkit-mask-image: url('../img/new/eye.svg');
}

.pass-eye-slash {
  mask-image: url('../img/new/eye-slash.svg');
  -webkit-mask-image: url('../img/new/eye-slash.svg');
}

.omniChatIcon {
  cursor: pointer;
  position: absolute;
  margin-top: -200px;
  left: 10px;
  width: 50px;
  height: 50px;
}

.recovery_link {
  display: inline-block;
  text-decoration: underline;
  margin-top: 19px;
}

#errorMessage {
  display: inline-flex;
  padding: 24px 12px 24px 12px;
  font-size: 14px;
  line-height: 16px;
  color: var(--red-color);
}

#captchaErrorMessage {
  display: inline-flex;
  padding: 24px 12px 24px 12px;
  font-size: 14px;
  line-height: 16px;
  color: var(--red-color);
}

.tooltips#errorFrame {
  width: 189px;
  background: var(--menu-hover-color);
}

.info-box {
  text-align: center;
  white-space: pre-line;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  z-index: -1;
}

.chat-button {
  position: absolute;
  bottom: 150px;
  right: 10px;
  width: 50px;
  height: 50px;
  padding: 0;
  background: url("../img/chat_icon_login.png") no-repeat center/cover;
  border: none;
  cursor: pointer;
}

.oauth-info > div {
  width: 380px;
  padding: 20px 30px 0 30px;
}

footer {
  padding-bottom: 40px;

  .contacts {
    display: flex;
    justify-content: space-between;
    padding: 26px;
    max-width: 1216px;
    margin: 0 auto;

    .phones {
      display: flex;
      gap: 32px;
      align-items: center;

      .phone {
        display: flex;
        flex-direction: column;
        gap: 1px;
        width: 220px;

        .phone-number {
          font-size: 16px;
          line-height: 24px;
          font-weight: bold;
        }

        .phone-label {
          font-size: 13px;
          line-height: 16px;
          font-weight: normal;
          color: var(--pale-text-color);
        }
      }
    }

    .socials {
      display: flex;
      gap: 16px;
    }
  }

  .misc-block {
    display: flex;
    justify-content: space-between;
    max-width: 1216px;
    margin: 0 auto;
    padding-top: 40px;

    .jur-info {
      h4 {
        margin: 0;
        font-size: 13px;
        line-height: 16px;
        font-weight: bold;

      }

      .cols-wrapper {
        display: flex;
        gap: 32px;
        margin-top: 24px;
      }

      .col {
        width: 436px;
        padding-right: 32px;

        p {
          font-size: 13px;
          line-height: 16px;
          font-weight: normal;
          margin: 12px 0;
          color: #6C6C6C;

          &:first-child {
            margin-top: 0;
          }

          &:last-child {
            margin-bottom: 0;
          }
        }

        a {
          color: #0058CC;
          font-size: 13px;
          line-height: inherit;
          font-weight: inherit;
        }

        a:hover {
          text-decoration: underline;
        }

      }
    }

    .app-store-links {
      background: #F5F5F5;
      border-radius: 4px;
      padding: 24px 59.5px 26px;
      display: flex;
      flex-direction: column;
      gap: 24px;

      h4 {
        margin: 0;
        font-size: 16px;
        line-height: 32px;
        font-weight: 500;
        text-align: center;
      }

      a {
        color: var(--default-text-color);
        display: flex;
        gap: 24px;
        align-items: center;
        white-space: nowrap;
      }
    }
  }
}



.first-login .main-btn #submitButton {
  border: 2px var(--brand-color) solid !important;
  color: var(--default-back-color) !important;
  background-color: var(--brand-color) !important;
  border-radius: 25px !important;
  cursor: pointer !important;
  font-size: 16px !important;
  font-weight: normal !important;
  padding: 0 12px;
  height: 40px !important;
  width: auto !important;
}


.first-login .main-btn #submitButton:hover {
  background: var(--button-light-color) !important;
  border-color: var(--button-light-color) !important;
}

.first-login .main-btn #submitButton:active {
  background: var(--button-dark-color) !important;
  border-color: 2px solid var(--button-dark-color) !important;
}

.first-login .main-btn #submitButton.disabled {
  background-color: var(--pale-border-color) !important;
  border-color: var(--pale-border-color) !important;
  border-radius: 20px !important;
}
