/* ===============================================
   login.css — Stili specifici per le viste Login 
   =============================================== */

/* evita che il captcha si sovrapponga al footer del wizard */
.grecaptcha-badge {
    bottom: 76px !important;
}

@media (max-width: 576px) {
    .grecaptcha-badge {
        visibility: hidden !important;
    }
}

/* reCAPTCHA branding testuale (visibile solo su mobile dove il badge è nascosto) */
.reg-recaptcha-branding {
    display: none;
}

@media (max-width: 576px) {
    .reg-recaptcha-branding {
        display: block;
        text-align: center;
        font-size: 0.7rem;
        color: #999999;
        padding: 8px 16px;
        margin-top: 8px;
    }

        .reg-recaptcha-branding a {
            color: #888888;
            text-decoration: underline;
        }
}

/* --- Wizard container (Step 1-6) --- */
/* --- Prevent double scrollbar in login layout (only on desktop where sidebar is side-by-side) --- */
@media (min-width: 992px) {
    html:has(.reg-wizard) {
        overflow: hidden;
        height: 100vh;
        margin: 0;
    }

        html:has(.reg-wizard) body {
            height: 100vh;
            margin: 0;
        }
}

.reg-wizard {
    display: flex;
    flex-direction: row;
    height: 100vh;
    overflow: hidden;
}

/* --- Sidebar (pannello sinistro) --- */
.reg-sidebar {
    background-color: #f5f5f7; /* sfondo chiaro */
    color: #333333;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 32px;
    min-width: 0;
    position: relative;
    overflow: hidden;
}

    /* Immagine di sfondo con bassa opacità su sfondo chiaro */
    .reg-sidebar::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: url('/images/sfondo.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        opacity: 0.10; /* immagine leggera sullo sfondo chiaro */
        pointer-events: none;
        z-index: 0;
    }

    /* Assicura che il contenuto sia sopra lo sfondo */
    .reg-sidebar > * {
        position: relative;
        z-index: 1;
    }

    /* Contenitore del testo senza sfondo */
    .reg-sidebar > div:first-child {
        padding: 24px;
    }

.reg-sidebar-logo {
    margin-bottom: 24px;
}

    .reg-sidebar-logo img {
        max-height: 60px;
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    }

.reg-sidebar-title {
    color: #0a0a1a; /* testo molto scuro */
    font-weight: 700;
    font-size: 1.6rem;
    line-height: 1.5;
    margin-bottom: 32px;
}

