header video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    -ms-transform: translateX(-50%) translateY(-50%);
    -moz-transform: translateX(-50%) translateY(-50%);
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
}
header .container {
    position: relative;
    z-index: 2;
}
header .overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: black;
    opacity: 0.4;
    /*z-index: 1;*/
}
@media (pointer: coarse) and (hover: none) {
    header {
        background: url('https://source.unsplash.com/XT5OInaElMw/1600x900') black no-repeat center center scroll;
    }
    header video {
        display: none;
    }
}



.card {
    z-index: 3;
    background-color: rgba(255, 255, 255, 0.8); /* Opacità per rendere trasparente il background */
    border-radius: 15px;
}

.titleHeader{
    position:absolute;
    z-index: 2;
    left: 10px;
    top: 10px;
}

.titleHeader .title{
    color: white;
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1.2;
    font-style: italic;

}

.commonErrorMessageStyle{
    font-size: 0.8em;
}

.otpDescription{
    font-size: 0.8em;
    color: dimgrey;
    margin-bottom: 10px;
}

.no-border {
    border: none;
}

/* Aggiungi questo se vuoi rimuovere i padding dall'header e dal footer */
.modal-header, .modal-footer {
    border-bottom: none; /* Rimuovi bordo inferiore dell'header */
    border-top: none;    /* Rimuovi bordo superiore del footer */
    padding: 0.75rem 1rem; /* Mantieni lo spazio interno (puoi regolarlo se necessario) */
}

.otpBtnsContainer{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 20px;
}


#forgotPassword{
    margin-top: 15px;
    font-size: 0.8em;
    color: #4d90fe;
    cursor: pointer;
}

.loader {
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
    position: absolute; /* Position relative to modal */
    top: 50%; /* Center it vertically */
    left: 50%; /* Center it horizontally */
    transform: translate(-50%, -50%); /* Adjust to center */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loginContainer{
    position: absolute;
    right: 20px;
    top: 80px;
}


@import url(https://fonts.googleapis.com/css?family=Josefin+Sans:300,400);
* {
    margin: 0;
    padding: 0;
}

/* width */
::-webkit-scrollbar {
    width: 7px;
}

/* Track */
::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px white;
    border-radius: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: grey;
    border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: grey;
}

header {
    position: relative;
    background-color: black;
    min-height: 15rem;
    width: 100%;
    overflow: hidden;
}

.dropdown-menu {
    top: 10px!important;
    left: -20px!important;
    min-width: 0;
    background-color: black;
}

.dropdown-item {
    color: white;
}

/*SEZIONE NAV BAR*/
.logo {
    z-index: 3;
    line-height: 20px;
    position: fixed;
    float: left;
    margin: 16px 46px;
    color: #fff;
    font-weight: bold;
    font-size: 20px;
    letter-spacing: 2px;
}
nav {
    z-index: 3;
    position: fixed;
    width: 100%;
    line-height: 20px;
}

.menu{
    background: rgba(0, 0, 0, 0);
    transition: 1s
}

.menu.black{
    opacity: 0.7;
    background: #000;
}

nav ul {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin-left: calc(100% - 300px);
    line-height: 20px;
    list-style: none;
    background: rgba(0, 0, 0, 0);
    color: #fff;
    padding: 0;
    text-align: right;
    transition: 1s;
}

@media(max-width: 1200px) {

    nav ul {
        margin-left: calc(100% - 300px);
    }

}

nav.black ul {
    /*opacity: 0.7;*/
    /*background: #000;*/
}
nav ul li {
    display: inline-block;
    padding: 20px 0;;
}
nav ul li a {
    cursor: pointer;
    text-decoration: none !important;
    color: #fff;
    font-size: 16px;
}

nav ul li a:hover {
    color: grey;
    text-decoration: none;
}

.menu-icon {
    z-index: 2;
    line-height: 20px;
    width: 100%;
    background: black;
    text-align: right;
    box-sizing: border-box;
    padding: 15px 24px;
    cursor: pointer;
    color: #fff !important;
    display: none;
}






/*FOOTER*/
.socialIconFooter{
    height: 40px;
    width: 40px;
}

footer{
    color: black;
    background-color: white;
}





/*LOIGN*/

#loginFormContainer {
    display: flex;
    flex-direction: column;
    border-radius: 5px;
    z-index: 20;
    transition: right 0.4s cubic-bezier(0.945, 0.020, 0.270, 0.665);
    position: absolute;
    right: -320px;
    top: 60px;
    background-color: white;
    width: 320px;
    height: 400px;
    -webkit-box-shadow: 6px 6px 10px 6px rgba(0,0,0,0.15);
    -moz-box-shadow: 6px 6px 10px 6px rgba(0,0,0,0.15);
    box-shadow: 6px 6px 10px 6px rgba(0,0,0,0.15);

}


