/*
 * =========================================================
 * CELLENO UI - LOGIN
 * Versione: 1.0.0
 * File: cui_login.css
 * Dipendenza: cui_base.css
 * =========================================================
 */

html,
body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

body {
    background: var(--cui-bg) !important;
}


/* =========================================================
   PAGINA
   ========================================================= */

#msp-login-page {
    position: fixed;
    inset: 0;
    overflow-y: auto;

    background:
        radial-gradient(
            circle at 15% 18%,
            rgba(24,135,245,.13),
            transparent 30%
        ),
        radial-gradient(
            circle at 84% 82%,
            rgba(10,85,180,.10),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #fbfdff 0%,
            #edf6ff 52%,
            #dcecff 100%
        );
}


/* =========================================================
   CONTENITORE
   ========================================================= */

#msp-login-shell {
    width: calc(100% - 44px);
    max-width: 1420px;

    min-height: calc(100vh - 56px);

    margin: 0 auto;
    padding: 18px 0 62px;

    box-sizing: border-box;

    display: grid;
    grid-template-columns:
        minmax(330px, 1fr)
        minmax(440px, 510px)
        minmax(285px, .72fr);

    gap: 32px;
    align-items: center;
}


/* =========================================================
   SINISTRA
   ========================================================= */

#msp-login-left {
    box-sizing: border-box;
    padding: 18px 4px;
}

.msp-eyebrow {
    display: inline-flex;
    align-items: center;

    margin-bottom: 18px;
    padding: 7px 13px;

    border-radius: 999px;

    background: rgba(10,106,211,.09);
    color: #0969c9;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .08em;
    text-transform: uppercase;
}

.msp-claim {
    margin: 0 0 18px;

    color: var(--cui-text-strong);

    font-size: clamp(38px, 3vw, 55px);
    font-weight: 800;

    line-height: 1.02;
    letter-spacing: -2px;
}

.msp-claim span {
    color: var(--cui-primary-light);
}

.msp-description {
    max-width: 465px;

    margin: 0 0 28px;

    color: #536b8c;

    font-size: 16px;
    line-height: 1.55;
}


/* =========================================================
   FEATURES
   ========================================================= */

.msp-features {
    display: grid;
    gap: 11px;

    max-width: 430px;
}

.msp-feature {
    display: flex;
    align-items: center;

    gap: 13px;

    padding: 11px 13px;

    border: 1px solid rgba(22,104,188,.08);
    border-radius: 15px;

    background: rgba(255,255,255,.62);

    box-shadow: var(--cui-shadow-sm);
}

.msp-feature-icon {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: var(--cui-radius-md);

    background:
        linear-gradient(
            135deg,
            rgba(23,139,244,.17),
            rgba(9,87,190,.08)
        );

    color: #086ccf;

    font-size: 18px;
    font-weight: 700;
}

.msp-feature strong {
    display: block;

    color: #123c6d;

    font-size: 14px;
    font-weight: 700;
}

.msp-feature small {
    display: block;

    margin-top: 2px;

    color: #7385a0;

    font-size: 12px;
}


/* =========================================================
   CENTRO
   ========================================================= */

#msp-login-center {
    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================================================
   CARD LOGIN
   ========================================================= */

#msp-login-card {
    width: 100%;
    max-width: 510px;

    box-sizing: border-box;

    padding: 28px 34px 17px;

    overflow: hidden;

    background: rgba(255,255,255,.98);

    border: 1px solid rgba(255,255,255,.94);
    border-radius: var(--cui-radius-xl);

    box-shadow: var(--cui-shadow-lg);
}


/* =========================================================
   HEADER MSP
   ========================================================= */

.msp-logo-header {
    margin: -28px -34px 20px;

    min-height: 76px;

    padding: 14px 24px;

    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #0a6dce 0%,
            var(--cui-primary) 52%,
            #063a7c 100%
        );

    border-radius:
        var(--cui-radius-xl)
        var(--cui-radius-xl)
        0
        0;
}

.msp-login-logo {
    display: block;

    width: auto !important;
    height: auto !important;

    max-width: 260px !important;
    max-height: 66px !important;

    object-fit: contain;
}

.msp-login-header {
    margin-bottom: 17px;
    text-align: center;
}