/* Step list - Timeline style */
.reg-sidebar-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.reg-sidebar-step {
    display: flex;
    align-items: center;
    padding: 12px 0;
    font-size: 1rem;
    color: #888888;
    transition: color 0.2s;
    position: relative;
    padding-left: 32px;
}

    /* Linea verticale di connessione */
    .reg-sidebar-step::before {
        content: "";
        position: absolute;
        left: 8px;
        top: 28px;
        width: 2px;
        height: calc(100% - 4px);
        background-color: #d0d0d0;
        transition: background-color 0.2s;
    }

    /* Ultimo step: niente linea sotto */
    .reg-sidebar-step:last-child::before {
        display: none;
    }

    /* Pallino/cerchio dello step */
    .reg-sidebar-step::after {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 18px;
        height: 18px;
        border-radius: 50%;
        border: 2px solid #d0d0d0;
        background-color: #f5f5f7;
        transition: all 0.2s;
        z-index: 1;
    }

    /* Step completato */
    .reg-sidebar-step.completed {
        color: #333333;
        font-weight: 500;
    }

        .reg-sidebar-step.completed::before {
            background-color: #ED008E;
        }

        .reg-sidebar-step.completed::after {
            border-color: #ED008E;
            background-color: #ED008E;
            /* Checkmark interno */
            content: "✓";
            color: #ffffff;
            font-size: 0.65rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
        }

    /* Step attivo */
    .reg-sidebar-step.active {
        color: #0a0a1a;
        font-weight: 700;
    }

        .reg-sidebar-step.active::after {
            border-color: #ED008E;
            background-color: #ffffff;
            box-shadow: 0 0 0 4px rgba(237, 0, 142, 0.15);
        }

        /* Pallino interno per step attivo */
        .reg-sidebar-step.active::after {
            content: "";
            background: radial-gradient(circle, #ED008E 40%, #ffffff 40%);
            border-color: #ED008E;
        }

/* Manage Cookies link */
.reg-sidebar-footer {
    margin-top: auto;
    padding-top: 24px;
    display: flex !important;
    justify-content: space-evenly;
}

    .reg-sidebar-footer a {
        color: #666666;
        text-decoration: none;
        font-size: 0.85rem;
    }

        .reg-sidebar-footer a:hover {
            color: #1a1a2e;
            text-decoration: underline !important;
        }

/* --- Content panel (pannello destro) --- */
.reg-content {
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.reg-content-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px 40px;
    overflow-y: auto;
}

.reg-content-inner {
    width: 100%;
    max-width: 560px;
}

    .reg-content-inner .row + .row {
        margin-top: 24px;
    }

.reg-content-title {
    font-weight: 700;
    font-size: 1.6rem;
    margin-bottom: 8px;
    color: #1a1a2e;
}

.reg-content-subtitle {
    color: #888888;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

/* --- Etichette esterne per i controlli --- */
.reg-field-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #555555;
    margin-bottom: 6px;
}

/* --- Syncfusion input controls styling (outlined) --- */
.reg-content-inner .e-input-group,
.reg-content-inner .e-input-group.e-control-wrapper {
    border: 1.5px solid #d0d0d0 !important;
    border-radius: 8px !important;
    padding: 10px 12px !important;
    background-color: #ffffff !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    font-size: 1rem !important;
}

    .reg-content-inner .e-input-group input,
    .reg-content-inner .e-input-group.e-control-wrapper input,
    .reg-content-inner .e-input-group .e-input,
    .reg-content-inner .e-input-group.e-control-wrapper .e-input {
        font-size: 1rem !important;
    }

    .reg-content-inner .e-input-group:hover,
    .reg-content-inner .e-input-group.e-control-wrapper:hover {
        border-color: #a0a0a0 !important;
    }

    .reg-content-inner .e-input-group.e-input-focus,
    .reg-content-inner .e-input-group.e-control-wrapper.e-input-focus {
        border-color: #ED008E !important;
        box-shadow: 0 0 0 3px rgba(237, 0, 142, 0.1) !important;
    }

    /* Rimuovi il bordo inferiore di default */
    .reg-content-inner .e-input-group::before,
    .reg-content-inner .e-input-group::after,
    .reg-content-inner .e-input-group.e-control-wrapper::before,
    .reg-content-inner .e-input-group.e-control-wrapper::after {
        display: none !important;
    }

/* Nascondi la label flottante di Syncfusion */
.reg-content-inner .e-float-input.e-input-group label.e-float-text,
.reg-content-inner .e-float-input.e-control-wrapper label.e-float-text {
    display: none !important;
}

/* --- Campo con icona sovrapposta (es. VAT con lente) --- */
.reg-field-with-icon {
    position: relative;
}

    .reg-field-with-icon .e-input-group,
    .reg-field-with-icon .e-input-group.e-control-wrapper {
        padding-right: 40px !important;
    }

    .reg-field-with-icon .reg-field-icon {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: #888888;
        cursor: pointer;
        z-index: 2;
        transition: color 0.2s;
    }

        .reg-field-with-icon .reg-field-icon:hover {
            color: #ED008E;
        }

/* --- Combobox country dropdown styling (allineamento a sinistra) --- */
.e-popup.e-ddl:not(.reg-lang-popup) .e-list-item,
.e-popup.e-ddl:not(.reg-lang-popup) .e-dropdownbase .e-list-item {
    text-align: left !important;
    justify-content: flex-start !important;
    padding-left: 16px !important;
}

/* --- Chip grid (Step 2, 3, 5) --- */
.reg-chip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.reg-chip {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px 12px;
    cursor: pointer;
    text-align: center;
    position: relative;
    background: #ffffff;
    transition: border-color 0.2s, background-color 0.2s;
    user-select: none;
}

    .reg-chip:hover {
        border-color: #c0c0c0;
    }

    .reg-chip.reg-selected {
        border-color: #ED008E !important;
        background-color: #fef0f8 !important;
    }

        .reg-chip.reg-selected::after {
            content: "\2713" !important; /* ✓ */
            position: absolute !important;
            top: 0 !important;
            right: 0 !important;
            width: 28px !important;
            height: 28px !important;
            background-color: #ED008E !important;
            color: #ffffff !important;
            font-size: 0.7rem !important;
            font-weight: 700 !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            border-radius: 0 10px 0 10px !important;
        }

.reg-chip-icon {
    display: block;
    font-size: 1.8rem;
    margin-bottom: 6px;
}

.reg-chip-label {
    font-size: 0.85rem;
    color: #333333;
    font-weight: 500;
}

/* --- Objectives list (Step 6) --- */
.reg-obj-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.reg-obj-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    background: #ffffff;
    transition: border-color 0.2s, background-color 0.2s;
    position: relative;
}

    .reg-obj-item:hover {
        border-color: #c0c0c0;
    }

    .reg-obj-item.reg-selected {
        border-color: #ED008E;
        background-color: #fef0f8;
    }

        .reg-obj-item.reg-selected::after {
            content: "\2713"; /* ✓ */
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 0.9rem;
            color: #ED008E;
            font-weight: 700;
        }

    .reg-obj-item label {
        margin-left: 10px;
        cursor: pointer;
        font-size: 0.9rem;
        color: #333333;
    }

