*,
*:after,
*:before {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    -o-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}


/* Ôîðìà */
.form-2 {
	/* Size and position */
    width: 25%;
	padding: 15px;
	position: inherit;
	/* Styles */
    background: #fffaf6;
	border-radius: 4px;
	color: #7e7975;
	box-shadow:
        0 2px 2px rgba(0,0,0,0.2),        
        0 1px 5px rgba(0,0,0,0.2),        
        0 0 0 12px rgba(255,255,255,0.4);
	margin-top: 60px;
	margin-right: auto;
	margin-bottom: 30px;
	margin-left: auto;
}
.form-3 {
    /* Size and position */
    width: 99%;
	height:210px;
    margin: auto;
    padding: 15px;
    position: relative;
    /* Styles */
    background:#FFFFCC;
    border-radius: 4px;
    color: #7e7975;
    box-shadow:
        0 2px 2px rgba(0,0,0,0.2),        
        0 1px 5px rgba(0,0,0,0.2),        
        0 0 0 12px rgba(255,255,255,0.4); 
}

.form-2 h1 {
    font-size: 15px;
    font-weight: bold;
    color: #bdb5aa;
    padding-bottom: 8px;
    border-bottom: 1px solid #EBE6E2;
    text-shadow: 0 2px 0 rgba(255,255,255,0.8);
    box-shadow: 0 1px 0 rgba(255,255,255,0.8);
}
.form-3 h1 {
    font-size: 15px;
    font-weight: bold;
    color: #000000;
    padding-bottom: 8px;
  
}

.form-2 h1 .log-in,
.form-2 h1 .sign-up {
    display: inline-block;
    text-transform: uppercase;
}
.form-3 h1 .log-in,
.form-3 h1 .sign-up {
    display: inline-block;
}
.form-2 h1 .log-in {
    color: #6c6763;
    padding-right: 2px;
}
.form-3 h1 .log-in {
    color: #6c6763;
    padding-right: 2px;
}

.form-2 h1 .sign-up {
    color: #ffb347;
    padding-left: 2px;
}
.form-3 h1 .sign-up {
    color: #ffb347;
    padding-left: 2px;
}

.form-2 .float {
    width: 100%;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,1);
}


.form-2 .float:first-of-type {
    padding-right: 5px;
}



.form-2 .float1:last-of-type {
    padding-left: 5px;
}
.form-2 .float1 {
    width: 100%;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,1);
}


.form-2 .float1:first-of-type {
    padding-right: 5px;
}



.form-2 .float:last-of-type {
    padding-left: 5px;
}


.form-2 label {
    display: block;
    padding: 0 0 5px 2px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 400;
    text-shadow: 0 1px 0 rgba(255,255,255,0.8);
    font-size: 11px;
}


.form-2 label i {
    margin-right: 5px; /* Gap between icon and text */
    display: inline-block;
    width: 10px;
}


.form-2 input[type=text],
.form-2 input[type=NameUser],
.form-2 input[type=password] {
    font-family: 'Lato', Calibri, Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    display: block;
    width: 100%;
    padding: 5px;
    margin-bottom: 5px;
    border: 3px solid #ebe6e2;
    border-radius: 5px;
    -webkit-transition: all 0.3s ease-out;
    -moz-transition: all 0.3s ease-out;
    -ms-transition: all 0.3s ease-out;
    -o-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;
}

.form-3 #n {
    font-family: 'Lato', Calibri, Arial, sans-serif;
    font-size: 28px;
	margin:auto;
    width: 100%;
    padding: 5px;
    margin-bottom: 15px;
    border: 3px solid #ebe6e2;
    border-radius: 5px;
    -webkit-transition: all 0.3s ease-out;
    -moz-transition: all 0.3s ease-out;
    -ms-transition: all 0.3s ease-out;
    -o-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;
}

.form-2 input[type=text]:hover,
.form-2 input[type=NameUser]:hover
.form-2 input[type=password]:hover {
    border-color: #CCC;
}

.form-2 label:hover ~ input {
    border-color: #CCC;
}

.form-2 input[type=text]:focus,
.form-2 input[type=NameUser]:focus 
.form-2 input[type=password]:focus{
    border-color: #BBB;
    outline: none; /* Remove Chrome's outline */
}

.form-2 input[type=submit],

.form-3 input[type=submit]
 {
	/* Size and position */
	width: 100%;
	height: 38px;
	margin:auto;
	margin-top:10px;
	
	/* Styles */
	box-shadow: inset 0 1px rgba(255,255,255,0.3);
	border-radius: 3px;
	/*cursor: pointer;
	/* Font styles */
	font-family:  Calibri, Arial, sans-serif;
	font-size: 18px;
	line-height: 38px; /* Same as height */
	text-align: center;
	background-color: #FFAF03;
}

