:root {
    --fc-blu: #2a5bd7;
    --fc-blu-scuro: #1f47ad;
    --fc-blu-chiaro: #eaf2ff;
    --fc-bordo: #e3e7ef;
}

body {
    background: #f5f7fb;
}

.bg-fc {
    background: var(--fc-blu);
}

.btn-primary {
    --bs-btn-bg: var(--fc-blu);
    --bs-btn-border-color: var(--fc-blu);
    --bs-btn-hover-bg: var(--fc-blu-scuro);
    --bs-btn-hover-border-color: var(--fc-blu-scuro);
    --bs-btn-active-bg: var(--fc-blu-scuro);
}

/* menu laterale: fisso da desktop, a scomparsa su tablet/telefono */
@media (min-width: 992px) {
    .fc-menu {
        width: 240px;
        flex-shrink: 0;
        min-height: calc(100vh - 56px);
        background: #fff;
        border-right: 1px solid var(--fc-bordo);
    }
}

.fc-menu .nav-link {
    color: #2b3445;
    border-radius: .5rem;
    padding: .45rem .75rem;
}

.fc-menu .nav-link:hover {
    background: #f1f4fa;
}

.fc-menu .nav-link.active {
    background: var(--fc-blu-chiaro);
    color: var(--fc-blu);
    font-weight: 600;
}

.fc-menu .nav-link.disabled {
    color: #9aa3b2;
}

.fc-menu .nav-link i {
    width: 1.5rem;
    display: inline-block;
}

.fc-menu-titolo {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #8a94a6;
    margin: 1rem .75rem .25rem;
}

.fc-main {
    min-width: 0;
    max-width: 1200px;
}

.fc-card {
    background: #fff;
    border: 1px solid var(--fc-bordo);
    border-radius: .75rem;
}

.fc-numero {
    font-size: 1.9rem;
    font-weight: 600;
    line-height: 1.1;
}

.table > :not(caption) > * > * {
    vertical-align: middle;
}

/* pagina di accesso */
.fc-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: linear-gradient(160deg, var(--fc-blu-chiaro) 0%, #f5f7fb 60%);
}

.fc-login .card {
    width: 100%;
    max-width: 420px;
    border-radius: 1rem;
}

.fc-logo {
    color: var(--fc-blu);
    font-weight: 700;
    letter-spacing: -.02em;
}

/* login a due colonne: messaggio a sinistra, modulo a destra; su telefono solo il modulo */
.fc-login:has(.fc-accesso) {
    padding: 0;
    background: #fff;
}

.fc-accesso {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.fc-accesso-lato {
    position: relative;
    overflow: hidden;
    flex: 0 0 46%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 56px;
    color: #fff;
    background: linear-gradient(150deg, var(--fc-blu) 0%, var(--fc-blu-scuro) 70%, #173a8f 100%);
}

/* due cerchi sfumati di sfondo */
.fc-accesso-lato::before,
.fc-accesso-lato::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.fc-accesso-lato::before {
    width: 520px;
    height: 520px;
    right: -220px;
    top: -160px;
    background: radial-gradient(circle, rgba(20, 184, 166, .45), transparent 65%);
}

.fc-accesso-lato::after {
    width: 420px;
    height: 420px;
    left: -180px;
    bottom: -200px;
    background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 65%);
}

.fc-accesso-lato > * {
    position: relative;
}

.fc-accesso-marchio {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -.02em;
    color: #fff;
    text-decoration: none;
}

.fc-accesso-marchio .bi {
    color: #5eead4;
    font-size: 1.6rem;
}

.fc-accesso-marchio:hover {
    color: #fff;
}

.fc-accesso-messaggio h1 {
    font-size: clamp(1.8rem, 2.6vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.02em;
    margin-bottom: 1rem;
}

.fc-accesso-messaggio p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, .82);
    max-width: 30rem;
    margin-bottom: 1.75rem;
}

.fc-accesso-messaggio ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .75rem;
}

.fc-accesso-messaggio li {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-weight: 500;
}

.fc-accesso-messaggio li .bi {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
}

.fc-accesso-piede {
    margin: 0;
    font-size: .85rem;
    color: rgba(255, 255, 255, .65);
}

.fc-accesso-modulo {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: linear-gradient(160deg, var(--fc-blu-chiaro) 0%, #fff 45%);
}

.fc-accesso-scheda {
    width: 100%;
    max-width: 400px;
}

.fc-accesso-scheda h2 {
    font-weight: 700;
    letter-spacing: -.02em;
    color: #1d2433;
    margin-bottom: .35rem;
}

.fc-accesso-marchio-mobile {
    display: none;
    color: var(--fc-blu);
    margin-bottom: 1.5rem;
}

.fc-accesso-marchio-mobile:hover {
    color: var(--fc-blu);
}

.fc-accesso-marchio-mobile .bi {
    color: #14b8a6;
}

.fc-campo {
    position: relative;
}

.fc-campo > .bi {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #8792a8;
    pointer-events: none;
}

.fc-campo .form-control {
    padding-left: 42px;
    border-radius: .75rem;
    font-size: 1rem;
}

.fc-campo .form-control:focus {
    border-color: var(--fc-blu);
    box-shadow: 0 0 0 .25rem rgba(42, 91, 215, .15);
}

.fc-campo:has(.fc-mostra) .form-control {
    padding-right: 46px;
}

.fc-mostra {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #5b6782;
}

.fc-mostra:hover {
    background: var(--fc-blu-chiaro);
    color: var(--fc-blu);
}

.fc-accesso-entra {
    border-radius: .75rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--fc-blu), var(--fc-blu-scuro));
    border: 0;
    box-shadow: 0 10px 24px rgba(42, 91, 215, .28);
    transition: transform .15s ease, box-shadow .15s ease;
}

.fc-accesso-entra:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(42, 91, 215, .34);
}

.fc-accesso-aiuto {
    margin: 2rem 0 0;
    font-size: .875rem;
    color: #5b6782;
    text-align: center;
    line-height: 1.8;
}

.fc-accesso-aiuto a {
    color: var(--fc-blu);
    text-decoration: none;
    font-weight: 500;
}

@media (max-width: 991.98px) {
    .fc-accesso-lato {
        display: none;
    }

    .fc-accesso-marchio-mobile {
        display: inline-flex;
    }
}
