/*  ----------------------------------------------------------------------------
  Login window
*/

.td-header-sp-top-menu {
  .top-header-menu {
    display: inline-block;
    //margin-right: -22px;
  }

  .menu-top-container{
    display: inline-block;
  }
}


.td_ul_login {
  //margin: 0 24px 0 0;
  display: inline-block;
  //min-width: 20px;
}

@color_gray: #bababa;


.white-popup-block {
  background: none repeat scroll 0 0 white;
  margin: 0px auto;
  max-width: 350px;
  //padding: 1px;
  position: relative;
  text-align: left;
  vertical-align: top;
}


.td_sp_login_ico_style {
  position: absolute;
  top: 3px;
  right: -9px;
  /*left: 39px;*/
}

.td_sp_logout_ico_style {
  position: relative;
  top: 3px;
  left: 17px;
}

/* wrapper */
.td-login-wrap {
  padding: 14px 21px 17px 21px;


  .td-login-input {
    background-color: #FCFCFC !important;
    height: 40px;
    padding: 3px 14px 3px 14px;
    border: 1px solid #ededed !important;
    box-shadow: none !important;
    outline: medium none;
    color: #555555;
    width: 308px;
    margin-bottom: 21px;
    font-size: 12px;

    &:invalid {
      font-style: italic;
    }

    &:invalid:focus {
      color:#555555;
    }
  }


  .td-login-button {
    float: right;
    margin: 0px;
  }

  .td-login-info-text {
    display: inline-block;
    margin-top: 23px;
    font-size: 12px;
    font-style: italic;
    position: relative;
    top: -14px;
    a {
      color:#3d3d3d;
    }
  }


  .btn {
    padding-top: 5px;
    padding-bottom: 6px;
    background-color: @td_theme_color;
    color: #ffffff;
    border: 0;
    text-shadow: none;
    margin-top: 4px;
    border-radius: 3px;
  }
}

#login-form {
  .mfp-close {
    top: -2px;
  }
}


/* login tabs */
.td-login-tabs {
  margin: 0px;
  list-style-type: none;
  background-position: bottom;
  background-color: @color_gray;
  li {

    position: relative;
    //left: -40px;
    text-align: center;
    display: inline-block;
    line-height: 20px;
    a {
      display: block;
      font-size:20px;
      font-family: @font3;
      color:white;
      cursor: pointer;
      padding: 10px 21px 10px 21px;
      position: relative;

      &:hover {
        text-decoration: none !important;
      }
    }
  }
}


#register-link.td_login_tab_focus:before {
  position:absolute;
  left: -91px;
  top: -3px;
  //width: 91px;
  height: 43px;
  display:block;
  content:'';
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  background: transparent url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFsAAAArCAMAAAAgygRqAAAAkFBMVEX///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA9Qh/bAAAAMHRSTlMAAAECAwUGBwQICw4JDQwKDxgREBMXEhUWFBokHR8cGyIgIRkjHiUnKSYrLC8oLjLSemXYAAABR0lEQVR4XrXUR3aDQBBFUQQNIgkBTRA5Kzntf3cuKI4kjgce2P/N6476t/L/7ThVBdoaxGZaAG0dZwsDZ5sWzNZ0F2jbKFvVDA9mi/0BZ1sOzDYtH2e7EmVr+jGE2Yad4Gwvgtj8BDOgnaJs03JOMNv1Y5wtA4jNz3uA2XaSQ2yeTgOyBU2nhtg8nRJnpxPKpulUINu0/LiD2DzLHmbLoAXYPEs5jDA7zAuIzZM/Q2yePMymyd8wtiC7vCg7QPyd/MFWX9K2CZ2mU11/tX/eC85c0jmD23PW0Yny9r61t8zTeNzzKeVSR8qe86jDnLPkyzANpuJNeVCrsyovBgt8Pl/6vpQypJIkiaIoy7I0TU9UTAVzeV12xfVdEeZKLdDKPJGFIIDvl9thyPOmaeq6LMtpqqqq6/q+b9t2HMeCOp9vl4/r/fPrG0FLHMIvAtI9AAAAAElFTkSuQmCC') no-repeat;
  pointer-events:none;
}


