﻿html * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
}

body {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    justify-content: center;
    background-color: var(--blue__color);
    background-image: var(--background__image);
    /*background-image: var(--background__element), var(--background__image);*/
    background-position: top; /* Center the image */
    background-repeat: no-repeat; /* Do not repeat the image */
    background-size: cover; /* Resize the background image to cover the entire container */
}

.wait {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%);
}

/**
 * ==============================================
 * Dot Pulse
 * ==============================================
 */
.dot-pulse {
    position: relative;
    left: -9999px;
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: var(--blue__color);
    color: var(--default__color);
    box-shadow: 9999px 0 0 -5px var(--blue__color);
    animation: dotPulse 1.5s infinite linear;
    animation-delay: .25s;
}

    .dot-pulse::before, .dot-pulse::after {
        content: '';
        display: inline-block;
        position: absolute;
        top: 0;
        width: 10px;
        height: 10px;
        border-radius: 5px;
        background-color: var(--blue__color);
        color: var(--blue__color);
    }

    .dot-pulse::before {
        box-shadow: 9984px 0 0 -5px var(--blue__color);
        animation: dotPulseBefore 1.5s infinite linear;
        animation-delay: 0s;
    }

    .dot-pulse::after {
        box-shadow: 10014px 0 0 -5px var(--blue__color);
        animation: dotPulseAfter 1.5s infinite linear;
        animation-delay: .5s;
    }

@keyframes dotPulseBefore {
    0% {
        box-shadow: 9984px 0 0 -5px var(--blue__color);
    }

    30% {
        box-shadow: 9984px 0 0 2px var(--blue__color);
    }

    60%, 100% {
        box-shadow: 9984px 0 0 -5px var(--blue__color);
    }
}

@keyframes dotPulse {
    0% {
        box-shadow: 9999px 0 0 -5px var(--blue__color);
    }

    30% {
        box-shadow: 9999px 0 0 2px var(--blue__color);
    }

    60%, 100% {
        box-shadow: 9999px 0 0 -5px var(--blue__color);
    }
}

@keyframes dotPulseAfter {
    0% {
        box-shadow: 10014px 0 0 -5px var(--blue__color);
    }

    30% {
        box-shadow: 10014px 0 0 2px var(--blue__color);
    }

    60%, 100% {
        box-shadow: 10014px 0 0 -5px var(--blue__color);
    }
}

.logo {
    width: 500px;
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #FFF;
    backdrop-filter: blur(8px);
}

.form-container {
    position: relative;
}

.culture-switcher-wrapper {
    position: absolute;
    top: 18px;
    right: 24px;
    z-index: 10;
}

.culture-switcher .culture-switcher-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 14px;
    background: #fff;
    color: var(--blue__color);
    border: 1px solid #D9DEE6;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .culture-switcher .culture-switcher-toggle:hover {
        border-color: var(--blue__color);
        box-shadow: rgba(14, 42, 72, 0.08) 0 2px 6px;
    }

    .culture-switcher .culture-switcher-toggle:focus,
    .culture-switcher .culture-switcher-toggle:focus-visible {
        outline: none;
        border-color: var(--blue__color);
        box-shadow: rgba(14, 42, 72, 0.15) 0 0 0 3px;
    }

.culture-switcher .culture-icon {
    flex: 0 0 auto;
    display: inline-block;
}

.culture-switcher .culture-icon-globe {
    width: 16px;
    height: 16px;
}

.culture-switcher .culture-icon-chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.culture-switcher .culture-switcher-toggle[aria-expanded="true"] .culture-icon-chevron {
    transform: rotate(180deg);
}

.culture-switcher .culture-label {
    text-transform: capitalize;
}

.culture-switcher .culture-menu {
    min-width: 220px;
    padding: 6px 0;
    margin-top: 8px;
    border: 1px solid #E5E9F0;
    border-radius: 10px;
    box-shadow: rgba(14, 42, 72, 0.15) 0 12px 32px -8px;
}

.culture-switcher .culture-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 9px 16px;
    color: #1A2332;
    font-size: 14px;
    background: #fff;
    transition: background-color 0.15s ease;
}

    .culture-switcher .culture-item:hover,
    .culture-switcher .culture-item:focus {
        background-color: #F3F6FA;
        color: #1A2332;
    }

    .culture-switcher .culture-item.is-active {
        background-color: #EAF1FA;
        color: #1A2332;
    }

    .culture-switcher .culture-item.is-active:hover {
        background-color: #DFE9F5;
    }

    .culture-switcher .culture-item .culture-code {
        flex: 0 0 28px;
        font-weight: 700;
        color: var(--blue__color);
        letter-spacing: 0.3px;
    }

    .culture-switcher .culture-item .culture-name {
        flex: 1 1 auto;
        text-transform: capitalize;
    }

    .culture-switcher .culture-item .culture-icon-check {
        flex: 0 0 auto;
        width: 16px;
        height: 16px;
        color: var(--blue__color);
    }

@media (max-width: 480px) {
    .culture-switcher-wrapper {
        top: 10px;
        right: 12px;
    }

    .culture-switcher .culture-switcher-toggle {
        height: 32px;
        padding: 0 10px;
        font-size: 13px;
    }
}

