#signupform-f_company, #signupform-terms
{
	display:none;
}

.popup-auth-container {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 100000;
    overflow: auto;
    /* задаем глубину сцене */
    -webkit-perspective: 600px; /* webkit */
    -moz-perspective: 600px; /* mozilla */
    -ms-perspective: 600px; /* IE 10 */
    -o-perspective: 600px; /* opera когда-то тоже должна начать понимать */
    perspective: 600px; /* св-во по стандартам */
    background: rgba(255, 255, 255, 0.8);
    display: none;
    overflow-x: hidden;
}

.popup-block, .popup-flip-block { /* поворачивать будем общий контейнер */
    top: 0;
    left: 0;
    text-align: center;
    width: 100%;
    height: 100% !important;
    position: absolute;
    z-index: 100000;
    overflow-y: auto;
		overflow-x: hidden;
    -webkit-transition: transform 0.5s;
    -moz-transition: transform 0.5s;
    -ms-transition: transform 0.5s;
    -o-transition: transform 0.5s;
    transition: transform 0.5s; /* трансформации будут происходить анимированно продолжительностью 0.5 сек */
		-webkit-perspective: 600px; /* webkit */
    -moz-perspective: 600px; /* mozilla */
    -ms-perspective: 600px; /* IE 10 */
    -o-perspective: 600px; /* opera когда-то тоже должна начать понимать */
    perspective: 600px; /* св-во по стандартам */
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    -ms-transform-style: preserve-3d;
    -o-transform-style: preserve-3d;
    transform-style: preserve-3d;   /* указываем, что дочерние элементы находятся в 3D пространстве */
}

.popup-flip-block {overflow: visible; height: auto !important; min-height: 100%;}

.popup-block:before { /* для IE8+ */
  content: "";
  display: inline-block;
  min-height: inherit;
  height: 100%;
  vertical-align: middle;
}
.popup-block .form-control {
    height: 44px;
    border-color: #c6c6c6;
    color: #666666;
    font-size: 16px;
    line-height: 16px;
    font-weight: 300;
    padding: 7px 12px 4px
}
.popup-block .btn {
    width: 100%;
    font-size: 20px;
    padding: 12px 35px;
    margin-top: 10px;
}
.popup-flip-block.flip {    /* добавляя этот класс, поворачиваем контейнер на 180 градусов */
    -webkit-transform: rotateY( 180deg );
    -moz-transform: rotateY( 180deg );
    -ms-transform: rotateY( 180deg );
    -o-transform: rotateY( 180deg );
    transform: rotateY( 180deg );
    /*height: 696px;*/
    height: 100%;
}
.popup-flip-block.flip .popup-reg {
     display: inline-block;
}

.popup-flip-block.flip .popup-login {
    display: none
}

figure {
		width: 100%;
    height: 100%;
    position: absolute;
    display: block;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    -o-backface-visibility: hidden;
    backface-visibility: hidden;    /* если элемент "отвернулся" от пользователя, контент этого элемента не виден */
}
.popup-reg {
    display: none;
  vertical-align: middle;
    -webkit-transform: rotateY( 180deg );
    -moz-transform: rotateY( 180deg );
    -ms-transform: rotateY(180deg);
    -o-transform: rotateY( 180deg );
    transform: rotateY( 180deg );   /* в начальном положении фэйс карты к нам развернут на 180 градусов */
}

.popup-login {
    z-index: 2;
	max-height: 580px;
}

.popup-login,
.popup-reg {
    width: 100%;
    max-width: 520px;
    min-height: 525px;
    background: #f9f9f9;
    position: absolute;
    top: 10em;
    left: 0;
    right: 0;
    margin: auto;
    -webkit-box-shadow: 0 1px 20px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0 1px 20px rgba(0, 0, 0, 0.2);
    -o-box-shadow: 0 1px 20px rgba(0, 0, 0, 0.2);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.2);
}

.popup-reg {
    top: 25px;
    position: relative;
    /*-webkit-transform: rotateY( 180deg ) translateY(-50%);
    -moz-transform: rotateY( 180deg ) translateY(-50%);
    -o-transform: rotateY( 180deg ) translateY(-50%);
    transform: rotateY( 180deg ) translateY(-50%);*/
}

.popup-login {
	top: 0;
	bottom: 0;
}

.popup-reg {
        padding-bottom: 70px;
	/*padding-bottom: 150px*/
}