.td_login_tab_focus{
  background-color: white;
  color: @td_theme_color !important;



  &:after {
    position:absolute;
    right: -91px;
    top:-3px;
    width: 91px;
    height: 43px;
    display:block;
    content:'';
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    background: transparent url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFsAAAArCAMAAAAgygRqAAAAkFBMVEX///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA9Qh/bAAAAMHRSTlMAAAECAwUGBwQICwkODQwKDxgREBMXEhUWFBokHR8cGyIgIRkjHiUnKSYrLC8yLihWK/CyAAABTklEQVR4XrXVaW6DMBSFUYoNYUoC2IEwz5k67X93fbZRmqqVKlW93wLO/cMzlm0/maz/jwFtTjjKdoC2y3G27+Hs0GEwOwDaO5fZKHu74TA78nF27HswW4Q4O907DGVngQuz5Q5nF+ojBNk50D5GvoeyD3EIsxOBsyf1gYPsMgtgdkfHg7JbOh4Osmt9PBh7yXF2Q8eDsodD7Hsge6TDRNl9ImD2PAk6TIxdlSnMPtHRw2x19CD7SkePss812RxlmwcFkHVp6Hgczr5mP/R3+9aXMtr7G5Nrckyejpu+7/5qP1dLkqcijnRb1Y4KVHsqpHzqPn1f/TL505z1cqmGui0T1YE6UnmeF0UhpcyyLKWEEHGs1s2wWX3YXBfXvfuY9fp2u7yfr6dTRc3z3Pf9OI7D0DTNstR13bZd15XlNOntdVdKPfo5uQ7quXXM4x+ZsxzCpsfJUgAAAABJRU5ErkJggg==') no-repeat;
    pointer-events:none;
  }
}

/* the panel title */
.td-login-panel-title {
  border-bottom-style: solid;
  border-width: 2px;
  border-color: @td_theme_color;
  color:#3d3d3d;
  margin-bottom: 21px;
  padding-bottom: 3px;
  font-size: 12px;
}

/* error message */


.td_display_err {
  background-color: @td_theme_color;
  font-style: italic;
  color:white;
  padding: 9px 10px;
  display: none;
  margin-bottom: 13px;
  margin-top: 7px;
}
.td_display_msg_ok{
  display: block;
  font-size: 13px;
  background-color: @td_theme_color;

}


#td-forgot-pass-div {
  margin-bottom: 42px;
}

.td_user_logd_in {
  position: relative;
  font-weight: bold;
  left: -10px;
  display: none;

  &:hover {
    text-decoration: none !important;
  }
}

.td_ul_logout {
  margin-right: 20px;
  margin-left: 40px;

  .menu-item {
    position: relative;
    left: 0;
    //padding-left: 6px;

    a {
      display:inline !important;
      line-height: 29px !important;
      margin-right: 21px;
    }

    .td_user_logd_in {
      margin-right: 11px;
    }

    i {
      font-size: 10px;
      position: relative;
      top: 0;
    }

    img {
      position: absolute;
      top: 5px;
      left: -40px;
      display: inline-block;
      margin-right: 19px;
    }
  }
}



/**
tagdiv animations
-
- mfp-with-anim - has to be on the wrapper
*/



.mpf-td-login-effect {


  .mfp-content {


  }

  /* start state */
  .mfp-with-anim {
    opacity: 0;
    //transition: all 0.3s ease-in-out;

    -webkit-transition: all 400ms cubic-bezier(.55,0,.1,1);
    -moz-transition: all 400ms cubic-bezier(.55,0,.1,1);
    -o-transition: all 400ms cubic-bezier(.55,0,.1,1);
    transition: all 400ms cubic-bezier(.55,0,.1,1); /* custom */


    //.transform (~"perspective( 600px ) rotateX( 60deg ) scale(0.8)");
    .transform (~"perspective( 600px ) scale(0.4)");


  }

  &.mfp-bg {
    opacity: 0;
    transition: all 0.3s ease-out;




  }

  /* animate in */
  &.mfp-ready {
    .mfp-with-anim {
      opacity: 1;
      //.rotate3dX(0deg);
      //.transform (~"perspective( 600px ) rotateX( 0deg ) scale(1)");
      .transform (~"perspective( 600px ) scale(1)");


    }
    &.mfp-bg {
      opacity: 0.8;
    }
  }

  /* animate out */
  &.mfp-removing {

    .mfp-with-anim {
      //.transform (~"perspective( 600px ) rotateX( 60deg ) scale(0.8)");
      .transform (~"perspective( 600px ) scale(0.4)");
      opacity: 0;
    }
    &.mfp-bg {
      opacity: 0;
    }

  }

}