@font-face {
    font-family: 'BrandonGrotesque';
    src: url('/font/BrandonGrotesque-Light.otf') format('opentype');
    font-weight: normal;
}

@font-face {
    font-family: 'BrandonGrotesque';
    src: url('/font/BrandonGrotesque-Bold.otf') format('opentype');
    font-weight: bold;
}

html,
body {
    font-family: 'BrandonGrotesque', sans-serif;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: bold;
}

.hidden {
    display: none !important;
}

.form-signin {
    max-width: 500px;
    padding: 15px;
}

.form-signin .form-signin-heading,
.form-signin .checkbox {
    margin-bottom: 10px;
    text-align: center;
}

.form-signin .checkbox {
    font-weight: normal;
}

.form-signin .form-control {
    position: relative;
    height: auto;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 10px;
    font-size: 16px;
}

.form-signin .form-control.disabled {
    opacity: 0.25;
    pointer-events: none;
}

.form-signin .form-control:focus {
    z-index: 2;
}

.form-signin input#u {
    margin-bottom: 5px;
}

.form-signin input[type="password"] {
    margin-bottom: 10px;
}

small.msg {
    display: block;
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
}

form small.messages {
    display: flex;
    justify-content: center;
    text-align: center;
    margin-top: 15px;
}

form small.messages>div {
    display: inline-block;
    width: 5.5rem;
    margin: 0 5px;
    color: var(--primary-color-darker);
}

form small.messages>div span.alert {
    display: block;
    font-size: 40px;
    color: var(--primary-color-darker);
    padding: 5px;
    margin: auto;
    background-color: transparent;
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-color-darker);
    margin-bottom: 2px;
}

#error {
    margin: 0 auto 10px;
    padding: 10px 0;
    display: block;
    font-size: 12px;
    font-weight: normal;
}

#error span {
    font-weight: bold;
}

.container_logo {
    width: max-content;
    max-width: 180px;
    padding: 3px;
    border-radius: 6px;
    margin: auto;
    margin-bottom: 20px;
    line-height: 0;
}

.container_logo .logo {
    width: 100%;
    padding: 7px;
    border-radius: 3px;
    background-color: white;
    vertical-align: initial;
    height: 100%;
    object-fit: contain;
    box-shadow: 10px 10px 40px var(--primary-color-darker), -10px -10px 40px var(--primary-color-lighter);
}

.container_logo,
.container_logo .logo {
    border-radius: 1000px;
}

.ragsoc {
    display: block;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
    min-height: 450px;
    overflow-x: hidden;
    background-color: var(--secondary-color);
}

.titolo {
    color: var(--text-color);
    margin-bottom: 5px;
}

.form-signin {
    width: 100%;
    padding: 15px;
}

.form-signin .checkbox {
    font-weight: normal;
}

.form-signin .form-control {
    position: relative;
    box-sizing: border-box;
    height: auto;
    padding: 10px;
    font-size: 16px;
    transition: .3s all ease;
}

.form-signin .form-control#e.loading {
    pointer-events: none;
    opacity: 0.25;
}

.form-signin .form-control#e+i {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 50%;
    right: 9px;
    transform: translateY(-50%);
    animation: rotate 1.5s linear infinite;
    transition: .3s all ease;
    color: var(--primary-color);
}

.form-signin .form-control#e.loading+i {
    opacity: 1;
}

@keyframes rotate {
    100% {
        transform: translateY(-50%) rotate(360deg);
    }
}

.form-signin .form-control:focus {
    z-index: 2;
}

.form-signin input#u:-webkit-autofill,
.form-signin input#p:-webkit-autofill {
    background-color: transparent !important;
}

.form-control {
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    text-align: center;
}

.btn-success {
    color: var(--text-color);
    background: linear-gradient(145deg, var(--primary-color-lighter), var(--primary-color));
    border-color: var(--primary-color-darker);
}

.btn-success:hover,
.btn-success.focus,
.btn-success:focus,
.btn-success:not(:disabled):not(.disabled).active,
.btn-success:not(:disabled):not(.disabled):active,
.show>.btn-success.dropdown-toggle {
    background-color: var(--primary-color);
    border-color: var(--primary-color-darker);
    box-shadow: none;
}

.btn-close {
    background: var(--secondary-color);
    color: var(--primary-color-darker) !important;
    border-color: var(--primary-color-darker);
}

.btn-close:hover,
.btn-close.focus,
.btn-close:focus,
.btn-close:not(:disabled):not(.disabled).active,
.btn-close:not(:disabled):not(.disabled):active,
.show>.btn-close.dropdown-toggle {
    background-color: var(--secondary-color);
    color: var(--text-color);
}

.btn:hover {
    filter: brightness(115%);
}

.bg_left {
    height: 100%;
    width: calc(100% / 3);
    min-width: 350px;
    background-color: var(--primary-color);
    background-position: center;
    background-size: cover;
    position: relative;
}

.bg_left .form-signin-heading {
    margin-top: 20%;
    text-align: center;
    padding: 0 15px;
}

