﻿body {
  background: linear-gradient(120deg, var(--of-primary500), var(--of-secondary400));
}

body.ofBranded {
  background: none !important;
}

  body.ofBranded .ofWizard {
    background: var(--of-white500) !important;
    border-color: var(--of-grey400) !important;
  }


  .ofWizard > .ofImage img:not(.ofLoginDescarteslogo) {
    max-height: 75px;
    max-width: 350px;
    object-fit: contain;
  }

  .ofWizard .ofImage img.ofLoginDescarteslogo {
    object-fit: contain;
  }

  /* MOVE SOME RULES TO DSG.SITE*/
  @media only screen and (max-width: 599px) {
    body {
      background: none !important;
    }

    .ofWizard {
      border: none !important;
      background: var(--of-white500) !important;
    }

    .ofWizard {
      width: 100vw!important;
      height: 100vh!important;
      /*min-height: unset !important;
      max-height: unset !important;*/
      min-width: 300px!important;
      padding: 20px!important;
    }

    .ofForm_ctrl_container{
      margin-right: 0px!important;
    }

    .ofWizard > .ofImage {
      height: 40px !important;
      display: contents !important;
    }

      .ofWizard > .ofImage img {
        align-self: baseline !important;
      }

        .ofWizard > .ofImage img:not(.ofLoginDescarteslogo) {
          height: 100% !important;
          max-width: 250px !important;
          object-fit: contain !important;
          align-self: baseline !important;
          max-height: 60px !important;
        }


    .ofWizard .ofImage img.ofLoginDescarteslogo {
      height: 60px !important;
      transform: translateX(-10px) !important;
    }

    #secQuestionForm {
      padding-right: 0px!important;
      height: unset!important;
    }
  }


.ofWizard.loadingContent > *:not(.loadingGifWrap) {
  display: none;
}

.ofWizard.loadingContent .loadingGifWrap > span {
  display: block;
  background: var(--of-spinner);
}

.ofWizard .loadingGifWrap{
  display: none;
}

.ofWizard.loadingContent .loadingGifWrap {
  display: block;
  position: absolute;
  top: calc(50% - 20px);
  left: calc(50% - 20px);
}

  .ofWizard .loadingGifWrap .loadingGif {
    height: 30px;
    width: 30px;
  }




p {
  margin: 0; /*override the 12px output we see in IE*/
  font-size: 16px;
}

.content p {
  padding: 10px 0;  
}

.qrCodeWrap {
  flex-direction: column;
  display: flex;
}

  .qrCodeWrap .ofQrCode {
    padding: 10px 0;
    margin: 0px auto;
  }

#verifyBtn {
  margin: 10px 0;
}

.jqx-validator-error-label {
  display: none !important;
}

#CaptchaInputText + .jqx-validator-error-label {
  margin: 0 auto;
}

#CaptchaInputText {
  width: calc(100% - 12px);
  height: 30px;
  margin-top: 5px;
  border-radius: 2px;
  border: 0.5px solid var(--of-grey700);
}

  #CaptchaInputText:active, #CaptchaInputText:focus {
    border-color: var(--of-secondary400);
  }

  .resetOptions {
    text-align: left;
    margin-bottom: 12px;
  }

  .resetOptions > div {
    margin-top: 12px;
  }

    .resetOptions .fpContinue {
      margin-top: 20px;
    }

.errorMessage {
  color: red;
  display: inline-flex;
  align-items: center;
}

  .errorMessage .ofIcon {
    fill: var(--of-red400);
  }

  .errorMessage.check {
    color: var(--of-green300);
  }

    .errorMessage.check .ofIcon {
      fill: var(--of-green300);
    }

.captchaLinkSection {
  margin: auto 0px;
}
  .captchaLinkSection a {
    margin: auto 0px;
    display: block;
  }

.captchaSubmitDiv {
  margin-top: 40px;
  margin-right:15px;
}

.captcha.required {
  width: 8px;
  height: 8px;
  display: inline-block;
  fill: var(--of-red400);
}

.psdform > form{
  display: flex;
  flex-direction: column;
}

  .psdform > form > div {
    text-align: left;
    display: inline-block;
    margin-bottom: 12px;
  }

