/*** Resets ***/
*, *:before, *:after {
    box-sizing: border-box;
}
header, main, footer, article, nav, section {
    display: block;
}
p, ol, ul {
    margin: 0;
    padding: 0;
}



/*** Stile ***/
html {
    display: flex;
    font: 12pt/1.25 "Open Sans", helvetica, arial, sans-serif;
    text-align: left;
    color: #303030;
    background-color: #fcfcfc;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-flow: column nowrap;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
}

a, img {
    border: none;
    outline: none;
}
a, a:active, a:hover {
    text-decoration: none;
}

button {
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: normal;
    text-align: center;
    width: 15rem;
    padding: 0.3rem;
    cursor: pointer;
    background-color: #d0d0d0;
    background-image: none;
    color: #303030;
    border: none;
    border-radius: 0;
    outline: none;
}
    button:hover {
        background-color: #ffe580;
        color: #303030;
    }
    button:active {
        background-color: #ffd555;
        border: none;
        box-shadow: none;
    }
    button::-moz-focus-inner {
        padding: 0;
        border: 0;
    }


label.caption {
    display: block;
    font-style: italic;
    margin-bottom: 0.5rem;
}
label.password {
    display: block;
    position: relative;
    width: 20rem;
    margin: auto;
}
    .password_button_hide,
    .password_button_show {
        display: flex;
        justify-content: center;
        align-items: center;
        position: absolute;
        top: 0.3rem;
        right: 0.6rem;
        width: 1.3rem;
        cursor: pointer;
        background-color: #ffffff;
    }
        .password_button_hide img,
        .password_button_show img {
            width: 100%;
        }


input[type=text],
input[type=password] {
    padding: 0.25rem;
    font-family: inherit;
    font-size: 0.95rem;
    text-align: center;
    background-color: #ffffff;
    border: 1px solid #909090;
    color: #303030;
    display: block;
    width: 20rem;
    margin: auto;
    margin-bottom: 1.5rem;
                
}
    input[type=text]:hover,
    input[type=password]:hover {
        border: 1px solid #707070;
    }
    input[type=text]:focus,
    input[type=password]:focus {
        border: 1px solid #707070;
        box-shadow: inset 0px 0px 3px #ffd540;
    }



/*** Layout ***/
header {
    width: 100%;
    font-size: 1.7rem;
    letter-spacing: -0.15rem;
    text-align: center;
    background-color: #f0f0f0;
    padding: 1rem;
}


main {
    flex: 1 0 auto;
    text-align: center;
    padding: 2rem;
    width: 100%;
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;
}
    #logo {
        max-height: 5rem;
        margin-bottom:auto;
        /*margin-bottom: -2rem;*/
    }
    
    .section {
        width: 100%;
        margin: auto;
        margin-top: 1.5rem;
    }
        .titolo {
            font-size: 1.1rem;
            padding: 0.4rem;
            background-color: #ffd555;
        }
        .content {
            background-color: #f0f0f0;
            border-bottom: 2px solid #ffd555;
            padding: 2rem 1.5rem 0 1.5rem;
            margin-bottom: 2.5rem;
        }
        .errore {
            background-color: #f0a0a0;
            padding: 0.2rem 4rem;
            margin: -1rem -2rem 1.5rem -2rem;
            text-align: center;
        }


footer {
    text-align: center;
    background-color: #e9e9e9;
    border-top: 4px solid #660000;
    color: #404040;
    padding: 2rem;
    padding-top: 1rem;
}
    #footer_iso {
        width: 6rem;
    }
    #footer_credits {
        font-size: 0.8rem;
        font-style: italic;
        padding-top: 1rem;
    }


#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: monospace;
    font-size: 2rem;
    font-weight: bold;
}
    #overlay img {
        width: 7rem;
        animation: 2s linear infinite overlay_rotate;
    }
@keyframes overlay_rotate {
    to {
        transform: rotate(360deg);
    }
}


@media screen and (max-width: 480px) {
    html {
        font-size: 11pt;
    }
    button {
       width: 14rem;
    }
    label.password,
    input[type=text],
    input[type=password] {
        width: 14rem;
    }
    #content {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}