#loginFormContainer.showingLogin{
    right: 40px;
}

#loginForm .form-group{
    margin-left:20px;
    margin-right:20px;
    margin-bottom:20px;
}

#loginForm .rememberMe{
    font-size: 0.8em;
    margin-left:20px;
    margin-bottom:20px;
}

.inputLoginContainer{
    margin-top:20px ;
}

.btnDefault{
    background-color: cornflowerblue;
    color: white;
    border-color: cornflowerblue;
}
.btnDefault:hover{
    background-color: dodgerblue;
    color: white;
    border-color: dodgerblue;
}

.loginActionsContainer{
    display: flex ;
    flex-direction: row ;
    margin: 0 20px ;
    justify-content: space-between
}

.loginActions{
    color: cornflowerblue;
    cursor: pointer;
    font-size: 0.9em;
}

.loginActions:hover{
    color: red;
}

.field-icon {
    float: right;
    margin-right: 10px;
    margin-top: -27px;
    position: relative;
    z-index: 2;
}

.field-icon-registration {
    float: right;
    margin-right: 30px;
    margin-top: -27px;
    position: relative;
    z-index: 2;
}

.signUpBtn{
    float: right;
}

.wrongCredential{
    border-color: #dc3545;
}

#loginWrongCredential{
    width: 100%;
    margin-top: .25rem;
    font-size: 80%;
    color: #dc3545;
    margin-left:20px;
    margin-right:20px;
}

@media(max-width: 786px) {

    #loginFormContainer.showingLogin{
        /*border-radius: 5px;*/
        /*z-index: 20;*/
        /*transition: all 0.2s linear;*/
        /*position: absolute;*/
        right:5%;
        top: 160px;
        /*background-color: white;*/
        width: 90%;
        /*height: 400px;*/
        /*-webkit-box-shadow: 6px 6px 10px 6px rgba(0,0,0,0.15);*/
        /*-moz-box-shadow: 6px 6px 10px 6px rgba(0,0,0,0.15);*/
        /*box-shadow: 6px 6px 10px 6px rgba(0,0,0,0.15);*/
    }

}

@media(max-width: 786px) {


    .logo {
        position: fixed;
        top: 0;
        margin-top: 20px;
    }

    .logo img {
        height: 40px !important;
    }

    nav ul {
        overflow: hidden;
        margin-left: 0;
        display: block;
        max-height: 0;
        background: #000;
    }

    nav.black ul {
        opacity: 0.7;
        background: #000;
    }

    .showing {
        max-height: 34em;
    }

    nav ul li {
        box-sizing: border-box;
        width: 100%;
        padding: 30px;
        text-align: center;
    }

    .menu-icon {
        opacity: 0.7;
        display: block;
    }

    .dropdown-menu {
        right: auto;
        bottom: -10px !important;
        left: unset;
        min-width: 0;
        opacity: 0.7;
        background: #fff;
    }

    .dropdown-item {
        color: #000;
    }

}