@charset "UTF-8";
where(:not(iframe, canvas, img, svg, video, input[type="checkbox"]):not(svg *, symbol *)) {
    all: unset;
    display: revert;
}
*, ::before, ::after { box-sizing: border-box; }
ol, ul, menu { list-style: none; }
img { max-width: 100%; }
html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #374151;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
a { color: inherit; cursor: pointer; }
strong { font-weight: 600; }

/* ══ LAYOUT SPLIT: SX bianca, DX immagine ═══════════════════════ */

.login-split {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ── COLONNA SINISTRA: bianca con info ──────────────────────────── */

.login-left {
    flex: 0 0 40%;
    max-width: 40%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.login-left-content {
    max-width: 400px;
    width: 100%;
}
.login-left-hero {
    margin-bottom: 32px;
}
.login-left-logo {
    height: 28px;
    width: auto;
    margin-bottom: 24px;
}
.login-left-pretitle {
    font-size: 18px;
    font-weight: 400;
    color: #6B7280;
    margin-bottom: 4px;
}
.login-left-title {
    font-size: 28px;
    font-weight: 700;
    color: #1F2937;
    line-height: 1.2;
    margin-bottom: 12px;
}
.login-left-subtitle {
    font-size: 14px;
    line-height: 1.6;
    color: #6B7280;
}
.login-left-info {
    margin-bottom: 32px;
    padding-top: 24px;
    border-top: 1px solid #E5E7EB;
}
/* Feature rotante */
.login-left-feature {
    margin-bottom: 32px;
    padding-top: 24px;
    border-top: 1px solid #E5E7EB;
}
.feature-card {
    padding: 0;
}
.feature-icon {
    font-size: 24px;
    color: #F5A623;
    margin-bottom: 12px;
    display: block;
}
.feature-title {
    font-size: 16px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 8px;
}
.feature-text {
    font-size: 13px;
    line-height: 1.6;
    color: #6B7280;
}

/* Help button sulla card login */
.login-help-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    z-index: 10;
    transition: color 0.2s;
}
.login-help-btn:hover {
    color: rgba(255, 255, 255, 0.9);
}
.login-help-panel {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 16px;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    width: 100%;
}
.login-help-panel p {
    margin-bottom: 12px;
}
.login-help-panel p:last-child {
    margin-bottom: 0;
}
.login-help-panel strong {
    color: #fff;
    font-weight: 600;
}

.login-left-footer {
    font-size: 11px;
    color: #9CA3AF;
    border-top: 1px solid #F3F4F6;
    padding-top: 16px;
}
.login-left-footer .item {
    display: block;
    margin-bottom: 2px;
}
.login-left-footer .link {
    color: #F5A623;
    text-decoration: underline;
}

/* ── COLONNA DESTRA: immagine sfondo + card glass ────────────────── */

.login-right {
    flex: 1;
    /* immagine sfondo impostata inline nel login.xhtml via org.primefaces.extensions.application.PrimeFacesExtensionsResourceHandler@552f356e */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
}

/* Card glassmorphism */
.login-card {
    background: rgba(40, 40, 50, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 40px 36px 32px;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ══ LOGO ════════════════════════════════════════════════════════ */

.login-logo {
    margin-bottom: 32px;
}
.login-logo img {
    max-width: 200px;
    height: auto;
}

/* ══ FORM ════════════════════════════════════════════════════════ */

.login-form-inner {
    width: 100%;
}
.form-control {
    display: block;
    margin-bottom: 14px;
}

/* Campo email */
.login-input,
input.login-input {
    width: 100% !important;
    height: 52px;
    padding: 14px 16px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    color: #374151 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    box-shadow: none !important;
    outline: none;
}
.login-input::placeholder,
input.login-input::placeholder {
    color: #9CA3AF !important;
}
.login-input:focus,
input.login-input:focus {
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.3) !important;
}

/* Bottone OTP */
.login-btn-otp {
    width: 100%;
    height: 52px;
    background: #F5A623;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
.login-btn-otp:hover {
    background: #D4900E;
}

/* Separatore */
.login-separator {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    margin: 16px 0;
    width: 100%;
}

/* Bottone Google */
.login-btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 52px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}
.login-btn-google:hover {
    background: #fff;
}
.google-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.login-btn-google-text {
    background: none;
    border: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    padding: 0;
}

.login-btn-microsoft {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 52px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 12px;
}
.login-btn-microsoft:hover {
    background: #fff;
}
.microsoft-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.login-btn-microsoft-text {
    background: none;
    border: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    padding: 0;
}

/* Testo extra */
.login-extra {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin-top: 20px;
    line-height: 1.5;
    width: 100%;
}
.login-version {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    margin-top: 12px;
    width: 100%;
}

/* Loader */
.loader {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 2px solid white;
    width: 16px;
    height: 16px;
    margin-left: 12px;
    animation: spin 1s linear infinite;
    display: none;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Autofill */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px rgba(255,255,255,0.9) inset !important;
    -webkit-text-fill-color: #374151 !important;
}

/* ══ RESPONSIVE ═══════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .login-split {
        flex-direction: column;
    }
    .login-left {
        display: none;
    }
    .login-right {
        flex: 1;
        min-height: 100vh;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .login-right {
        padding: 24px;
    }
    .login-card {
        padding: 28px 20px 24px;
        border-radius: 4px;
    }
    .login-logo img {
        max-width: 160px;
    }
}

/* ══ CLASSI LEGACY ══════════════════════════════════════════════ */
.button { display: none; }
.text { font-size: 13px; display: block; }
input.text { display: none; }
.google-btn { display: none; }
.google-input { display: none; }
.btn-text { display: none; }
.buttonPP {
    width: 100%;
    height: 52px;
    background: #F5A623;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
