body.popup-active {
    max-height: 100%;
    overflow: hidden;
}

.auth-popup__wrapper .h3 {
	font-style: normal;
	font-weight: normal;
	font-size: 20px;
	line-height: 26px;
	color: #455A6F;
	margin: 0 -15px 15px;
	padding: 0 15px 15px;
	border-bottom: 1px solid #999999;
} 

.auth-popup__close {
	position: absolute;
	right: 10px;
	top: 14px;
}

.auth-popup .captcha {
    transform-origin: 0 0;
}

.user-photo {
    width: 220px;
    height: 220px;
    margin: 0 10px 10px 0;
    float: left;
}
.user-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.form-photo:after {
    content: '';
    display: block;
    clear: both;
}

.password-control {
    position: absolute;
    top: 12px;
    right: 10px;
    display: inline-block !important;
    padding: 0 !important;
    width: 20px !important;
    height: 20px;
    background: url(../img/view.svg) 0 0 no-repeat;
}
.password-control.view {
    background: url(../img/no-view.svg) 0 0 no-repeat;
}

.auth-popup {
    display: flex;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 999;
    flex-direction: column;
    align-items: center;
}
.auth-popup__overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 999;
    background-color: rgba(0, 0, 0, .7);
}
.auth-popup__wrapper {
    background-color: #ffffff;
    width: 320px;
    padding: 15px;
    z-index: 1000;
    max-height: calc(100% - 50px);
    overflow-x: auto;
    margin-top: 50px;
		position: relative;
}

.auth-popup__tabs-btn {
    display: flex;
    margin: 0 0 20px;
}
.auth-popup__tabs-btn a {
    padding: 15px 5px;
    width: 50%;
    text-align: center;
    background-color: #e2e2e2;
}
.auth-popup__tabs-btn a:hover {
    color: #fff;
    background-color: #ff809b;
    text-decoration: none;
}
.auth-popup__tabs-btn a.active {
    color: #fff;
    background-color: #cd2653;
}
.auth-popup__tab {
    display: none;
}
.auth-popup__tab.active {
    display: block;
}

.auth-popup__form-row {
    position: relative;
    margin: 0 0 15px;
}

.auth-popup__form-row input[type="text"], 
.auth-popup__form-row input[type="email"], 
.auth-popup__form-row input[type="password"] {
	border: 2px solid #999999;
	box-sizing: border-box;
	border-radius: 3px;
	width: 100%;
	height: 36px;
	padding: 0 10px;
	font-size: 16px;
	line-height: 36px;
	color: #999999;	
}

.auth-popup__form-row input[type="checkbox"] {
	height: 24px;
	width: 24px;
	margin: 0 4px 0 0;
	vertical-align: middle;
	cursor: pointer;
	border: 1px solid #999;
  position: relative;
}
.auth-popup__form-row input[type="checkbox"]:checked:before {
	content: '';
	height: 80%;
	width: 80%;
	/*background-color: #999;*/
	display: block;
	position: absolute;
	margin: 10%;
}
.auth-popup__form-row_remember {
	font-size: 12px;
	line-height: 22px;
	color: #999999;
}
.auth-popup__form-row label {
	cursor: pointer;
    display: inline;
}
.auth-popup__remember {
	float: right;
	font-size: 12px;
	line-height: 24px;
	text-decoration: underline;
	color: #045286;
}
/*
.auth-popup__form-row input:invalid {
    border: 2px dashed red;
}

.auth-popup__form-row input:valid {
    border: 2px solid #999999;
}
*/
.auth-popup__form-row a {
    display: inline;
    padding: 0;
    width: auto;
}
.auth-popup__form-row:last-child {
    margin: 0;
}
.auth-popup-btn,
input[type="submit"].auth-popup__submit {
    width: 100%;
    margin-bottom: 15px;
    /*! display: block; */
    /*! height: 38px; */
    /*! background: #008431; */
    /*! border: 0; */
    /*! font-weight: bold; */
    /*! font-size: 14px; */
    /*! line-height: 38px; */
    /*! text-align: center; */
    /*! text-transform: uppercase; */
    /*! color: #fff; */
    /*! cursor: pointer; */
    /*! padding: 0; */
}
a.auth-popup-btn:focus,
input[type="submit"].auth-popup__submit:focus{
    /*! padding: 0; */
}
.auth-popup-btn__inactive {
    opacity: 0.7;
    /*! display: block; */
    /*! height: 38px; */
    /*! background: #008431; */
    /*! border: 0; */
    /*! font-weight: bold; */
    /*! font-size: 14px; */
    /*! line-height: 38px; */
    /*! text-align: center; */
    /*! text-transform: uppercase; */
    /*! color: #fff; */
    /*! cursor: pointer; */
    /*! padding: 0; */
}
input[type="submit"].auth-popup__submit[disabled="disabled"] {
    opacity: .4;
}
input[type="submit"].auth-popup__submit[disabled="disabled"]:hover {
    cursor: default;
    text-decoration: none;
}
.auth-popup__form-row_small {
    font-size: 14px;
}
.auth-popup__form-row_social-text {
	font-size: 16px;
	line-height: 22px;
	text-align: center;
	color: #999999;
	margin-bottom: 5px;
}
.auth-popup__form-row_center {
    text-align: center;
}
.auth-popup__form-row_center a {
    display: inline-block;
}
.auth-popup__form-row_social {
	margin-bottom: 10px;
}
.auth-popup__form-row_social a:hover {
    opacity: .6;
}
.auth-popup__form-row_social a {
    text-align: center;
    height: 22px;
		width: 22px;
    display: inline-block;
    padding: 6px 0;
    margin: 0 15px;
    color: #045286;
}
.auth-popup__form-row_social svg {
    height: 22px;
    margin: 0 auto;
}
.auth-popup__form-row_separator {
	position: relative;
	margin: 0 -15px 20px;
}
.auth-popup__form-row_separator span {
	background-color: #fff;
	padding: 3px 8px;
	position: relative;
	font-size: 16px;
	text-align: center;
	color: #999999;	
}
.auth-popup__form-row_separator:before {
	content: '';
	display: block;
	position: absolute;
	top: 8px;
	left: 0;
	width: 100%;
	height: 1px;
	background-color: #999999;
}
.auth-popup__message p {
    font-size: 14px;
    border: 1px solid #0b6f01;
    padding: 3px 5px;
    margin-bottom: 5px;
}
.auth-popup__error p {
    font-size: 14px;
    border: 1px solid #cd2653;
    padding: 3px 5px;
    margin-bottom: 5px;
}
@media ( max-width: 1000px ) {
    .auth-popup__wrapper {
        max-height: calc(100% - 10px);
        margin-top: 10px;
    }
}