.technical-contact-banner {
    margin-top: 16px;
    padding: 12px 16px;
    border-left: 3px solid var(--blue__color);
    background: #F3F6FA;
    border-radius: 6px;
    font-size: 13px;
    color: #1A2332;
}

    .technical-contact-banner .technical-contact-label {
        font-weight: 600;
        margin-bottom: 6px;
    }

    .technical-contact-banner .technical-contact-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

        .technical-contact-banner .technical-contact-list li {
            margin: 2px 0;
        }

        .technical-contact-banner .technical-contact-list a {
            color: var(--blue__color);
            text-decoration: none;
        }

            .technical-contact-banner .technical-contact-list a:hover {
                text-decoration: underline;
            }

.icon {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.main {
    display: flex;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
    border-radius: 10px;
    color: var(--blue__color);
}

h1 {
    font-size: 30px;
}

.header {
    display: flex;
    align-items: start;
}

.form-container {
    width: 500px;
    min-height: 500px;
    background: #fff;
    padding: 20px 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
}

.form {
    width: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
}

    .form h1 {
        font-size: 25px;
    }

.dropdown-idp {
    width: 100%;
    overflow: auto;
    max-height: 350px;
}

.username,
.password,
.email {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-content: flex-start;
    width: 100%;
}

.username_field,
.password_field,
.email_field {
    display: flex;
    align-items: center;
    justify-content: start;
    width: 100%;
    margin: 20px 0;
    position: relative;
}

.line {
    position: absolute;
    bottom: -10px;
    height: 2px;
    background-color: var(--blue__color);
    width: 0%;
    z-index: 1;
    transition: all 0.5s ease-in-out;
    -webkit-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    -ms-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
}

.lineSeparator {
    position: absolute;
    bottom: -10px;
    height: 2px;
    background-color: #D9D9D9;
    width: 100%;
}

.username_field > input,
.password_field > input,
.email_field > input {
    border: none;
    outline: none;
    margin-left: 20px;
    width: 100%;
    opacity: 50%;
}

    .username_field > input:not([readonly]):not([disabled]):focus + .line,
    .password_field > input:not([readonly]):not([disabled]):focus + .line,
    .email_field > input:not([readonly]):not([disabled]):focus + .line {
        width: 100%;
    }

.enter {
    position: relative;
    display: flex;
    justify-content: space-between;
    height: 50px;
    width: 100%;
    margin-top: 20px;
}

.psw_dimenticata {
    align-self: flex-end;
}

    .psw_dimenticata > a {
        text-decoration: none;
        font-size: 12px;
        color: #0E2A48;
        padding: 8px;
        -webkit-transition: all 0.5s ease-in-out;
        -moz-transition: all 0.5s ease-in-out;
        -ms-transition: all 0.5s ease-in-out;
        -o-transition: all 0.5s ease-in-out;
        transition: all 0.5s ease-in-out;
    }

        .psw_dimenticata > a:hover {
            /*border: 1px dotted white;*/
            box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
            border-radius: 5px;
        }

a.button {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    text-decoration: none;
}

    a.button:hover {
        color: #FFF
    }
/*
    a.button_hover:link {
        text-decoration: none;
    }

    a.button_hover:visited {
        text-decoration: none;
    }

    a.button_hover:hover {
        text-decoration: none;

    }

    a.button_hover:active {
        text-decoration: none;
    }*/

.button {
    height: 100%;
    width: 100%;
    cursor: pointer;
    border-radius: 12px;
    border: none;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    background: var(--blue__color); /* fallback for old browsers */
    color: #FFF;
    -webkit-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    -ms-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
}
    .button:disabled {
        background: var(--default__color);
    }
    .button:not([disabled]):hover {
        box-shadow: rgb(112, 112, 112) 0px 15px 20px -10px;
    }

.button-light {
    height: 40px;
    width: 100%;
    cursor: pointer;
    border-radius: 12px;
    border: 1px solid #D9D9D9;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    background: #fff; /* fallback for old browsers */
    color: var(--blue__color);
    -webkit-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    -ms-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
}

    .button-light:hover {
        box-shadow: rgb(112, 112, 112) 0px 15px 20px -10px;
    }

    .button-light:active {
        background-color: lightgrey;
    }

    .button-light:disabled {
        background-color: lightgrey;
        color: grey;
        border: none;
    }

        .button-light:disabled > img {
            filter: grayscale(100%) blur(2px);
        }

        .button-light:disabled:hover {
            box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
        }

a.button-light {
    text-decoration: none;
}

#LoginButton, .psw_dimenticata > a {
    cursor: pointer;
}



.icon_button {
    border: solid 2px var(--blue__color);
    border-radius: 50px;
    width: fit-content;
}

    .icon_button:hover {
        box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    }

.errorMessage {
    margin-top: 20px;
    height: 40px;
    overflow-y: scroll;
    -ms-overflow-style: none; /* Internet Explorer 10+ */
    scrollbar-width: none; /* Firefox */
    text-align: center;
}

    .errorMessage::-webkit-scrollbar {
        display: none; /* Safari and Chrome */
    }

    .errorMessage > span {
        color: #fff;
    }

@media (max-width: 480px) {
    /* CSS */
    .form-container {
        width: 300px;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .icon {
        margin-top: 10px;
        margin-bottom: 0;
    }

    .main {
        flex-wrap: wrap;
        justify-content: space-evenly;
        height: unset;
    }

    body {
        display: unset;
    }

    button[value="Marriott"] span {
        font-size: 12px;
    }
}
