/*
 * Login popup Pulse — caricato SOLO su /pulse/.
 * Non tocca il CSS del tema su homepage o altre pagine.
 */
body.ci-pulse-standalone-page .jws-form-login-popup,
body.ci-pulse-page .jws-form-login-popup {
    position: fixed;
    width: 100%;
    height: 100%;
    margin: 0;
    top: 0;
    left: 0;
    overflow: auto;
    visibility: hidden;
    pointer-events: none;
    z-index: 2147483600;
    padding: 30px 10px;
    transition: 0.35s;
}

body.ci-pulse-standalone-page .jws-form-login-popup .jws-form-overlay,
body.ci-pulse-page .jws-form-login-popup .jws-form-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    visibility: hidden;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2147483599;
    opacity: 0;
    transition: 0.35s all;
    background: rgba(0, 0, 0, 0.75);
}

body.ci-pulse-standalone-page .jws-form-login-popup .jws-form-content,
body.ci-pulse-page .jws-form-login-popup .jws-form-content {
    max-width: 556px;
    min-height: 580px;
    padding: 38px 70px 45px;
    left: 50%;
    width: calc(100% - 40px);
    top: 0;
    transform: translate(-50%, -70%);
    opacity: 0;
    z-index: 2147483601;
    position: absolute;
    transition: 0.45s all;
    border-radius: 10px;
    background: #121212 !important;
    color: #ffffff !important;
}

body.ci-pulse-standalone-page .jws-form-login-popup .jws-close,
body.ci-pulse-page .jws-form-login-popup .jws-close {
    position: fixed;
    right: 0;
    font-size: 32px;
    top: 0;
    padding: 22px 14px 0 0;
    cursor: pointer;
    z-index: 2147483602;
    color: #ffffff;
}

body.ci-pulse-standalone-page .jws-form-login-popup.open,
body.ci-pulse-page .jws-form-login-popup.open {
    visibility: visible;
    pointer-events: auto;
}

body.ci-pulse-standalone-page .jws-form-login-popup.open .jws-form-overlay,
body.ci-pulse-page .jws-form-login-popup.open .jws-form-overlay {
    opacity: 1;
    visibility: visible;
}

body.ci-pulse-standalone-page .jws-form-login-popup.open .jws-form-content,
body.ci-pulse-page .jws-form-login-popup.open .jws-form-content {
    transform: translate(-50%, 50px);
    opacity: 1;
}

body.ci-pulse-login-open {
    overflow: hidden;
}

body.ci-pulse-login-open .fc-consent-root,
body.ci-pulse-login-open .fc-dialog-container,
body.ci-pulse-standalone-page .jws-form-login-popup.open ~ .fc-consent-root,
body.ci-pulse-page .jws-form-login-popup.open ~ .fc-consent-root {
    z-index: 1 !important;
    pointer-events: none !important;
}

body.ci-pulse-standalone-page .jws-form-login-popup .jws-login-container,
body.ci-pulse-page .jws-form-login-popup .jws-login-container {
    background: transparent;
    color: #ffffff;
}

body.ci-pulse-standalone-page #jws-login-form .jws-animation .login-width-social .social-line,
body.ci-pulse-page #jws-login-form .jws-animation .login-width-social .social-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2px;
    margin-bottom: 9px;
    font-size: 14px;
    color: #fff;
}

body.ci-pulse-standalone-page .jws-form-login-popup .jws-form-content label,
body.ci-pulse-page .jws-form-login-popup .jws-form-content label,
body.ci-pulse-standalone-page #jws-login-form .form-head h5,
body.ci-pulse-page #jws-login-form .form-head h5 {
    color: #ffffff !important;
}

body.ci-pulse-standalone-page #jws-login-form .jws-animation form input:not([type="checkbox"]):not([type="submit"]),
body.ci-pulse-page #jws-login-form .jws-animation form input:not([type="checkbox"]):not([type="submit"]),
body.ci-pulse-standalone-page .jws-form-login-popup input:not([type="checkbox"]):not([type="submit"]),
body.ci-pulse-page .jws-form-login-popup input:not([type="checkbox"]):not([type="submit"]) {
    background-color: #1e1e1e !important;
    color: #ffffff !important;
    border: 1px solid #333 !important;
    padding: 15px 25px 0;
    border-radius: 5px;
}

body.ci-pulse-standalone-page #jws-login-form .jws-animation form .form-row,
body.ci-pulse-page #jws-login-form .jws-animation form .form-row {
    position: relative;
}

body.ci-pulse-standalone-page #jws-login-form .jws-animation form .form-row label,
body.ci-pulse-page #jws-login-form .jws-animation form .form-row label {
    position: absolute;
    left: 30px;
    top: 12px;
    margin: 0;
    pointer-events: none;
    transition: 0.3s all;
    color: rgba(255, 255, 255, 0.65) !important;
}

body.ci-pulse-standalone-page #jws-login-form .jws-animation form .form-row.entering_text label,
body.ci-pulse-page #jws-login-form .jws-animation form .form-row.entering_text label {
    font-size: 12px;
    line-height: 16px;
    transform: translateY(-5px);
    color: rgba(255, 255, 255, 0.85) !important;
}

body.ci-pulse-standalone-page #jws-login-form .jws-animation form .login-remember label,
body.ci-pulse-page #jws-login-form .jws-animation form .login-remember label {
    position: static;
    pointer-events: auto;
    color: #ffffff !important;
}