.content {
    height: 100%;
    width: calc(100% / 3 * 2);
    display: flex;
    align-items: center;
    padding: 0 5%;
}



.form-control {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--primary-color-lighter);
    border-radius: 0;
}

.form-control::placeholder {
    color: var(--primary-color-lighter);
}

.form-control:focus {
    color: var(--primary-color-lighter);
    background-color: transparent;
    outline: none;
    box-shadow: none;
    border-color: var(--primary-color-darker);
}

.select_language {
    position: absolute;
    top: 20px;
    right: 25px;
}

.select_language :focus {
    background-color: var(--primary-color);
    color: var(--text-color);
}

.descrizione {
    color: var(--text-color-darker);
    font-weight: normal;
    font-size: 20px;
    margin: 0;
}

.dropdown-input {
    height: 45px !important;
}

.dropdown-input-container {
    width: 100%;
    position: relative;
}

.dropdown-input-container:focus {
    background-color: var(--primary-color);
    color: var(--text-color);
}

.dropdown-input-container option:hover {
    box-shadow: 0 0 10px 100px var(--primary-color-darker) inset;
}

.label-container {
    display: flex;
    margin-bottom: 10px;
}

.label {
    color: var(--primary-color-darker);
    text-align: left;
    margin-top: 15px;
    margin-bottom: 0;
    margin-right: 15px;
    width: 100px;
    font-weight: bold;
}

.btn.disabled,
.btn:disabled {
    opacity: 0.5;
    pointer-events: none;
    box-shadow: none;
    border-color: transparent;
}

.btn-container {
    display: flex;
    margin: -10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn-container>button,
.modal button {
    margin: 10px;
    text-transform: uppercase;
    font-weight: bold;
    line-height: 20px;
    font-size: 15px;
    position: relative;
    transition: .3s all ease;
}

.btn-container>button {
    width: calc(100% / 3 - 20px);
}

.btn-container>button,
.modal button {
    color: var(--text-color);
    box-shadow: 5px 5px 11px var(--secondary-color-darker), -5px -5px 11px var(--secondary-color-lighter);
    /*https://neumorphism.io/ colore1*/
}


.btn-container.half-buttons>button {
    width: calc(50% - 20px);
}

.btn-container>button:last-child,
.modal button>button:last-child {
    margin-right: 0;
}

.btn-container>button i {
    display: block;
    margin-bottom: 10px;
    font-size: 40px;
}

.modal {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal .modal-dialog {
    margin: 0 auto;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.modal .modal-content {
    background-color: var(--secondary-color);
}

.modal>* {
    padding: 15px;
}

.modal .modal-footer {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    margin: -10px;
    padding-top: 0;
}

.modal .modal-footer>* {
    margin: 10px;
}

textarea {
    resize: none;
    max-height: 85px;
}

.modal .label {
    width: 100%;
    margin: 0;
    text-align: center;
}

.textselect {
    position: relative
}

.textselect #pbxSelect {
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 15px);
    z-index: 3;
    background: var(--secondary-color);
}

@media screen and (orientation: portrait) {
    body {
        flex-direction: column;
        min-height: 750px;
    }

    .bg_left {
        height: auto;
        width: 100%;
        position: initial;
    }

    .content {
        height: auto;
        width: 100%;
        padding: 0;
        justify-content: center;
        margin-top: 30px;
        padding-bottom: 134px;
    }

    .bg_left .form-signin-heading {
        margin: 30px 0;
    }

    .select_language {
        top: initial;
        bottom: 120px;
        right: 50%;
        transform: translateX(50%);
    }

    .container_logo .logo {
        max-height: 150px;
    }

    .select_language {
        bottom: 95px;
    }

    .bg_left .form-signin-heading {
        padding: 0 30px;
    }

    .footer {
        background-color: var(--primary-color);
    }
}

.btn-success:not(:disabled):not(.disabled).active:focus,
.btn-success:not(:disabled):not(.disabled):active:focus,
.show>.btn-success.dropdown-toggle:focus,
.btn-close:not(:disabled):not(.disabled).active:focus,
.btn-close:not(:disabled):not(.disabled):active:focus,
.show>.btn-close.dropdown-toggle:focus {
    box-shadow: none;
}

.btn-success:hover,
.btn-success.focus,
.btn-success:focus,
.btn-success:not(:disabled):not(.disabled).active,
.btn-success:not(:disabled):not(.disabled):active,
.show>.btn-success.dropdown-toggle,
.btn-close:hover,
.btn-close.focus,
.btn-close:focus,
.btn-close:not(:disabled):not(.disabled).active,
.btn-close:not(:disabled):not(.disabled):active,
.show>.btn-close.dropdown-toggle {
    box-shadow: none;
}

@media screen and (max-width: 767px) {

    .btn-container>button,
    .btn-container.half-buttons>button {
        width: calc(100% - 20px);
    }

    .more-inputs-container {
        width: 100%;
        transform: translateX(-50%);
    }
}