:root {
    --main-color: #03a9f4; 
    --accent-color: var(--main-color);    
}

body {
    font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;

    /*
    background: linear-gradient( 136deg, #e53232 13%, #ff9f2f 100% );
    */
    background: #ebebeb;
    height: 100vh;
    overflow: scroll!important;
}

form {
    padding: 1.5rem!important;
}

#cookieIcon {
    height: 20px;
    display:inline-block; 
    vertical-align: middle;
    margin-right: 20px;
}

#cookie {
    width: 60%;
    /* width: 25%; */
    padding-right: 28px;
    padding-left: 28px;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-right: auto;
    margin-left: auto;

    margin-top: 30px;
    height: fit-content;
    border-radius: 6px;

    max-width: 376px;
    text-align: center;
    font-size: x-small;
}

#cookietext {
}

#reset {
    color: var(--main-color);
    font-size: small;
    position: absolute;
    right: 0;

}

#remember {
    position: absolute;
    left: 0;
}

#logo {
    text-align: center;
    margin-top: -10px;
}

#copyright {
    margin-top: 10px;
    font-size: x-small;
}

#login {
    text-align: center;
    padding: 15px;
}

#submit {
    width: 100%;
    background-color: var(--main-color);
    color: white!important;
    font-size: large;
    margin-top: 20px;
}

#ditta {
    color: var(--main-color);
    font-size: x-large;
    font-weight: 400;
}

#email {
    margin-bottom: 16px;
    border-radius: 6px;
    font-size: medium;
}

#password {
    margin-bottom: 16px;
    border-radius: 6px;
}

#container {
    width: 25%;
    padding-right: 28px;
    padding-left: 28px;
    margin-right: auto;
    margin-left: auto;

    margin-top: 15vh;
    height: fit-content;
    /* background-color: white;*/
    border-radius: 6px;

    min-height: 380px;
    max-height: 625px;
    min-width: 300px;
    max-width: 376px;

}


#credsErrorMsg {
    color: red;
    font-weight: bold;
}

#successMsg {
    color: green;
    font-weight: bold;
}

div:has(> #msLogin) {
    background: white;
    border-radius: 5px;
}

#msLoginBtn {  
    height: 41px;
    cursor: pointer;
    background: #FFFFFF;
    border: 1px #DADCE0;
    border-style: solid;
    display: inline-flex;
    margin-top: 10px;
    align-items: center;
    border-radius: 5px;
}
#msLoginImg { 
    background: url("../assets/img/ms-symbollockup_mssymbol_19.png");
    height: 21px;
    width: 21px;
    margin-left: 12px;
    margin-right: 12px;
}
#msLoginTxt {
    margin-right: 12px;
    font: "Segoe UI REegular 15px";
    font-weight: 600;
    color: #5e5e5e;
}


/* Per togliere lo sfondo azzurro quando viene eseguito il completamento delle credenziali salvate dal browser; altrimenti il pulsante per mostrare la password risalterebbe*/
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    transition: background-color 5000s ease-in-out 0s;
}

/* For Desktop View */
@media screen and (min-width: 1024px) {
    #container {
        width: 25%;
    }
    #cookie {
        width: 25%;
    }


}
 
/* For Tablet View */
@media screen and (min-device-width: 768px)
and (max-device-width: 1024px) {
    #container {
        width: 70%;
    }

    #cookieIcon {
        height: 30px;
        margin-right: 0px;
    }
}


@media screen and (max-device-width: 400px)
and (orientation: portrait) {
    #container {
        width: 80%;
        padding-left: 0px;
        padding-right: 0px;
        margin-top: 6vh;
    }
 
}
/* For Mobile Portrait View */
@media screen and (max-device-width: 480px)
and (orientation: portrait) {
    #container {
        width: 80%;
        padding-left: 0px;
        padding-right: 0px;
    }

    #cookie {
        width: 80%;
        padding-left: 0px;
        padding-right: 0px;
    }

    #cookieIcon {
        height: 30px;
        margin-right: 0px;
    }

}