.msp-login-title {
    margin: 0;

    color: var(--cui-text-strong);

    font-size: 25px;
    font-weight: 760;

    line-height: 1.18;
}

.msp-login-subtitle {
    margin-top: 6px;

    color: var(--cui-muted);

    font-size: 13px;
}


/* =========================================================
   FORM SCRIPTCASE
   ========================================================= */

#msp-login-card form {
    width: 100% !important;

    height: auto !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;

    border: 0 !important;
    box-shadow: none !important;
}


/* =========================================================
   FORM MODERNO
   ========================================================= */

.msp-native-login {
    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 12px;
}

.msp-field-group {
    width: 100%;
}

.msp-field-label {
    display: block;

    margin: 0 0 6px;

    color: #173d68;

    font-size: 13px;
    font-weight: 650;
}

.msp-required {
    margin-left: 2px;

    color: var(--cui-danger);
}


/* =========================================================
   INPUT
   ========================================================= */

.msp-login-input {
    width: 100% !important;
    height: 48px !important;

    box-sizing: border-box !important;

    margin: 0 !important;
    padding: 0 14px !important;

    background: var(--cui-surface) !important;

    border: 1px solid var(--cui-border) !important;
    border-radius: 11px !important;

    color: var(--cui-text) !important;

    font-family: var(--cui-font) !important;
    font-size: 15px !important;

    outline: none !important;
    box-shadow: none !important;

    transition:
        border-color var(--cui-transition),
        box-shadow var(--cui-transition) !important;
}

.msp-login-input:focus {
    border-color: var(--cui-primary-light) !important;

    box-shadow:
        0 0 0 4px
        rgba(22,137,243,.11) !important;
}


/* =========================================================
   LINK LOGIN
   ========================================================= */

.msp-login-links {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-top: 1px;
}

.msp-login-link {
    color: #0874dc !important;

    font-family: var(--cui-font) !important;

    font-size: 12px !important;
    font-weight: 550 !important;

    line-height: 1.3;

    text-decoration: none !important;
}

.msp-login-link:hover {
    color: #054fa5 !important;
    text-decoration: underline !important;
}


/* =========================================================
   BUTTON LOGIN
   ========================================================= */

.msp-login-button-wrap {
    width: 100%;

    margin-top: 2px;
}

.msp-login-button {
    width: 100% !important;
    min-width: 100% !important;

    height: 48px !important;

    box-sizing: border-box !important;

    margin: 0 !important;
    padding: 0 20px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border: 0 !important;
    border-radius: 11px !important;

    background:
        linear-gradient(
            135deg,
            var(--cui-primary-light) 0%,
            #0060d8 100%
        ) !important;

    color: #ffffff !important;

    font-family: var(--cui-font) !important;

    font-size: 15px !important;
    font-weight: 700 !important;

    line-height: 48px !important;

    text-align: center !important;
    text-decoration: none !important;

    box-shadow:
        0 9px 21px
        rgba(0,96,216,.22) !important;

    cursor: pointer !important;

    transition:
        transform var(--cui-transition-fast),
        box-shadow var(--cui-transition-fast) !important;
}

.msp-login-button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 12px 25px
        rgba(0,96,216,.29) !important;
}


/* =========================================================
   CELLENO
   ========================================================= */

.msp-developed-by {
    margin-top: 13px;
    padding-top: 10px;

    border-top: 1px solid var(--cui-border-soft);

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    color: #8695aa;

    font-size: 10px;
}

.msp-developed-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    text-decoration: none !important;
}

.msp-developed-text {
    white-space: nowrap;
}

.msp-celleno-logo {
    display: block;

    width: auto !important;
    height: auto !important;

    max-width: 115px !important;
    max-height: 30px !important;

    object-fit: contain;
}


/* =========================================================
   PANNELLO DESTRA
   ========================================================= */

#msp-login-right {
    position: relative;

    min-height: 420px;

    overflow: hidden;

    padding: 32px 28px;

    box-sizing: border-box;

    display: flex;
    align-items: center;

    border-radius: var(--cui-radius-xl);

    color: #ffffff;

    background:
        linear-gradient(
            145deg,
            #126dc9 0%,
            #074895 48%,
            #052f69 100%
        );

    box-shadow:
        0 22px 55px
        rgba(16,63,121,.14);
}

