body{
    min-height: 100%;
}
body,table{
    font-family: verdana;
}

body {
    text-align: center;
    vertical-align: middle;
    margin:0;
    padding:0;
    display: table;
    width: 100%;
    height: 100vh;
    background: url(../images/fon.jpg) left top no-repeat;
}

.errortext{
    color: #c50000;
    font-size: 1.2em;
    max-width: 370px;
    padding: 5px 10px;
    background-color: #ffe9e9;
}

.auth{
    display: inline-block;
    text-align: left;
    padding: 20px;    
    background: -moz-linear-gradient(-45deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.6) 100%); 
    background: -webkit-linear-gradient(-45deg, rgba(255,255,255,0.8) 0%,rgba(255,255,255,0.6) 100%); 
    background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%,rgba(255,255,255,0.6) 100%); 
}

.center-cont{
    display: table-cell;
    vertical-align: middle;
}


.auth h1{
    font-size: 1.5em;
}

.auth input{
    font-size: 1.5em;
}

@media (max-width: 800px){
    .formauth_d{
        display: none;
    }

    input::placeholder {
        color: #9eacc9;
        text-align: center;
        font-family: Roboto;
        font-size: 0.9em;
        font-style: normal;
        font-weight: 300;
    }

    body {
        background: rgb(252,255,244);
        background: -moz-linear-gradient(-45deg, rgba(245, 246, 255,1) 0%, rgba(216, 219, 230,1) 40%, rgba(174, 175, 191,1) 100%);  
        background: -webkit-linear-gradient(-45deg, rgba(245, 246, 255,1) 0%,rgba(216, 219, 230,1) 40%,rgba(174, 175, 191,1) 100%); 
        background: linear-gradient(135deg, rgba(245, 246, 255,1) 0%,rgba(216, 219, 230,1) 40%,rgba(174, 175, 191,1) 100%); 
        
    }
    .auth{
        display: inline-block;
        text-align: left;
        padding: 20px;
        padding-bottom: 80px;
        background: -moz-linear-gradient(-45deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.6) 100%); 
        background: -webkit-linear-gradient(-45deg, rgba(255,255,255,0.8) 0%,rgba(255,255,255,0.6) 100%);
        background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%,rgba(255,255,255,0.6) 100%);
    }
    
    .formauth_m input {
        width: 100%;
        height: 3em;
        flex-basis: auto;
        flex-grow: 1;
        font-family: verdana;
        font-size: 1.2em;
        max-width: 100%;        
        padding-left: 0.6em;
        padding-top: 1.2em;
        margin-top: 1em;
        border-radius: 6px;
        border-color: #697080;
    }
    .formauth_m input[type="text"], .formauth_m input[type="password"]{
        width: 100%;
        height: 3em;
        box-sizing: border-box;
        padding-left: 0.7em;
        margin-top: 1em;
        border-style: solid;
        border-color: #697080;
        border-collapse: separate;
        background-color: #fff; 
    }
    .formauth_m input[type="submit"]{
    
        background-color: #183E78;
        color: white;
        font-size: 20px;
        text-align: center;
        padding-bottom: 30px;
        margin-top: 70px;
        align-self: center;
        line-height: 8px;
    
    }
    .formauth_m label {                                   
        top: 0.8em; 
        color: #697080;                                  
        position: relative;    
        left: 0.1em;
        padding-left: 0.6em;
        padding-right: 0.3em;
        z-index: 1;
        font-size: 16px;
        color: #183E78;
        background-color: rgba(230, 229, 229, 0); 
        pointer-events: none;     
    }
    h1{
        display: flex;
        margin-bottom: 50px;
        font-family: roboto;
        font-size: 50px; 
        text-align: center;
        align-items: center;
        align-self: center;
        margin-top: 50px;    
    }
    
    h2{
        color: #183E78;
    }
    body{
        display: flex;
        flex-direction: column;    
    }

}

@media (min-width: 800px){
    .formauth_m{
        display: none;
    }
}


@media (min-width: 600px) and (max-width: 1025px) and (orientation: portrait){
    .formauth_d{
        display: none;
    }

    input::placeholder {
        color: #9eacc9;
        text-align: center;
        font-family: Roboto;
        font-size: 0.9em;
        font-style: normal;
        font-weight: 300;
    }

    body {
        background: rgb(252,255,244);
        background: -moz-linear-gradient(-45deg, rgba(245, 246, 255,1) 0%, rgba(216, 219, 230,1) 40%, rgba(174, 175, 191,1) 100%);  
        background: -webkit-linear-gradient(-45deg, rgba(245, 246, 255,1) 0%,rgba(216, 219, 230,1) 40%,rgba(174, 175, 191,1) 100%); 
        background: linear-gradient(135deg, rgba(245, 246, 255,1) 0%,rgba(216, 219, 230,1) 40%,rgba(174, 175, 191,1) 100%); 
        
    }
    .auth{
        display: inline-block;
        text-align: left;
        padding: 20px;
        padding-bottom: 80px;
        background: -moz-linear-gradient(-45deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.6) 100%); 
        background: -webkit-linear-gradient(-45deg, rgba(255,255,255,0.8) 0%,rgba(255,255,255,0.6) 100%);
        background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%,rgba(255,255,255,0.6) 100%);
    }
    
    .formauth_m input {
        width: 100%;
        height: 3em;
        flex-basis: auto;
        flex-grow: 1;
        font-family: verdana;
        font-size: 1.2em;
        max-width: 100%;        
        padding-left: 0.6em;
        padding-top: 1.2em;
        margin-top: 1em;
        border-radius: 6px;
        border-color: #697080;
    }
    .formauth_m input[type="text"], .formauth_m input[type="password"]{
        width: 100%;
        height: 3em;
        box-sizing: border-box;
        padding-left: 0.7em;
        margin-top: 1em;
        border-style: solid;
        border-color: #697080;
        border-collapse: separate;
        background-color: #fff; 
    }
    .formauth_m input[type="submit"]{
    
        background-color: #183E78;
        color: white;
        font-size: 20px;
        text-align: center;
        padding-bottom: 30px;
        margin-top: 70px;
        align-self: center;
        line-height: 8px;
    
    }
    .formauth_m label {                                   
        top: 0.8em; 
        color: #697080;                                  
        position: relative;    
        left: 0.1em;
        padding-left: 0.6em;
        padding-right: 0.3em;
        z-index: 1;
        font-size: 16px;
        color: #183E78;
        background-color: rgba(230, 229, 229, 0); 
        pointer-events: none;     
    }
    h1{
        display: flex;
        margin-bottom: 50px;
        font-family: roboto;
        font-size: 50px; 
        text-align: center;
        align-items: center;
        align-self: center;
        margin-top: 50px;    
    }
    
    h2{
        color: #183E78;
    }
    body{
        display: flex;
        flex-direction: column;    
    }
    .formauth_m{
        display: flex;
    }

}

