@import url("https://fonts.googleapis.com/css?family=Open+Sans");

.ns_form_block_main * {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

.ns_form_block_main *:before,
.ns_form_block_main *:after {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

.ns_form_block_main,
.ns_form_block_main input {
	font-family: "Open Sans", sans-serif;
}

.ns_form_block_main {
	overflow-y: auto;
	visibility: hidden;
}

.ns_overlay {
	background: #16141ec7;
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	overflow-y: auto;

	z-index: 999;
}

.ns_form_top_border {
	margin: 18px 0 0 0;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	height: 2px;
}

.ns_form_top_border div {
	float: left;
	width: 20%;
	height: 2px;
}

.ns_form_top_border div:nth-of-type(odd) {
	background: #807dfd;
}

.ns_form_top_border div:nth-of-type(even) {
	background: #5a3df5;
}

.ns_form_block {
	width: 555px;
	margin: 100px auto;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
	border-radius: 6px;
	-webkit-transition: all .4s cubic-bezier(.2, .9, .4, 1.5);
	transition: all .4s cubic-bezier(.2, .9, .4, 1.5);
	-webkit-transform: rotate(10deg) translate(-10px, 10px);
	transform: rotate(10deg) translate(-10px, 10px);
	opacity: 0;
}

@media (max-width: 555px) {
    .ns_form_block {
        width: 100%;
    }
}

.ns_form_block_body {
	background: #16141e;
	border-radius: 6px;
	position: relative;
}

.ns_form_block_title {
	font-weight: 700;
	font-size: 24px;
	color: #b6bac0;
	padding: 9px 19px 0 19px;
}

.ns_form_block_description {
	font-size: 14px;
	color: #aaa;
	padding: 0 20px;
	line-height: 16px;
}

.ns_form_input_name {
	font-size: 14px;
	color: #a8a8a8;
	padding: 14px 0 5px 0;
}

.ns_form_block_body_form {
	padding: 0 20px 17px 20px;
}

.ns_form_block_body_form input[type="text"],
.ns_form_block_body_form input[type="password"] {
	width: 100%;
	border-radius: 6px;
	height: 38px;
	border: 1px solid #807dfd;
	padding: 0 10px;
	transition: all .2s;
	font-size: 14px;
	/*background: #fff;*/
	display: block;
	line-height: normal;
	color: #d3d3d3;
	box-shadow: inset 0px 1px 2px 0px rgba(0, 0, 0, .05);
}

.ns_form_block_body_form input[type="text"]:focus,
.ns_form_block_body_form input[type="password"]:focus {
	border: 1px solid #5a3df5;
}

.ns_politic {
	font-size: 12px;
	color: #666;
	line-height: 16px;
	padding: 10px 0 0 0
}

.ns_politic a {
    border-bottom: 1px solid #5a3df5;
    text-decoration: none;
    color: #807dfd;
}

.ns_politic a:hover {
	border-bottom: 0;
	text-decoration: none;
}

#ns_form_sing_up {
    display: block;
    text-align: center;
    background: linear-gradient(45deg, #807dfd, #5a3df5);
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    height: 50px;
    line-height: 50px;
    border-radius: 0 0 6px 6px;
    transition: all .2s;
    text-shadow: 0 -1px 0 #ff00c4;
    font-weight: 700;
}


#ns_form_sing_up:hover {
	background: linear-gradient(45deg, #5a3df5, #807dfd);
}

input[name="ns_form_checkbox"] {
	display: none;
}

label[for="ns_form_checkbox"] span {
	border-radius: 99px;
	border: 1px solid #ccc;
	width: 16px;
	height: 16px;
	display: inline-block;
	vertical-align: top;
	margin: 2px 10px 0 0;
	box-shadow: 0 4px 8px rgba(0, 0, 0, .05);
}

label[for="ns_form_checkbox"] {
	margin: 0;
	font-size: 14px;
	color: #8c8c8c;
	padding: 18px 0 5px 0;
	display: block;
	line-height: normal;
	cursor: pointer;
}

input[name="ns_form_checkbox"]:checked+label span:before {
	background: #807dfd;
	width: 8px;
	height: 8px;
	display: block;
	content: "";
	margin: 3px 0 0 3px;
	border-radius: 99px;
}

.ns_form_block_main.ns_show_form {
	visibility: visible !important;
}

.ns_form_block_main.ns_show_form .ns_form_block {
	opacity: 1;
	-webkit-transform: rotate(0deg) translate(0, 0);
	transform: rotate(0deg) translate(0, 0);
}

.ns_form_close {
	position: fixed;
	top: 21px;
	right: 20px;
	cursor: pointer;
	z-index: 150;
	background: url("../img/close.png") no-repeat center center;
	background-size: cover !important;
	width: 16px;
	height: 16px;
	transition: all .2s;
}

.ns_form_close:hover {
	-webkit-transform: rotate(90deg);
	transform: rotate(90deg);
}

.ns_red_alert {
	border: 1px solid #f21248;
	display: block;
	border-radius: 6px;
	font-size: 12px;
	padding: 6px 10px;
	background: rgba(249, 38, 89, 0.05);
	margin: 16px 0 0 0;
}

.ns_green_alert {
	border: 1px solid #6c9806;
	display: block;
	border-radius: 6px;
	font-size: 12px;
	padding: 6px 10px;
	background: rgba(108, 152, 6, 0.05);
	margin: 16px 0 0 0;
}

.ns_wait {
	position: absolute;
	z-index: 999;
	background: rgba(0, 0, 0, .2);
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	border-radius: 6px;
	display: none;
}