﻿/* Pagina di login: sfondo "aurora boreale" a sinistra, form a destra */
.login_page {
    width: 100vw;
    height: 100vh;
    display: flex;
    /* il brand occupa lo spazio libero, il form resta ancorato a destra */
    justify-content: space-between;
    align-items: center;
    font-family: 'Exo 2', sans-serif;
    overflow: hidden;
    position: relative;
    background-color: #0b1120;
    isolation: isolate;
}

/* Palette: aurora boreale (smeraldo, acqua, viola) su cielo notturno */
.login_page {
    --lbg-flusso: #34d399;              /* accento: trattino accanto a "Follow Your Order" */
    --color-primary: #0f766e;           /* etichette e link del form, intonati all'aurora */
    --color-primary-hover: #115e59;
}

/* Cielo: dal blu notte quasi nero a un verde scuro vicino all'orizzonte */
.login_page::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 90% 45% at 45% 100%, rgba(16, 185, 129, 0.16), transparent 70%),
        radial-gradient(ellipse 60% 40% at 80% 10%, rgba(76, 29, 149, 0.22), transparent 70%),
        linear-gradient(180deg, #01030a 0%, #020814 40%, #03131b 72%, #062026 100%);
    pointer-events: none;
}

/* Scena: stelle, cometa, nastri dell'aurora, raggi, pianeta, grana, vignetta */
.lbg_aurora {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

/* Stelle su due livelli con tasselli di misura diversa: la ripetizione non si nota */
.lbg_aurora .stelle {
    position: absolute;
    inset: 0;
    -webkit-mask-image: linear-gradient(180deg, #000 35%, transparent 80%);
    mask-image: linear-gradient(180deg, #000 35%, transparent 80%);
}
.lbg_aurora .stelle.lontane {
    background-image:
        radial-gradient(0.8px 0.8px at 10% 20%, #fff, transparent),
        radial-gradient(0.7px 0.7px at 30% 70%, #e0f2fe, transparent),
        radial-gradient(0.9px 0.9px at 55% 15%, #fff, transparent),
        radial-gradient(0.6px 0.6px at 72% 48%, #fff, transparent),
        radial-gradient(0.8px 0.8px at 88% 82%, #ecfdf5, transparent),
        radial-gradient(0.7px 0.7px at 42% 42%, #fff, transparent),
        radial-gradient(0.6px 0.6px at 18% 88%, #fff, transparent),
        radial-gradient(0.8px 0.8px at 95% 30%, #fff, transparent);
    background-size: 283px 283px;
    opacity: .7;
    animation: lbg_brilla 7s ease-in-out infinite alternate;
}
.lbg_aurora .stelle.vicine {
    background-image:
        radial-gradient(1.6px 1.6px at 22% 30%, #fff, transparent),
        radial-gradient(1.3px 1.3px at 64% 12%, #d1fae5, transparent),
        radial-gradient(1.8px 1.8px at 81% 58%, #fff, transparent),
        radial-gradient(1.2px 1.2px at 40% 76%, #e9d5ff, transparent),
        radial-gradient(1.5px 1.5px at 6% 62%, #fff, transparent);
    background-size: 541px 541px;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.8));
    animation: lbg_brilla 4.5s ease-in-out infinite alternate-reverse;
}
@keyframes lbg_brilla { from { opacity: .9; } to { opacity: .35; } }

/* Stelle cadenti: ognuna con posizione, direzione (--ang: la testa luminosa va
   verso sinistra della scia ruotata), lunghezza, distanza e ritmo propri.
   Il volo occupa l'ultimo 10% del ciclo (cicli brevi = stelle veloci) e la
   distanza, in vmax, le porta sempre fuori dallo schermo. */
.lbg_aurora .cometa {
    --top: 14%; --left: 34%; --ang: -20deg; --len: 170px; --dist: 130vmax; --dur: 13s; --delay: 3s;
    position: absolute;
    top: var(--top);
    left: var(--left);
    width: var(--len);
    height: 1.5px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(167, 243, 208, 0.4) 30%, transparent);
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.6));
    opacity: 0;
    transform: rotate(var(--ang));
    animation: lbg_cometa var(--dur) ease-in infinite var(--delay);
}
.lbg_aurora .cometa.c1  { --top: 8%;  --left: 58%; --ang: -25deg; --len: 140px; --dist: 130vmax; --dur: 9s;    --delay: 1s; }
.lbg_aurora .cometa.c2  { --top: 22%; --left: 12%; --ang: 200deg; --len: 110px; --dist: 120vmax; --dur: 11s;   --delay: 5s; }
.lbg_aurora .cometa.c3  { --top: 4%;  --left: 44%; --ang: -55deg; --len: 90px;  --dist: 110vmax; --dur: 7s;    --delay: 2.5s; }
.lbg_aurora .cometa.c4  { --top: 28%; --left: 50%; --ang: 215deg; --len: 210px; --dist: 150vmax; --dur: 17s;   --delay: 8s; }
.lbg_aurora .cometa.c5  { --top: 42%; --left: 8%;  --ang: 160deg; --len: 120px; --dist: 130vmax; --dur: 15s;   --delay: 11s; }
.lbg_aurora .cometa.c6  { --top: 16%; --left: 66%; --ang: -12deg; --len: 160px; --dist: 140vmax; --dur: 21s;   --delay: 3.5s; }
.lbg_aurora .cometa.c7  { --top: 3%;  --left: 24%; --ang: 235deg; --len: 80px;  --dist: 110vmax; --dur: 6.5s;  --delay: 4s; }
.lbg_aurora .cometa.c8  { --top: 34%; --left: 38%; --ang: -35deg; --len: 130px; --dist: 130vmax; --dur: 13.5s; --delay: 9.5s; }
.lbg_aurora .cometa.c9  { --top: 10%; --left: 30%; --ang: 190deg; --len: 100px; --dist: 140vmax; --dur: 19s;   --delay: 14s; }
.lbg_aurora .cometa.c10 { --top: 24%; --left: 62%; --ang: -70deg; --len: 70px;  --dist: 110vmax; --dur: 8s;    --delay: 6s; }
@keyframes lbg_cometa {
    0%, 90% { opacity: 0; transform: rotate(var(--ang)) translateX(0); }
    91%     { opacity: 1; }
    /* resta accesa fino alla fine: la distanza la porta oltre il bordo dello schermo */
    100%    { opacity: 1; transform: rotate(var(--ang)) translateX(calc(-1 * var(--dist))); }
}

/* Nastri dell'aurora: grandi sfumature che ondeggiano */
.lbg_aurora .nastro {
    position: absolute;
    width: 90vw;
    height: 38vh;
    border-radius: 50%;
    filter: blur(80px);
    mix-blend-mode: screen;
    opacity: .6;
    will-change: transform;
}
.lbg_aurora .n1 { left: -20vw; top: 6vh;  background: linear-gradient(90deg, transparent, #10b981 30%, #2dd4bf 60%, transparent); animation: lbg_nastro1 18s ease-in-out infinite alternate; }
.lbg_aurora .n2 { left: 10vw;  top: 22vh; background: linear-gradient(90deg, transparent, #8b5cf6 35%, #22d3ee 70%, transparent); animation: lbg_nastro2 23s ease-in-out infinite alternate; opacity: .5; }
.lbg_aurora .n3 { left: -10vw; top: 40vh; background: linear-gradient(90deg, transparent, #34d399 40%, #a78bfa 75%, transparent); animation: lbg_nastro3 27s ease-in-out infinite alternate; opacity: .4; }
.lbg_aurora .n4 { left: 30vw;  top: -8vh; background: linear-gradient(90deg, transparent, #ec4899 40%, #8b5cf6 70%, transparent); animation: lbg_nastro2 31s ease-in-out infinite alternate-reverse; opacity: .3; }
@keyframes lbg_nastro1 { from { transform: translate(0, 0) rotate(-8deg) scaleY(.6); } to { transform: translate(14vw, 6vh) rotate(6deg) scaleY(1.1); } }
@keyframes lbg_nastro2 { from { transform: translate(0, 0) rotate(10deg) scaleY(.8); } to { transform: translate(-12vw, 4vh) rotate(-6deg) scaleY(.5); } }
@keyframes lbg_nastro3 { from { transform: translate(-6vw, 0) rotate(4deg) scaleY(.5); } to { transform: translate(10vw, -6vh) rotate(-10deg) scaleY(1); } }

/* Raggi verticali sottili, come le "tende" di un'aurora vera */
.lbg_aurora .raggi {
    position: absolute;
    left: -10%;
    right: -10%;
    top: 0;
    height: 72vh;
    background: repeating-linear-gradient(90deg,
        rgba(167, 243, 208, 0.07) 0 1px, transparent 1px 6px,
        rgba(196, 181, 253, 0.05) 6px 8px, transparent 8px 15px);
    -webkit-mask-image: radial-gradient(ellipse 55% 50% at 42% 32%, #000 0%, transparent 72%);
    mask-image: radial-gradient(ellipse 55% 50% at 42% 32%, #000 0%, transparent 72%);
    mix-blend-mode: screen;
    animation: lbg_raggi 38s ease-in-out infinite alternate;
}
@keyframes lbg_raggi { from { transform: translateX(-3%) skewX(-4deg); } to { transform: translateX(4%) skewX(5deg); } }

/* Scena in basso: "hub" (piattaforma con i nodi) oppure "terra" (globo).
   Si sceglie con data-scena su .lbg_aurora. */
.lbg_aurora[data-scena="hub"] #lbg_terra,
.lbg_aurora[data-scena="hub"] .pianeta,
.lbg_aurora[data-scena="terra"] #lbg_hub { display: none; }
#lbg_hub {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* TEMPORANEO: scelta tra le due scene finche' non se ne tiene una */
.lbg_scelta {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 50;
    display: flex;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}
.lbg_scelta button {
    padding: 6px 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    font: 600 12.5px 'Exo 2', sans-serif;
    cursor: pointer;
}
.lbg_scelta button:hover { background: rgba(255, 255, 255, 0.08); }
.lbg_scelta button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.92); color: #0f172a; }
.lbg_scelta button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 768px) {
    .lbg_scelta { left: 50%; transform: translateX(-50%); bottom: 12px; }
}

/* La Terra vista dall'orbita. Il globo (continenti e luci delle citta') e'
   disegnato da _login_scena.js nel canvas #lbg_terra, con centro e raggio letti
   da .pianeta; .pianeta, trasparente, ci mette sopra atmosfera e alone. */
#lbg_terra {
    position: absolute;
    left: 0;
    width: 100%;
    /* top e height li imposta lo script (dalla cima del pianeta al fondo) */
}
.lbg_aurora .pianeta {
    position: absolute;
    left: 42%;
    top: 66vh;
    width: max(130vw, 1300px);
    aspect-ratio: 1;
    transform: translateX(-50%);
    border-radius: 50%;
    /* foschia dell'atmosfera vista dentro il bordo + alone fuori */
    box-shadow:
        inset 0 18px 40px -10px rgba(45, 212, 191, 0.45),
        inset 0 0 90px 4px rgba(1, 6, 10, 0.55),
        0 0 6px 1px rgba(167, 243, 208, 0.55),
        0 0 40px 6px rgba(45, 212, 191, 0.30),
        0 0 120px 30px rgba(16, 185, 129, 0.18),
        0 0 220px 60px rgba(139, 92, 246, 0.10);
}
/* Linea sottile dell'atmosfera, piu' intensa al centro */
.lbg_aurora .pianeta::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(closest-side, transparent 99.2%, rgba(204, 251, 241, 0.9) 99.7%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 45%, #000 55%, transparent 70%);
    mask-image: linear-gradient(90deg, transparent 30%, #000 45%, #000 55%, transparent 70%);
}
@media (max-width: 768px) {
    .lbg_aurora .pianeta { top: 72vh; left: 50%; width: 190vw; }
}

/* Grana leggera (rumore SVG) per togliere l'effetto "digitale" delle sfumature */
.lbg_aurora .grana {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: .09;
    mix-blend-mode: overlay;
}

/* Vignetta: bordi piu' scuri, lo sguardo va al centro */
.lbg_aurora .vignetta {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 85% 80% at 40% 42%, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

@media (prefers-reduced-motion: reduce) {
    .lbg_aurora .stelle, .lbg_aurora .cometa, .lbg_aurora .nastro, .lbg_aurora .raggi,
    .login_button.login {
        animation: none;
    }
}

.image_container {
    /* prende lo spazio residuo senza comprimere il margine del form */
    min-width: 0;
    height: 100%;
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Nessuno sfondo proprio: lascia trasparire il gradiente animato della pagina */
    background: transparent;
    position: relative;
    /* le scene sfondano di proposito i margini: qui si tagliano */
    overflow: hidden;
}

.image_container h4 {
    font-size: 3.2rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    letter-spacing: 6px;
    margin: 0;
    padding: 0;
}

.login_container {
    /* si adatta al contenuto invece di riempire tutta la colonna */
    width: auto;
    max-width: 490px;
    /* altezza piena: cosÃ¬ i 24px di margine valgono su tutti e quattro i lati */
    height: calc(100% - 48px);
    background-color: white;
    padding: 34px 32px;
    margin: 24px;
    display: flex;
    /* non si comprime: il margine resta uguale a destra */
    flex: 0 0 auto;
    justify-content: center;
    align-items: center;
    border-radius: 24px;
    border: none;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
    overflow-y: auto;
}

.login_form {
    background-color: white;
    /* larghezza fissa del contenuto: il pannello resta largo, i campi no */
    width: 380px;
    max-width: 100%;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login_inputs {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 20px;
}

.login_input_container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.login_input_container h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-text-darker);
    margin: 0;
}

.login_input_container h5 {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-text-muted);
    margin: 0;
}

.login_input_container label {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-left: 5px;
}

.login_input_container input {
    border: none;
    /* grigio freddo appena virato, non azzurro */
    background-color: #eef0f4;
    padding: 13px 20px;
    border-radius: var(--radius-md);
    width: 100%;
    outline: none;
    font-size: 1rem;
    color: var(--color-text-darker, #0f172a);
    transition: background-color 0.25s;
}

.login_input_container input::placeholder {
    color: #9aa1ad;
}

.login_input_container input:focus {
    /* nessun bordo/anello: il focus si legge dal solo cambio di tono */
    background-color: #e4e8ee;
    box-shadow: none;
}

.login_buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.login_button_row {
    display: flex;
    flex-direction: row;
    gap: 12px;
    width: 100%;
}

.login_button_row .login_button {
    flex: 1;
}

.login_button {
    border: none;
    width: 100%;
    height: 48px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
}

/* Pulsante Login con i colori dell'aurora che scorrono piano (toni scuri:
   il testo bianco resta leggibile su tutto il gradiente) */
.login_button.login {
    position: relative;
    overflow: hidden;
    color: white;
    background: linear-gradient(100deg,
        #065f46, #0f766e, #0e7490, #5b21b6, #0f766e, #065f46);
    background-size: 260% 100%;
    background-position: 0% 50%;
    animation: vb_button_flow 12s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
    box-shadow: 0 8px 22px rgba(16, 185, 129, 0.28), 0 2px 6px rgba(2, 6, 23, 0.3);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Riflesso che attraversa il pulsante al passaggio del mouse */
.login_button.login::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 50%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: skewX(-20deg);
    transition: left .6s ease;
    pointer-events: none;
}

.login_button.login:hover::after { left: 120%; }

@keyframes vb_button_flow {
    from { background-position: 0% 50%; }
    to   { background-position: 100% 50%; }
}

.login_button.login:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(45, 212, 191, 0.38), 0 3px 8px rgba(2, 6, 23, 0.3);
}

.login_button.login:focus-visible {
    outline: 2px solid #2dd4bf;
    outline-offset: 3px;
}

.login_button.secondary {
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    border: 1px solid var(--color-border);
}

.login_button.secondary:hover {
    background-color: var(--color-bg-gray);
}

#forgotPasswordLink {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

#forgotPasswordLink a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

/* ========================================= */
/* === Mobile Responsiveness === */
/* ========================================= */

@media (max-width: 992px) {
    .image_container h4 {
        font-size: 2.4rem;
        letter-spacing: 4px;
    }
}

@media (max-width: 768px) {
    .login_page {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        /* verticale libero (la pagina si allunga col form), orizzontale
           tagliato: il ::before ha inset -12% e sborda di proposito, con
           overflow visible diventava scroll laterale. */
        overflow-y: visible;
        overflow-x: clip;
        background-attachment: fixed;
    }

    .image_container {
        flex: none;
        height: 120px;
        margin: 0;
    }

    .image_container h4 {
        font-size: 1.9rem;
        letter-spacing: 3px;
    }

    .login_container {
        flex: 1;
        padding: 26px 18px;
        margin: 16px;
        height: auto;
        align-items: flex-start;
        border-radius: 20px;
        /* i 16px di margine per lato vanno sottratti, non aggiunti: senza
           questo il pannello misura 412+32 e la pagina scorre in orizzontale */
        width: auto;
        max-width: calc(100% - 32px);
    }

    .login_form {
        max-width: 100%;
    }

    .login_input_container h1 {
        font-size: 1.6rem;
    }
}
/* ===== TOTP / 2FA steps ===== */
.totp_steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.totp_step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #475569;
}

.totp_step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #1e293b;
    color: white;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.totp_qr_box {
    display: flex;
    justify-content: center;
    padding: 16px;
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    margin-bottom: 4px;
}

.totp_qr_box img {
    width: 220px;
    height: 220px;
    display: block;
    image-rendering: -webkit-optimize-contrast;
}

.totp_code_input {
    letter-spacing: 0.35em;
    font-size: 1.5rem !important;
    text-align: center;
    font-weight: 700;
}

.totp_setup_instructions {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.totp_fallback_link {
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
    display: block;
    margin-top: -8px;
}

.totp_fallback_link a {
    color: #64748b;
    text-decoration: underline;
    cursor: pointer;
}

.totp_fallback_link a:hover {
    color: #1e293b;
}

/* ===== Toggle visibilitÃ  password ===== */
.login_pw_wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.login_pw_wrapper input {
    width: 100%;
    padding-right: 44px;
}

.login_pw_toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.login_pw_toggle:hover { color: #1e293b; }

.login_pw_toggle svg {
    width: 18px;
    height: 18px;
}

/* ===== Button loading state ===== */
.login_button.btn_loading {
    opacity: 0.82;
    cursor: not-allowed;
    pointer-events: none;
}

.btn_spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btn_spin 0.65s linear infinite;
    flex-shrink: 0;
}

.login_button.secondary .btn_spinner {
    border-color: rgba(0, 0, 0, 0.15);
    border-top-color: var(--color-primary, #1d4ed8);
}

@keyframes btn_spin {
    to { transform: rotate(360deg); }
}

/* Reset password message */
.reset_message{margin-top:10px;padding:10px 12px;border-radius:8px;font-size:13px;line-height:1.4;text-align:center;}
.reset_message.is-ok{background:#ecfdf5;color:#047857;border:1px solid #6ee7b7;}
.reset_message.is-err{background:#fef2f2;color:#b91c1c;border:1px solid #fca5a5;}

/* Password policy hint box */
.password_policy_box{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:10px 12px;}
.ppb_title{font-size:11px;font-weight:700;color:#0f172a;text-transform:uppercase;letter-spacing:.06em;margin-bottom:6px;}
.ppb_list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:4px;}
.ppb_list li{font-size:12px;color:#64748b;line-height:1.35;display:flex;gap:8px;align-items:flex-start;}
.ppb_list li i{flex-shrink:0;margin-top:2px;font-size:10px;color:#cbd5e1;}
.ppb_list li.is-ok,
.ppb_list li.is-ok strong{color:#059669;}
.ppb_list li.is-ok i{color:#059669;font-size:12px;}
.ppb_list code{background:#fff;border:1px solid #e2e8f0;border-radius:4px;padding:0 4px;font-size:11px;}

/* ===== Descrizione commerciale sotto il titolo ===== */
.login_tagline {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-text-muted, #64748b);
    margin: 2px 0 0;
}

.login_tagline strong {
    color: var(--color-text-darker, #0f172a);
    font-weight: 700;
}

.login_highlights {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.login_highlights li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--color-text-muted, #64748b);
}

.login_highlights li i {
    font-size: 0.72rem;
    color: #14a06a;
}

/* ===== Claim sul pannello colorato ===== */
.brand_block {
    display: flex;
    flex-direction: column;
    /* testo allineato a sinistra, animazione centrata sotto */
    align-items: flex-start;
    gap: 14px;
    padding: 0 24px;
    text-align: left;
    max-width: 560px;
    width: 100%;
}

.brand_claim {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.05rem;
    font-weight: 500;
    max-width: 420px;
    line-height: 1.55;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    margin: 0;
}

@media (max-width: 768px) {
    .brand_claim { display: none; }
    .brand_block { gap: 0; padding: 0 16px; }
    .login_highlights { display: none; }
}


/* Placeholder a pallini della password: leggermente ingrandito
   e distanziato, altrimenti risulta minuto rispetto al testo. */
#password::placeholder {
    font-size: 1.15rem;
    letter-spacing: 0.12em;
    line-height: 1;
    vertical-align: middle;
}

/* =========================================
   Pannello brand Pratiche Business: solo testo, sopra lo sfondo illustrato
   ========================================= */

.login_page[data-tema="pratiche"] .brand_block {
    max-width: 620px;
    padding: 40px 56px;
    gap: 12px;
}

/* Testo in alto a sinistra: l'animazione occupa il resto dello spazio */
@media (min-width: 769px) {
    .login_page[data-tema="pratiche"] .image_container {
        justify-content: flex-start;
        align-items: flex-start;
        padding-top: 6vh;
    }
}

.brand_kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.brand_kicker::before {
    content: '';
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--lbg-flusso);
}

/* Marchio "BIZZHUB" in due toni: BIZZ chiaro, HUB nel verde dell'aurora */
.login_page[data-tema="pratiche"] .image_container h4 {
    font-size: clamp(3.2rem, 7vw, 6.4rem);
    line-height: 0.95;
    letter-spacing: 0.05em;
    background: linear-gradient(180deg, #ffffff 30%, #d1fae5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    white-space: nowrap;
    filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.35));
}
.login_page[data-tema="pratiche"] .image_container h4 .brand_hub {
    background: linear-gradient(100deg, #6ee7b7 0%, #2dd4bf 60%, #67e8f9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.login_page[data-tema="pratiche"] .brand_claim {
    max-width: 440px;
    font-size: 1.15rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.78);
    text-shadow: none;
}

@media (max-width: 1200px) {
    .login_page[data-tema="pratiche"] .brand_block {
        padding: 32px 36px;
    }
}

@media (max-width: 768px) {
    .brand_kicker { display: none; }
    .login_page[data-tema="pratiche"] .brand_block { align-items: center; text-align: center; margin-bottom: 0; }
}