.psdrules {
  border: 1px solid var(--of-grey400);
  border-radius: 3px;
  margin-left: 15px;
  text-align: left;
  padding-top: 5px;
}

  .psdrules > ul {
    text-align: left;
    list-style: none;
    padding: 6px;
    margin: 6px 0
  }

  .psdrules > span {
    padding-left: 5px;
  }

  .psdrules li {
    display: flex;
    align-items: center;
  }

  .psdrules svg {
    width: 16px;
    height: 16px;
  }

  .psdrules .valid .valid {
    fill: var(--of-green300)!important;
  }

  .psdrules .invalid .invalid {
    fill: var(--of-red400)!important;
  }

  .psdrules .valid .valid, .psdrules .invalid .invalid {
    display: inline-block;
  }

  .psdrules .valid .invalid, .psdrules .invalid .valid {
    display: none;
  }

.jqx-tooltip-text {
  text-align: left;
}
@media only screen and (max-width: 599px) {
  .resetOptions {
    margin-left: 0%; /*This is for mobile devices*/
  }

  .psdrules {
    font-size: 12px !important;
  }

    .psdrules > ul {
      margin: 0 !important;
    }

      .psdrules > ul > li {
        line-height: 11px;
      }

}

.nextStep{
  margin-top: 40px;
}


.ofForm_ctrl_container {
  margin-left: 0px!important;
}

  .ofForm_ctrl_container > div:first-of-type {
    display: table-caption !important;
    transform: translateX(-1px);
  }

  .ofForm_ctrl_container .ctrlMain .comboBoxWidth{
    width: 100%;
  }

  .ofForm_ctrl_container:not(.ofControlsGroup) .ctrlMain > div:first-child {
    display: flex !important;
  }


#UsernameNextDiv, #LoginButtonDiv, .captchaSubmitDiv {
  display: flex;
}

  #UsernameNextDiv .forgotPassword, #LoginButtonDiv .forgotPassword, .captchaSubmitDiv .captchaLinkSection {
    display: flex;
  }

    #UsernameNextDiv .forgotPassword a, #LoginButtonDiv .forgotPassword a, .captchaSubmitDiv .captchaLinkSection a {
      margin: auto 0px;
    }


.passwordQuestion {
  display: flex;
  flex-direction: row;
  margin-top: 15px;
}
  .passwordQuestion .link_area {
    margin: auto 0px auto auto;
  }

.twoFactorReset{
  margin-top: 15px;
}

  .twoFactorReset .btnReset{
    margin-top: 10px;
  }

.verifyCodeDiv{
  display: flex;
  flex-direction: column;
  margin-top: 15px;
}

.resetFormButtons {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-top: 10px;
}


#secQuestionForm {
  overflow-y: auto;
  height: 300px;
  overflow-x: hidden;
  margin-bottom: 20px;
  padding: 7px;
}

  /* Scrollbar styles */
  #secQuestionForm::-webkit-scrollbar {
    width: 5px;
  }

  #secQuestionForm::-webkit-scrollbar-track {
    background: var(--of-white500);
  }

  #secQuestionForm::-webkit-scrollbar-thumb {
    background: var(--of-grey300);
  }

    #secQuestionForm::-webkit-scrollbar-thumb:hover {
      background: var(--of-grey400);
    }


.tallPage {
  display: none;
}
.extraTallPage {
  display: none;
}

.twoFactorAuthInput {
  margin-top: 15px;
}

.twoFactorButtons {
  display: flex;
  justify-content: space-between;
  margin-top: 5px
}

.twoFactorButtons .ofLink{
  margin: auto 0px;
}


input[type="text"].jqx-input-dsgarctic, input[type="password"].jqx-input-dsgarctic, input[type="text"].jqx-widget-content-dsgarctic, textarea[type="textarea"].jqx-widget-content-dsgarctic, textarea.jqx-input-dsgarctic {
  width: calc(100% - 5px) !important;
}

.justifyButtons{
  display: flex;
}

  .justifyButtons input[type=button]:not(.ofSecondaryButton), .justifyButtons div.justifyButtonsRight {
    margin-left: auto;
  }