body.ci-pulse-standalone-page .jws-form-login-popup input:-webkit-autofill,
body.ci-pulse-standalone-page .jws-form-login-popup input:-webkit-autofill:hover,
body.ci-pulse-standalone-page .jws-form-login-popup input:-webkit-autofill:focus,
body.ci-pulse-page .jws-form-login-popup input:-webkit-autofill,
body.ci-pulse-page .jws-form-login-popup input:-webkit-autofill:hover,
body.ci-pulse-page .jws-form-login-popup input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #1e1e1e inset !important;
    box-shadow: 0 0 0 1000px #1e1e1e inset !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff;
    transition: background-color 99999s ease-in-out 0s;
}

body.ci-pulse-standalone-page .jws-form-login-popup .jws-form-content input::placeholder,
body.ci-pulse-page .jws-form-login-popup .jws-form-content input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

body.ci-pulse-standalone-page .jws-login-container .privacy-policy,
body.ci-pulse-page .jws-login-container .privacy-policy,
body.ci-pulse-standalone-page .jws-login-container .change-form,
body.ci-pulse-page .jws-login-container .change-form {
    color: #fff;
    text-align: center;
}

body.ci-pulse-standalone-page #jws-login-form .lost-pass-link,
body.ci-pulse-page #jws-login-form .lost-pass-link,
body.ci-pulse-standalone-page #jws-login-form .register.change-form,
body.ci-pulse-page #jws-login-form .register.change-form,
body.ci-pulse-standalone-page .jws-form-login-popup .jws-login-container a,
body.ci-pulse-page .jws-form-login-popup .jws-login-container a {
    color: #ffffff !important;
}

body.ci-pulse-standalone-page .jws-form-login-popup .ch-login-error-box,
body.ci-pulse-page .jws-form-login-popup .ch-login-error-box,
body.ci-pulse-standalone-page .jws-form-login-popup #jws-login-form .message,
body.ci-pulse-page .jws-form-login-popup #jws-login-form .message {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(255, 107, 107, 0.55);
    border-radius: 8px;
    margin-bottom: 14px;
    padding: 12px 14px;
}

body.ci-pulse-standalone-page .jws-form-login-popup .ch-login-error-box .jws-dealer-note,
body.ci-pulse-page .jws-form-login-popup .ch-login-error-box .jws-dealer-note,
body.ci-pulse-standalone-page .jws-form-login-popup #jws-login-form .message .jws-dealer-note,
body.ci-pulse-page .jws-form-login-popup #jws-login-form .message .jws-dealer-note,
body.ci-pulse-standalone-page .jws-form-login-popup #jws-login-form .message p,
body.ci-pulse-page .jws-form-login-popup #jws-login-form .message p {
    color: #ffb4b4 !important;
}

body.ci-pulse-standalone-page #jws-login-form .jws-animation form input.button.button-default,
body.ci-pulse-page #jws-login-form .jws-animation form input.button.button-default,
body.ci-pulse-standalone-page #jws-login-form .jws-animation form button.button.button-default:not(#jws-faceid-login),
body.ci-pulse-page #jws-login-form .jws-animation form button.button.button-default:not(#jws-faceid-login),
body.ci-pulse-standalone-page #jws-qr-login,
body.ci-pulse-page #jws-qr-login {
    width: 100%;
    background: rgba(162, 89, 255, 0.6) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.2s ease;
    text-align: center;
}

body.ci-pulse-standalone-page #jws-login-form .jws-animation form input.button.button-default:hover,
body.ci-pulse-page #jws-login-form .jws-animation form input.button.button-default:hover,
body.ci-pulse-standalone-page #jws-login-form .jws-animation form button.button.button-default:not(#jws-faceid-login):hover,
body.ci-pulse-page #jws-login-form .jws-animation form button.button.button-default:not(#jws-faceid-login):hover,
body.ci-pulse-standalone-page #jws-qr-login:hover,
body.ci-pulse-page #jws-qr-login:hover {
    background: rgba(162, 89, 255, 0.82) !important;
    box-shadow: 0 8px 15px -8px rgba(158, 97, 255, 0.5);
}

body.ci-pulse-standalone-page #jws-login-form #jws-faceid-login,
body.ci-pulse-page #jws-login-form #jws-faceid-login {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    width: 100%;
    background: rgb(87 87 87 / 15%) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff !important;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none !important;
}

body.ci-pulse-standalone-page #jws-login-form #jws-faceid-login:hover,
body.ci-pulse-page #jws-login-form #jws-faceid-login:hover {
    background: rgb(250 250 250 / 15%) !important;
    transform: translateY(-2px) scale(1.05);
    box-shadow: none !important;
}

body.ci-pulse-standalone-page #jws-faceid-login svg,
body.ci-pulse-page #jws-faceid-login svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin: 0;
}

body.ci-pulse-standalone-page #jws-login-form .form-contaier.owl-carousel .owl-stage-outer,
body.ci-pulse-page #jws-login-form .form-contaier.owl-carousel .owl-stage-outer {
    overflow: visible;
}

body.ci-pulse-standalone-page #jws-login-form .form-contaier.owl-carousel .owl-item,
body.ci-pulse-page #jws-login-form .form-contaier.owl-carousel .owl-item,
body.ci-pulse-standalone-page #jws-login-form .form-contaier.owl-carousel .owl-stage,
body.ci-pulse-page #jws-login-form .form-contaier.owl-carousel .owl-stage {
    height: auto !important;
}

@media (max-width: 767px) {
    body.ci-pulse-standalone-page .jws-form-login-popup .jws-form-content,
    body.ci-pulse-page .jws-form-login-popup .jws-form-content {
        padding: 26px 20px 45px;
    }
}