/* --- Error container (sopra il footer) --- */
.reg-error-container {
    padding: 12px 40px;
    background-color: #fef2f2;
    border-top: 1px solid #fecaca;
}

.reg-error-message {
    color: #dc2626;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 500;
}

    .reg-error-message:empty {
        display: none;
    }

/* --- PIN boxes (2FA SMS) --- */
.reg-pin-boxes {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.reg-pin-box {
    width: 44px !important;
    height: 52px !important;
    text-align: center;
    padding: 2px;
    font-size: 1.25rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
}

    .reg-pin-box:focus {
        border-color: #ED008E;
        box-shadow: 0 0 0 2px rgba(237, 0, 142, 0.15);
    }

/* --- Footer (barra pulsanti) --- */
.reg-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 40px;
    border-top: 1px solid #e0e0e0;
    background-color: #ffffff;
}

.reg-footer-left {
    flex: 1;
}

.reg-footer-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.reg-btn-back {
    color: #888888;
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

    .reg-btn-back:hover {
        color: #333333;
    }

.reg-btn-skip {
    color: #888888;
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

    .reg-btn-skip:hover {
        color: #333333;
    }

.reg-btn-next,
.reg-btn-start {
    background-color: #ED008E;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 10px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
}

    .reg-btn-next:hover,
    .reg-btn-start:hover {
        background-color: #d4007e;
        text-decoration: none;
    }

/* --- Header (logo + language selector in content panel) --- */
.reg-content-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 16px 40px 0 40px;
    gap: 16px;
}

    /* Quando c'è il logo o il CTA registrazione a sinistra, usa space-between */
    .reg-content-header:has(.reg-content-logo),
    .reg-content-header:has(.reg-register-cta) {
        justify-content: space-between;
    }

.reg-content-logo {
    display: flex;
    flex-direction: column;
}

    .reg-content-logo img {
        max-height: 36px;
    }

    .reg-content-logo small {
        font-size: 0.7rem;
        color: #999999;
        opacity: 0.6;
        margin-top: 2px;
    }

.reg-content-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* --- Language dropdown --- */
.reg-lang-dropdown.e-ddl {
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

    .reg-lang-dropdown.e-ddl:hover {
        border-color: #c0c0c0 !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
    }

    .reg-lang-dropdown.e-ddl .e-input-group {
        border: none !important;
        background: transparent !important;
    }

    .reg-lang-dropdown.e-ddl .e-input-group-icon {
        display: none !important;
    }

.reg-lang-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 6px;
    width: 100%;
}

    .reg-lang-value img {
        width: 28px;
        height: 19px;
        border: 1px solid #d0d0d0;
        border-radius: 3px;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        object-fit: cover;
    }

    .reg-lang-value .e-icons {
        font-size: 8px;
        color: #999999;
    }

.reg-lang-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
    width: 100%;
    transition: background-color 0.15s;
}

    .reg-lang-item:hover {
        background-color: #f5f5f5;
    }

    .reg-lang-item img {
        width: 32px;
        height: 21px;
        border: 1px solid #d0d0d0;
        border-radius: 3px;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        object-fit: cover;
        display: block;
        margin: 0 auto;
    }

