﻿@font-face {
    font-family: "Roboto";
    src: url("fonts/Roboto-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Roboto";
    src: url("fonts/Roboto-Bold.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: "Roboto";
    src: url("fonts/Roboto-Italic.ttf") format("truetype");
    font-weight: normal;
    font-style: italic;
}
/****************************************************************************/
/*  Variabili CSS per browser moderni.                                      */
/****************************************************************************/
:root {
    --colors-black-white-white: #FFFFFF;
    --colors-primary-primary: #0069B4;
    --colors-primary-hover: #5899C6;
    --colors-shadow-topbar: #445059;
    --colors-neutral-100: #FAFAFA;
    --colors-neutral-300: #F1F2F4;
    --colors-neutral-500: #97ABBA;
    --colors-neutral-700: #507795;
    --colors-neutral-900: #143752;
    --colors-semantic-error: #CC3229;
    --colors-semantic-error-surface: #FCF3F3;
    --colors-healthcare: #30BBBB;
}

* {
    font-family: Roboto;
    font-size: 16px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    box-sizing: border-box;
}

html, body {
    /*background-image: url(../Images/sfondo_zucchetti_light.png), linear-gradient(to left, var(--colors-black-white-white) 0%, #eee 38%);*/
    background-image: url(../Images/sfondo_zucchetti.svg), linear-gradient(to left, var(--colors-black-white-white) 0%, #eee 38%);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom right;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: fit-content;
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    color: var(--colors-neutral-900);
}


/* Background for resolutions up to 1920px */
@media (max-width: 1920px) {
    html, body {
        background-image: url(../Images/sfondo_zucchetti_1920.png), linear-gradient(to left, var(--colors-black-white-white) 0%, #eee 38%);
    }
}

/* Background for resolutions up to 1280px */
@media (max-width: 1280px) {
    html, body {
        background-image: url(../Images/sfondo_zucchetti_1280.png), linear-gradient(to left, var(--colors-black-white-white) 0%, #eee 38%);
    }
}


.w-100 {
    width: 100%;
}

.text-primary {
    color: var(--colors-primary-primary);
}

.relative {
    position: relative;
}

.image-container > img {
    width: 200px;
}

.welcome {
    color: var(--colors-neutral-900);
    margin: 32px 0;
    text-align: center;
    font-size: 23px;
    font-weight: bold;
}

    .welcome span {
        color: var(--colors-healthcare);
        font-size: 23px;
        font-weight: bold;
    }

.mycontainer {
    width: 420px;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 48px;
    padding: 48px 48px 24px;
    border-radius: 16px;
    box-shadow: 0 2px 4px 0 rgba(76, 91, 103, 0.2), 0 2px 6px 0 rgba(76, 91, 103, 0.2);
    background-color: var(--colors-black-white-white);
}

.page-function-title {
    display: block;
    color: var(--colors-neutral-900);
    font-weight: bold;
    padding-bottom: 32px;
}

.section-title {
    display: block;
    color: var(--colors-neutral-700);
    font-weight: bold;
}

.field-container {
    margin-bottom: 16px;
    align-self: stretch;
    flex-grow: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 8px;
    padding: 0;
}

.inputText {
    align-self: stretch;
    flex-grow: 0;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    padding: 8px 8px 8px 16px;
    border-radius: 8px;
    border: solid 1px var(--colors-neutral-500);
    background-color: var(--colors-neutral-300);
    color: var(--colors-neutral-700);
}

    .inputText:focus, .inputText:active {
        outline: none;
        border: solid 1px var(--colors-primary-primary);
    }

.primary-button {
    height: 44px;
    cursor: pointer;
    align-self: stretch;
    flex-grow: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 8px;
    border-radius: 32px;
    border: none;
    box-shadow: 0 4px 6px 0 rgba(68, 80, 89, 0.2), 0 0 1px 0 rgba(68, 80, 89, 0.24);
    background-color: var(--colors-primary-primary);
    color: var(--colors-neutral-100);
}

.secondary-button {
    height: 44px;
    cursor: pointer;
    align-self: stretch;
    flex-grow: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 8px;
    border-radius: 32px;
    box-shadow: 0 4px 6px 0 rgba(68, 80, 89, 0.2), 0 0 1px 0 rgba(68, 80, 89, 0.24);
    border: solid 2px var(--colors-primary-primary);
    background-color: var(--colors-neutral-100);
    color: var(--colors-primary-primary);
}

.external-login-container {
    margin: 24px 0;
    display: flex;
    align-items: center;
    color: var(--colors-neutral-700);
    gap: 8px;
}

.separator-line {
    height: 1px;
    flex-grow: 1;
    background-color: var(--colors-neutral-500);
}

.zlogo-container {
    margin: 10px 0 20px 0;
    text-align: center;
}

    .zlogo-container > img {
        width: 165px;
    }

.version-container {
    bottom: 0
}

    .version-container .small-text {
        font-size: 13px;
        text-decoration: underline;
    }

.password-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

    .password-wrapper input {
        flex: 1;
    }

.eye-icon-button {
    position: absolute;
    right: 10px; /* Regola questa distanza secondo necessità */
    cursor: pointer;
}

.light-tooltip-error {
    padding: 8px;
    border-radius: 8px;
    border: solid 2px var(--colors-semantic-error);
    background-color: var(--colors-semantic-error-surface);
}

    .light-tooltip-error > .tooltip-header {
        position: relative;
    }

        .light-tooltip-error > .tooltip-header > i {
            color: var(--colors-semantic-error);
        }

        .light-tooltip-error > .tooltip-header > span {
            font-weight: bold;
            color: var(--colors-neutral-900);
            margin-left: 5px;
        }

        .light-tooltip-error > .tooltip-header > .hide-error-icon {
            position: absolute;
            top: 5px;
            right: 5px;
            cursor: pointer;
        }

    .light-tooltip-error > .tooltip-body {
        color: var(--colors-neutral-900);
        padding: 6px 24px;
        font-size: 13px;
        display: flex;
        flex-direction: column;
    }


.login-help {
    margin-top: 32px;
}

/* EFFETTO CARICAMENTO */

.dots-3 {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 50px;
    height: 24px;
    background: radial-gradient(circle closest-side,currentColor 90%,#0000) 0% 50%, radial-gradient(circle closest-side,currentColor 90%,#0000) 50% 50%, radial-gradient(circle closest-side,currentColor 90%,#0000) 100% 50%;
    background-size: calc(100%/3) 12px;
    background-repeat: no-repeat;
    animation: d3 1s infinite linear;
}

@keyframes d3 {
    20% {
        background-position: 0% 0%, 50% 50%,100% 50%
    }

    40% {
        background-position: 0% 100%, 50% 0%,100% 50%
    }

    60% {
        background-position: 0% 50%, 50% 100%,100% 0%
    }

    80% {
        background-position: 0% 50%, 50% 50%,100% 100%
    }
}