#msp-login-right::before {
    content: "";

    position: absolute;

    width: 390px;
    height: 390px;

    top: -175px;
    left: -165px;

    border-radius: 50%;

    background: rgba(255,255,255,.06);
}

#msp-login-right::after {
    content: "";

    position: absolute;

    width: 320px;
    height: 320px;

    right: -165px;
    bottom: -135px;

    border-radius: 50%;

    background: rgba(255,255,255,.065);
}

.msp-right-content {
    position: relative;

    z-index: 2;

    width: 100%;
}

.msp-right-label {
    margin-bottom: 13px;

    color: rgba(255,255,255,.72);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: .09em;
    text-transform: uppercase;
}

.msp-right-title {
    margin: 0 0 25px;

    font-size: 30px;
    line-height: 1.08;

    font-weight: 750;
}

.msp-right-values {
    display: grid;

    gap: 10px;
}

.msp-right-value {
    display: flex;
    align-items: center;

    gap: 11px;

    padding: 9px 11px;

    border: 1px solid rgba(255,255,255,.08);
    border-radius: 11px;

    background: rgba(255,255,255,.05);

    font-size: 13px;
}

.msp-right-value-icon {
    width: 24px;

    font-size: 17px;

    text-align: center;
}


/* =========================================================
   LINK SITO MSP
   ========================================================= */

.msp-site-link {
    margin-top: 21px;
}

.msp-site-link a {
    color: #ffffff !important;

    font-size: 12px !important;
    font-weight: 600 !important;

    text-decoration: none !important;
}

.msp-site-link a:hover {
    text-decoration: underline !important;
}


/* =========================================================
   FOOTER
   ========================================================= */

#msp-login-footer {
    position: fixed;

    left: 0;
    right: 0;
    bottom: 0;

    z-index: 100;

    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    background: var(--cui-primary-dark);

    color: rgba(255,255,255,.86);

    font-family: var(--cui-font);

    font-size: 11px;
}

.msp-footer-inner {
    width: calc(100% - 44px);
    max-width: 1420px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

#msp-login-footer a {
    color: #ffffff;

    font-weight: 600;

    text-decoration: none;
}

#msp-login-footer a:hover {
    text-decoration: underline;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1180px) {

    #msp-login-shell {
        max-width: 980px;

        grid-template-columns:
            minmax(320px, 1fr)
            minmax(430px, 500px);

        gap: 28px;
    }

    #msp-login-right {
        display: none;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 800px) {

    #msp-login-page {
        overflow-y: auto;
    }

    #msp-login-shell {
        width: calc(100% - 22px);

        min-height: calc(100vh - 44px);

        display: flex;
        align-items: center;
        justify-content: center;

        margin: 0 auto;

        padding: 12px 0 58px;
    }

    #msp-login-left,
    #msp-login-right {
        display: none;
    }

    #msp-login-center {
        width: 100%;
    }

    #msp-login-card {
        width: 100%;
        max-width: 490px;

        padding: 24px 19px 15px;

        border-radius: 19px;
    }

    .msp-logo-header {
        margin: -24px -19px 18px;

        min-height: 70px;

        padding: 13px 18px;

        border-radius: 19px 19px 0 0;
    }

    .msp-login-logo {
        max-width: 225px !important;
        max-height: 58px !important;
    }

    .msp-login-header {
        margin-bottom: 15px;
    }

    .msp-login-title {
        font-size: 22px;
    }

    .msp-login-subtitle {
        font-size: 12px;
    }

    .msp-native-login {
        gap: 11px;
    }

    .msp-login-input {
        height: 48px !important;

        font-size: 16px !important;
    }

    .msp-login-links {
        flex-direction: column;
        align-items: flex-start;

        gap: 3px;
    }

    .msp-developed-by {
        margin-top: 11px;
        padding-top: 9px;

        gap: 7px;
    }

    .msp-celleno-logo {
        max-width: 105px !important;
        max-height: 28px !important;
    }

    .msp-footer-left {
        display: none;
    }

    .msp-footer-inner {
        width: calc(100% - 20px);

        justify-content: center;

        text-align: center;
    }
}