/* Popup styling per language dropdown - centra gli item nella lista */
.e-popup .e-list-item .reg-lang-item {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 12px 0 !important;
    width: 100% !important;
}

    .e-popup .e-list-item .reg-lang-item img {
        display: block !important;
        margin: 0 auto !important;
    }

/* Popup container styling */
.e-popup.e-ddl {
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid #e0e0e0 !important;
    overflow: hidden !important;
}

.reg-login-link {
    font-size: 0.9rem;
    color: #666666;
}

    .reg-login-link a {
        font-weight: 600;
    }

/* --- Call-to-action registrazione (UserLogin header) --- */
.reg-register-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #555555;
    background-color: #fef0f8;
    border: 1.5px solid #ED008E;
    border-radius: 8px;
    padding: 8px 16px;
    transition: background-color 0.2s, box-shadow 0.2s;
}

    .reg-register-cta:hover {
        background-color: #fde4f2;
        box-shadow: 0 2px 8px rgba(237, 0, 142, 0.15);
    }

    .reg-register-cta a {
        color: #ED008E;
        font-weight: 700;
        text-decoration: none;
    }

        .reg-register-cta a:visited,
        .reg-register-cta a:active,
        .reg-register-cta a:focus {
            color: #ED008E;
        }

        .reg-register-cta a:hover {
            text-decoration: underline;
            color: #d4007e;
        }

/* --- SSO buttons (Step 0) --- */
.reg-sso-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.reg-sso-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 24px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    text-decoration: none;
    color: #333333;
    font-weight: 600;
    font-size: 0.95rem;
    transition: border-color 0.2s, background-color 0.2s;
}

    .reg-sso-btn:hover {
        border-color: #c0c0c0;
        background-color: #f5f5f5;
    }

    .reg-sso-btn img {
        height: 24px;
        width: 24px;
    }

    /* Icona Font Awesome al posto di img (es. password) */
    .reg-sso-btn .reg-sso-icon {
        font-size: 1.2rem;
        width: 24px;
        text-align: center;
        color: #ED008E;
    }

/* --- Divider (or) --- */
.reg-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
}

    .reg-divider::before,
    .reg-divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background-color: #e0e0e0;
    }

    .reg-divider span {
        padding: 0 16px;
        color: #888888;
        font-size: 0.85rem;
        text-transform: lowercase;
    }

/* --- Help link --- */
.reg-help-link {
    margin-top: 24px;
    text-align: center;
}

    .reg-help-link a {
        color: #666666;
        font-size: 0.85rem;
        text-decoration: none;
    }

        .reg-help-link a:hover {
            color: #333333;
            text-decoration: underline;
        }

/* Inline help link (e.g. Forgotten password) */
.reg-help-link-inline {
    color: #666666;
    font-size: 0.85rem;
    text-decoration: none;
}

    .reg-help-link-inline:hover {
        color: #333333;
        text-decoration: underline;
    }

/* --- Sidebar message (SSO) --- */
.reg-sidebar-message {
    margin-top: 24px;
    padding: 16px;
    border-radius: 8px;
    font-size: 0.9rem;
}

    .reg-sidebar-message .text-danger {
        color: #dc3545;
    }

    .reg-sidebar-message .text-success {
        color: #28a745;
    }

