html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}


/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}


body {
    line-height: 1;
}


ol,
ul {
    list-style: none;
}


blockquote,
q {
    quotes: none;
}


    blockquote:before,
    blockquote:after,
    q:before,
    q:after {
        content: '';
        content: none;
    }


table {
    border-collapse: collapse;
    border-spacing: 0;
}

body {
    margin: auto;
    text-align: center;
    font-family: Calibri, 'Gill Sans', 'Gill Sans MT', 'Trebuchet MS', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #33475b;
    line-height: 24px;
    /*background-image: url(Sfondo.jpg);*/
}

#container {
    position: relative;
    margin-top: 60px;
    margin-left: 10px;
    margin-right: 10px;
}

#box {
    margin: 0 auto;
    width: 80%;
    max-width: 240px;
    background-color: #f8f9fa;
    border-radius: 30px;
    -webkit-border-radius: 30px;
    padding: 2% 3% 1% 3%;
}

    #box img {
        max-width: 300px;
        width: 100%;
        border: 0px;
    }

.box-container {
    display: block;
    justify-content: flex-start;
    flex-wrap: wrap
}

.box-ricordami {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    height: 30px;
    padding: 0px 0px 5px;
}

label {
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    flex-direction: column;
}

.txt1 {
    padding: 3px 0px 1px 0;
    font-weight: bolder;
    font-size: 1.2em;
    vertical-align: middle;
    color: #33475b;
}

.txt2 {
    font-weight: bolder;
    font-size: 0.9em;
    vertical-align: middle;
    color: #e95f0e;
}

.errore {
    padding: 4px 0px 2px 0;
    font-weight: bolder;
    font-size: 1em;
    vertical-align: middle;
    color: #e32727;
    clear: both;
}

.ricordami {
    color: #e95f0e;
    font-weight: bolder;
    max-width: 100%;
    font-size: 0.9em;
    padding-left: 6px;
}

.versione {
    margin-top: 20px;
    font-weight: bold;
}

button {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    -webkit-border-radius: 4px;
    background: #819ea6;
    border: 0px;
    font-size: 1.3em;
    color: #fff;
    font-weight: bolder;
}

    button:hover {
        background: #96abb1;
    }

input {
    padding: 10px;
    border-radius: 4px;
    -webkit-border-radius: 4px;
    border: 1px solid #dadce0;
    font-size: 14px;
    background-color: #fff;
    color: #33475b;
    display: block;
    height: 36px;
    text-align: left;
    width: 100%;
    margin-bottom: 5px;
    box-sizing: border-box;
}

    input:hover {
        border: 1px solid #a2a4a5;
    }

.password {
    font-size: 1.3em;
}

.checkbox {
    width: 18px;
    height: 18px;
}

.bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 0.70em;
}

@media screen and (max-width: 576px) {
    #box {
        padding: 10% 10% 1% 10%;
        box-sizing: border-box;
        max-width: none;
    }

        #box img {
            max-width: none;
        }
}
@media screen and (min-width: 1400px) {
    #box {
        margin: 0 auto;
        width: 80%;
        max-width: 320px;
        border-radius: 30px;
        -webkit-border-radius: 30px;
        padding: 2% 3% 1% 3%;
    }

    .bottom { 
        font-size: 0.9em;
    }
    .txt1 {
     
        font-size: 1.4em;
    } 
    .txt2 {
        font-size: 1.1em;
    }
    .ricordami {
        font-size: 1.1em; 
    }
    .errore {
        font-size: 1.2em;
    }
    

    input {
 
        height: 40px;

    }
    #container {
        margin-top: 80px;

    }
    
}
@media screen and (max-height: 550px) {
    #container {
        margin-top: 20px;
    }
    #box {
        margin: 0 auto;
        width: 70%;
        max-width: 80%;
        border-radius: 30px;
        -webkit-border-radius: 30px;
        padding: 3% 3% 1% 3%;
    }
    #box img {
        max-width: 220px;
        width: 100%;
        border: 0px;
    }

    .txt2 {
        font-weight: bolder;
        font-size: 0.9em;
        vertical-align: middle;
        color: #e95f0e;
        padding-left: 10px;
        padding: 3px 0px 1px 0;
        float: right;
    }
    .txt1 {
        font-size: 1.2em;
        float: left;
    }
    input {
        height: 34px;
    }
    button {
        padding: 8px;
        border-radius: 4px;
        font-size: 1.2em;
    }
    .box-container div { width: 48%;}
    .div_username { float:left;}
    .div_password { float: right;}
    .bottom {
        text-align: center;
        margin-top: 3px;
        font-size: 1em;
    }
    .versione {
        margin-top: 5px;
    }
    label {display: block;}


    .box-ricordami {
        display: inline-flex;
    
    }
}

@media screen and (max-width: 576px) and (max-height: 550px) {
   html {background-color: #f8f9fa;}  
   
   #box {
    width: 100%;
    max-width: 100%;
    padding: 3% 3% 1% 3%;
}
.box-container div { width: 100%;}
}