.form-2 input[type=submit]{
   
    background: #fbd568; /* Fallback */
    background: -moz-linear-gradient(#fbd568, #ffb347);
    background: -ms-linear-gradient(#fbd568, #ffb347);
    background: -o-linear-gradient(#fbd568, #ffb347);
    background: -webkit-gradient(linear, 0 0, 0 100%, from(#fbd568), to(#ffb347));
    background: -webkit-linear-gradient(#fbd568, #ffb347);
    background: linear-gradient(#fbd568, #ffb347);
    border: 1px solid #f4ab4c;
    color: #996319;
    text-shadow: 0 1px rgba(255,255,255,0.3);
	margin-top: 20px;
}
.form-3 input[type=submit] {
    
    background: #fbd568; /* Fallback */
    background: -moz-linear-gradient(#fbd568, #ffb347);
    background: -ms-linear-gradient(#fbd568, #ffb347);
    background: -o-linear-gradient(#fbd568, #ffb347);
    background: -webkit-gradient(linear, 0 0, 0 100%, from(#fbd568), to(#ffb347));
    background: -webkit-linear-gradient(#fbd568, #ffb347);
    background: linear-gradient(#fbd568, #ffb347);
    border: 1px solid #f4ab4c;
    color: #333;
    text-shadow: 0 1px rgba(255,255,255,0.3);
}



.form-2 input[type=submit]:hover,
.form-2 .log-twitter:hover, {
	box-shadow: 0 1px rgba(243,190,6,0.30),inset 0 20px 40px rgba(255,255,255,0.15);
	-webkit-box-shadow: 0 1px rgba(243,190,6,0.30),inset 0 20px 40px rgba(255,255,255,0.15);
	background-color: #F9070B;
}
.form-3 input[type=submit]:hover,


.form-2 input[type=submit]:active,
.form-2 .log-twitter:active{
    top: 1px;
}


/* Fallback fro broswers that don't support box shadows */
.no-boxshadow .form-2 input[type=submit]:hover {
    background: #ffb347;
}

.no-boxshadow .form-2 .log-twitter:hover,.no-boxshadow {
    background: #2a8ac4;
}


.form-2 p:last-of-type {
    clear: both;    
}


.form-2 .opt {
    text-align: right;
    margin-right: 3px;
}


.form-2 label[for=showPassword] {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 400;
    text-transform: capitalize;
}


.form-2 input[type=checkbox] {
    vertical-align: middle;
    margin: -1px 5px 0 1px;
}


#enter3{
	width: 200px;
	margin-top: 0px;
	margin-right: 0%;
	margin-left: 0%;
	margin-bottom: 0px;
	height: 40px;
}
.close1{
	background:url('../images/closed.png') no-repeat;
	width:24px;
	height:24px;
	top:10px;
	right:15px;
	position:absolute;
}
.close3{
	background:url('../images/closed.png') no-repeat;
	width:24px;
	height:24px;
	top:10px;
	right:15px;
	position:absolute;
}
.close{
	background:url('../images/closed.png') no-repeat;
	width:24px;
	height:24px;
	top:10px;
	right:15px;
	position:absolute;
}

.overlay {
    background-color: rgba(0, 0, 0, 0.6);
    bottom: 0;
    cursor: default;
    left: 0;
    opacity: 0;
    position: fixed;
    right: 0;
    top: 0;
    visibility: hidden;
    z-index: 1;

    -webkit-transition: opacity .5s;
    -moz-transition: opacity .5s;
    -ms-transition: opacity .5s;
    -o-transition: opacity .5s;
    transition: opacity .5s;
}
.overlay:target {
    visibility: visible;
    opacity: 1;
}

.overlay:target+.popup {
    top: 50%;
    opacity: 1;
    visibility: visible;
}

#parent_popup {
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  position: fixed;
  z-index: 99999;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
#popup { 
  background: #fff;
    width: 30%;
    margin: 10% auto;
	padding: 10px 10px 10px 10px;
	border: 1px solid #ddd;
	position: relative;
	/*--CSS3 CSS3 Тени для Блока--*/
	-webkit-box-shadow: 0px 0px 20px #000;
	-moz-box-shadow: 0px 0px 20px #000;
	box-shadow: 0px 0px 20px #000;
	/*--CSS3 Закругленные углы--*/
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	border-radius: 10px;
}
#popup h1{
font-family:Arial, Helvetica, sans-serif;
font-size:18px;
text-align:center;
margin-top:-20px}
input:focus:-ms-input-placeholder {
    color: transparent !important;
}

@media only screen and (max-width : 1200px),
only screen and (max-device-width : 1200px){
#popup { width: 50%}
}
@media only screen and (max-width : 790px),
only screen and (max-device-width : 790px){
body{
width:100%}
#popup { width: 95%;
 }
.form-2 {
width:95%;}
.form-2 input[type=text],
.form-2 input[type=NameUser],
.form-2 input[type=password] {
    font-size: 48px;
    font-weight: 400;
}
.form-2 label {
    font-weight: 400;
    font-size: 32px;
}
.form-2 input[type=submit]{
width: 100%;
margin-top: 40px;
	height: 98px;
	
		font-size: 48px;
}
}


}