/* --- Benefits list (Step 0) --- */
.reg-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

    .reg-benefits-list li {
        position: relative;
        padding-left: 28px;
        margin-bottom: 12px;
        font-size: 1.05rem;
        color: #333333;
        line-height: 1.5;
    }

        .reg-benefits-list li::before {
            content: "✓";
            position: absolute;
            left: 0;
            top: 0;
            color: #ED008E;
            font-weight: 700;
            font-size: 1.1rem;
        }

/* --- Company logos (Step 0) --- */
.reg-company-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 20px 24px;
    margin-top: auto;
    margin-bottom: 16px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
}

    .reg-company-logos img {
        max-height: 36px;
        max-width: 110px;
        width: auto;
        height: auto;
        object-fit: contain;
        opacity: 0.85;
        transition: opacity 0.3s, transform 0.3s;
    }

        .reg-company-logos img:hover {
            opacity: 1;
            transform: scale(1.05);
        }

/* --- Responsive --- */

/* Tablet e schermi medi (fino a 991px) */
@media (max-width: 991px) {
    .reg-wizard {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .reg-sidebar {
        padding: 24px 20px;
        min-height: auto;
    }

    /* Nascondi la lista degli step nella sidebar su tablet/mobile */
    .reg-sidebar-steps {
        display: none;
    }

    .reg-sidebar-title {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .reg-benefits-list {
        margin-bottom: 16px;
    }

        .reg-benefits-list li {
            font-size: 0.95rem;
            margin-bottom: 8px;
        }

    .reg-company-logos {
        gap: 16px;
        padding: 16px 20px;
        margin-bottom: 12px;
    }

        .reg-company-logos img {
            max-height: 28px;
            max-width: 85px;
        }

    .reg-content {
        flex: 1;
        min-height: 0;
    }

    .reg-content-body {
        padding: 32px 20px;
        overflow-y: auto;
    }

    .reg-content-inner {
        max-width: 100%;
    }

    .reg-footer {
        padding: 16px 20px;
    }

    .reg-chip-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reg-content-header {
        padding: 12px 20px 0 20px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .reg-content-header-actions {
        gap: 8px;
    }

    .reg-content-logo img {
        max-height: 28px;
    }

    .reg-sso-buttons {
        gap: 8px;
    }

    .reg-sso-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    /* Checkbox row su tablet */
    .reg-content-inner .row > .col-1 {
        flex: 0 0 auto;
        width: auto;
        min-width: 40px;
    }

    .reg-content-inner .row > .col-11 {
        flex: 1;
        width: auto;
    }
}

/* Mobile piccoli (fino a 576px) */
@media (max-width: 576px) {
    .reg-wizard {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    /* Sidebar compatta su mobile */
    .reg-sidebar {
        padding: 16px;
        min-height: auto;
    }

    .reg-sidebar-logo img {
        max-height: 40px;
    }

    .reg-sidebar-title {
        font-size: 1rem;
        margin-bottom: 16px;
        line-height: 1.4;
    }

    .reg-sidebar-footer {
        flex-direction: column;
        gap: 8px;
        align-items: center;
        padding-top: 16px;
    }

        .reg-sidebar-footer a {
            font-size: 0.75rem;
        }

    .reg-benefits-list {
        margin-bottom: 12px;
    }

        .reg-benefits-list li {
            font-size: 0.85rem;
            margin-bottom: 6px;
            padding-left: 24px;
        }

            .reg-benefits-list li::before {
                font-size: 0.95rem;
            }

    .reg-company-logos {
        gap: 12px;
        padding: 12px 16px;
        margin-bottom: 8px;
    }

        .reg-company-logos img {
            max-height: 22px;
            max-width: 70px;
        }

    /* Content panel su mobile */
    .reg-content-header {
        padding: 12px 16px 0 16px;
    }

    .reg-content-logo img {
        max-height: 24px;
    }

    .reg-content-header-actions {
        gap: 8px;
    }

    .reg-register-cta {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .reg-login-link {
        font-size: 0.8rem;
    }

    .reg-content-body {
        padding: 24px 16px;
    }

    .reg-content-inner {
        max-width: 100%;
    }

        .reg-content-inner .row + .row {
            margin-top: 16px;
        }

    .reg-content-title {
        font-size: 1.3rem;
        margin-bottom: 6px;
    }

    .reg-content-subtitle {
        font-size: 0.85rem;
        margin-bottom: 16px;
    }

    /* Form fields su mobile */
    .reg-field-label {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }

    .reg-content-inner .e-input-group,
    .reg-content-inner .e-input-group.e-control-wrapper {
        padding: 8px 10px !important;
        font-size: 0.9rem !important;
    }

        .reg-content-inner .e-input-group input,
        .reg-content-inner .e-input-group.e-control-wrapper input,
        .reg-content-inner .e-input-group .e-input,
        .reg-content-inner .e-input-group.e-control-wrapper .e-input {
            font-size: 0.9rem !important;
        }

    /* Due colonne diventano una su mobile */
    .reg-content-inner .col-lg-6 {
        margin-bottom: 12px;
    }

    /* Chip grid: 2 colonne su mobile */
    .reg-chip-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .reg-chip {
        padding: 14px 8px;
        border-radius: 10px;
    }

    .reg-chip-icon {
        font-size: 1.5rem;
        margin-bottom: 4px;
    }

    .reg-chip-label {
        font-size: 0.75rem;
    }

    /* Objectives list su mobile */
    .reg-obj-item {
        padding: 12px 14px;
        border-radius: 8px;
        margin-bottom: 8px;
    }

        .reg-obj-item label {
            font-size: 0.85rem;
            margin-left: 8px;
        }

    /* SSO buttons su mobile */
    .reg-sso-buttons {
        gap: 10px;
        margin-bottom: 16px;
    }

    .reg-sso-btn {
        padding: 12px 16px;
        font-size: 0.85rem;
        gap: 10px;
    }

        .reg-sso-btn img {
            height: 20px;
            width: 20px;
        }

    .reg-divider {
        margin: 16px 0;
    }

        .reg-divider span {
            font-size: 0.8rem;
            padding: 0 12px;
        }

    /* Checkbox rows su mobile */
    .reg-content-inner .row > .col-1 {
        flex: 0 0 auto;
        width: auto;
        min-width: 32px;
        padding: 0 !important;
    }

    .reg-content-inner .row > .col-11 {
        flex: 1;
        width: auto;
        padding-left: 4px !important;
    }

        .reg-content-inner .row > .col-11 h6 small {
            font-size: 0.75rem;
            line-height: 1.4;
        }

    /* Error container su mobile */
    .reg-error-container {
        padding: 10px 16px;
    }

    .reg-error-message {
        font-size: 0.85rem;
    }

    /* Footer su mobile */
    .reg-footer {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .reg-footer-left {
        flex: 0 0 auto;
    }

    .reg-footer-right {
        flex: 1;
        justify-content: flex-end;
        gap: 12px;
    }

    .reg-btn-back,
    .reg-btn-skip {
        font-size: 0.85rem;
    }

    .reg-btn-next,
    .reg-btn-start {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    /* Help link su mobile */
    .reg-help-link {
        margin-top: 16px;
    }

        .reg-help-link a {
            font-size: 0.8rem;
        }
}

/* Mobile molto piccoli (fino a 375px) */
@media (max-width: 375px) {
    .reg-sidebar {
        padding: 12px;
    }

    .reg-sidebar-title {
        font-size: 0.9rem;
    }

    .reg-content-body {
        padding: 20px 12px;
    }

    .reg-content-title {
        font-size: 1.15rem;
    }

    /* Chip grid: 1 colonna su schermi molto piccoli per alcuni step */
    .reg-chip-grid {
        gap: 6px;
    }

    .reg-chip {
        padding: 12px 6px;
    }

    .reg-chip-icon {
        font-size: 1.3rem;
    }

    .reg-chip-label {
        font-size: 0.7rem;
    }

    .reg-footer {
        padding: 10px 12px;
    }

    .reg-btn-next,
    .reg-btn-start {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .reg-sso-btn {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
}

/* ===============================================
   UserLogin — Immagine custom nella sidebar
   =============================================== */

/* Sidebar full-image mode: l'immagine custom riempie tutto lo spazio, senza logo e company logos */

/* Nascondi lo sfondo decorativo (sfondo.jpg) quando c'è l'immagine custom */
.reg-sidebar-fullimage::before {
    display: none;
}

/* Sfondo neutro: l'immagine custom definisce il proprio aspetto */
.reg-sidebar-fullimage {
    background-color: #ffffff;
    padding: 0;
}

    /* Il contenitore dell'immagine riempie tutto lo spazio disponibile */
    .reg-sidebar-fullimage > div:first-child {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding: 0 !important;
        min-height: 0; /* permette al flex child di ridimensionarsi sotto la dimensione del contenuto */
        overflow: hidden;
    }

    /* Footer links sempre visibili sopra l'immagine custom */
    .reg-sidebar-fullimage .reg-sidebar-footer {
        flex-shrink: 0;
        background-color: rgba(255, 255, 255, 0.92);
        padding: 12px 24px;
        position: relative;
        z-index: 2;
    }

/* Il contenuto può essere un <img> diretto oppure un <div> con HTML arbitrario */
.reg-sidebar-custom-image {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    min-height: 0; /* critico per flex overflow */
}

    /* Immagine a qualsiasi livello di nesting: contain per mostrare l'immagine intera senza tagliarla */
    .reg-sidebar-custom-image img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    /* Video a qualsiasi livello di nesting */
    .reg-sidebar-custom-image video {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    /* Div wrapper generato da GetCustomLoginImage (caso HTML arbitrario) */
    .reg-sidebar-custom-image > div {
        width: 100%;
        max-height: 100%;
        overflow: hidden;
    }

    /* iframe eventualmente presente nell'HTML custom */
    .reg-sidebar-custom-image iframe {
        max-width: 100%;
        border: none;
    }

@media (max-width: 991px) {
    .reg-sidebar-custom-image {
        margin-top: 0;
    }

    .reg-sidebar-fullimage .reg-sidebar-footer {
        padding: 10px 16px;
    }
}

/* ===============================================
   UserLoginMagic — Pagina attesa magic link
   =============================================== */

/* Email badge */
.magic-email {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    background-color: #fef0f8;
    border: 1.5px solid #ED008E;
    color: #ED008E;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.2px;
    word-break: break-all;
}

/* Countdown timer */
.magic-timer {
    font-weight: 800;
    font-size: 1.6rem;
    color: #d18b1f;
    letter-spacing: 0.5px;
}

.magic-timer-expired {
    color: #dc2626 !important;
}

/* Tips list */
.magic-tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .magic-tips-list li {
        position: relative;
        padding-left: 28px;
        margin-bottom: 10px;
        font-size: 0.95rem;
        color: #555555;
        line-height: 1.5;
    }

        .magic-tips-list li::before {
            content: "•";
            position: absolute;
            left: 8px;
            top: 0;
            color: #ED008E;
            font-weight: 700;
            font-size: 1.1rem;
        }

/* Resend link */
.magic-resend-link {
    color: #ED008E;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

    .magic-resend-link:hover {
        text-decoration: underline;
        color: #d4007e;
    }

/* Webmail link (inline, accanto al badge email) */
.magic-webmail-link {
    display: inline-block;
    margin-left: 10px;
    color: #ED008E;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    vertical-align: middle;
}

    .magic-webmail-link:hover {
        text-decoration: underline;
        color: #d4007e;
    }

    .magic-webmail-link i {
        margin-right: 4px;
        font-size: 0.75rem;
    }

/* Divider leggero per sezioni magic */
.magic-section {
    padding: 16px 0;
    border-bottom: 1px solid #e0e0e0;
}

    .magic-section:last-child {
        border-bottom: none;
    }

@media (max-width: 576px) {
    .magic-email {
        font-size: 0.95rem;
        padding: 6px 12px;
    }

    .magic-timer {
        font-size: 1.3rem;
    }

    .magic-tips-list li {
        font-size: 0.85rem;
    }
}