.popup-reg .form-control {
    height: 35px;
}

.popup-reg .btn {
    padding: 9px 35px;
}

.popup-login:before,
.popup-reg:before {
    content: '';
    display: block;
    width: 77px;
    height: 70px;
    position: absolute;
    left: 50%;
    top: -20px;
    margin-left: -35px;
    background: url('../img/header-logo.jpg') left top no-repeat;
    background-size: cover;
}
.popup-close {
    background: url('../img/toggle.png') 0 -49px;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;

}
.popup-form {
    padding: 0 20px;
}
.popup-head h1 {
    font-size: 18px;
    line-height: 20px;
    text-transform: uppercase;
    color: #333333;
    text-align: center;
}
.popup-login .popup-head {
    padding: 100px 0 0;
}
.forgot-pass-b {
    text-align: center;
    margin: 20px 0;
}
.forgot-pass {
    color: #666666;
    text-decoration: underline;
}
.forgot-pass:hover {
    text-decoration: none
}
.new-user-b {
    position: absolute;
    bottom: 0px;
    left: 0;
    right: 0;
    text-align: center;
    background: #fff;
    padding: 20px 0;
}

.popup-reg .new-user-b{
    padding: 10px 0;
}

.popup-reg .popup-head h1{
    margin-top: 0;
}

.popup-block .popup-reg .btn{
    margin-top: 0;
}

.new-user-b p {
    color: #666666;
    font-size: 14px;
    line-height: 16px;
    margin: 0 0 0 4px;
}


.popup-reg {
    /*margin-top: 30px;
    margin-bottom: 80px;*/
    height: auto;
}
.popup-reg.t-employees {
    height: 800px;
    /*margin: 50px auto;*/
	height: auto;
    bottom: auto;
    /*padding-bottom: 110px;*/
}

.popup-reg .popup-head {
    padding: 60px 0 0;
}

.popup-people-icon {
    text-align: center;
    margin: 20px 0 5px;
}
.training-employees {
    margin: 10px 0 15px;
    padding-left: 30px;
    position: relative;
    display: inline-block;
    vertical-align: top;
}
.training-employees:hover p {
    border-bottom-color: transparent;
}
.training-employees p {
    cursor: pointer;
    color: #334c66;
    border-bottom: 1px dashed #8aa6c2;
    display: inline;
}
.training-checkbox, .training-term {
    width: 20px;
    height: 20px;
    background: #fff;
    border: 1px solid #41829b;
    -webkit-border-radius: 1px;
    -moz-border-radius: 1px;
    -o-border-radius: 1px;
    border-radius: 1px;
    position: relative;
    display: inline-block;
    vertical-align: top;
    position: absolute;
    left: 0;
    top: 3px;
    cursor: pointer
}
.training-checkbox.checked:before, .training-term.checked:before {
    opacity: 1
}
.training-checkbox:before, .training-term:before {
    content: "";
    width: 15px;
    height: 12px;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
    opacity: 0;
    background: url('../img/checked.png') no-repeat;
}
.training-employees-dd {
    display: none;
    /*margin-top: 10px;*/
}

.wrap-gray {
    background-color: #f9f9f9;
}

.auth-form {
    width: 330px;
    margin: 30px auto 0;
    overflow: hidden;
}

.auth-form form {
    margin-top: 25px;
}

.my-icon-lock {
    display: inline-block;
    width: 100px;
    height: 100px;
    vertical-align: bottom;
    background: url('../img/toggle.png') no-repeat -192px -155px;
}

.auth.new-user-b {
    position: relative;
}

@media (max-width: 768px) {
    .popup-login,
    .popup-reg {
        margin: 50px auto;
    }

    .popup-login {
        height: 455px;
    }
    .popup-login .popup-head {
        padding-top: 60px
    }
    .popup-block .btn {
        width: 100%;
        font-size: 20px;
        padding: 12px 35px 11px;
        margin-top: 10px;
        font-size: 14px;
    }

    .popup-flip-block.flip {
        height: 100%;
    }
}

@media (max-width: 330px) {
    .auth-form {
        width: 100%;
    }
}

@media (max-width: 564px) {
    .my-icon-lock {
        zoom: .7;
    }
}
@media (max-width: 1390px) {
    #signup-form .popup-people-icon {
        display:none;
    }
}
