/* MC Sentinel — palette dal logo: navy #001A4D, blu EU #003399, oro #FFC400 */

/* ---------------------------------------------------------------------------
   Font Plus Jakarta Sans ospitato in locale (GDPR: nessuna chiamata esterna).
   File in assets/fonts/. Licenza SIL Open Font License 1.1 (assets/fonts/OFL.txt).
   Pesi: 400 regular, 500, 600, 700, 800 ExtraBold. Sottoinsiemi latin + latin-ext
   (per accenti europei). font-display: swap evita testo invisibile in caricamento.
   --------------------------------------------------------------------------- */
@font-face {
    font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap;
    src: url("fonts/pjs-latin-400.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap;
    src: url("fonts/pjs-latin-ext-400.woff2") format("woff2");
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap;
    src: url("fonts/pjs-latin-500.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap;
    src: url("fonts/pjs-latin-ext-500.woff2") format("woff2");
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap;
    src: url("fonts/pjs-latin-600.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap;
    src: url("fonts/pjs-latin-ext-600.woff2") format("woff2");
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap;
    src: url("fonts/pjs-latin-700.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap;
    src: url("fonts/pjs-latin-ext-700.woff2") format("woff2");
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap;
    src: url("fonts/pjs-latin-800.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap;
    src: url("fonts/pjs-latin-ext-800.woff2") format("woff2");
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

.mcsent-login-wrap {
    --ink: #001a4d; --blu: #003399; --oro: #ffc400; --paper: #e7ecf7;
    --line: #ccd6ec; --mut: #5d6a8f;
    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #eaeffa 0%, #dce4f4 100%);
    padding: 24px; box-sizing: border-box; font-family: var(--font);
}
.mcsent-login-wrap * { box-sizing: border-box; }
.mcsent-login-wrap input,
.mcsent-login-wrap button,
.mcsent-login-wrap select { font-family: var(--font); }
.mcsent-login-card {
    width: 100%; max-width: 940px; min-height: 560px; display: grid; grid-template-columns: 1fr 1fr;
    background: #fff; border-radius: 24px; overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 26, 77, 0.25);
}

/* colonna brand (sinistra) */
.mcsent-brand {
    position: relative; background: linear-gradient(160deg, #002b6b 0%, #001a4d 100%);
    color: #fff; display: flex; align-items: center; padding: 48px; overflow: hidden;
}
.mcsent-brand::before {
    content: ""; position: absolute; top: -80px; right: -80px; width: 280px; height: 280px;
    border-radius: 50%; background: rgba(255, 196, 0, 0.12);
}
.mcsent-brand::after {
    content: ""; position: absolute; bottom: -100px; left: -60px; width: 240px; height: 240px;
    border-radius: 50%; background: rgba(0, 51, 153, 0.4);
}
.mcsent-brand-inner { position: relative; z-index: 1; }
.mcsent-brand-image { margin-bottom: 20px; }
.mcsent-brand-image img { max-width: 220px; max-height: 120px; width: auto; height: auto; display: block; }
.mcsent-brand-logo { height: 46px; margin-bottom: 28px; }
.mcsent-brand-name { font-family: var(--font); font-weight: 800; font-size: 40px; letter-spacing: -0.5px; line-height: 1; }
.mcsent-brand-name span { color: var(--oro); }
.mcsent-brand-payoff {
    margin-top: 8px; font-size: 15px; font-weight: 600; letter-spacing: 2px;
    text-transform: uppercase; color: var(--oro);
}
.mcsent-brand-text { margin-top: 24px; font-size: 15px; line-height: 1.7; color: rgba(255,255,255,0.75); max-width: 320px; }
.mcsent-brand-qr {
    margin-top: 36px; width: 88px; height: 88px; border-radius: 14px; opacity: 0.9;
    background:
        conic-gradient(#fff 25%, transparent 0 50%, #fff 0 75%, transparent 0) 0 0/18px 18px,
        var(--oro);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

/* colonna form (destra) */
.mcsent-form-col { padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; }
.mcsent-form-title { font-size: 28px; font-weight: 800; color: var(--ink); margin: 0; }
.mcsent-form-sub { margin: 8px 0 28px; font-size: 14px; color: var(--mut); }

.mcsent-field { display: block; margin-bottom: 18px; }
.mcsent-field span { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.mcsent-field input {
    width: 100%; padding: 12px 14px; font-size: 15px; border: 1.5px solid var(--line);
    border-radius: 10px; background: #fbfcff; transition: border-color .15s, box-shadow .15s;
}
.mcsent-field input:focus {
    outline: none; border-color: var(--blu); box-shadow: 0 0 0 3px rgba(0, 51, 153, 0.12);
}

.mcsent-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.mcsent-check { font-size: 13px; color: var(--mut); display: flex; align-items: center; gap: 7px; }
.mcsent-link { color: var(--blu); font-size: 13px; font-weight: 600; text-decoration: none; }
.mcsent-link:hover { text-decoration: underline; }

.mcsent-btn {
    width: 100%; padding: 13px; font-size: 15px; font-weight: 700; border: 0; border-radius: 10px;
    cursor: pointer; transition: transform .08s, box-shadow .15s;
}
.mcsent-btn-primary { background: var(--blu); color: #fff; box-shadow: 0 6px 18px rgba(0, 51, 153, 0.28); }
.mcsent-btn-primary:hover { background: #002b80; box-shadow: 0 8px 24px rgba(0, 51, 153, 0.4); }
.mcsent-btn-primary:active { transform: scale(0.98); }

.mcsent-alt { margin-top: 24px; font-size: 14px; color: var(--mut); text-align: center; }

.mcsent-notice { padding: 11px 14px; border-radius: 10px; font-size: 13.5px; margin-bottom: 20px; }
.mcsent-notice-error { background: #fdecec; color: #a11; border: 1px solid #f5c2c2; }
.mcsent-notice-ok { background: #e5f3e9; color: #15803d; border: 1px solid #b7e0c4; }

@media (max-width: 780px) {
    .mcsent-login-card { grid-template-columns: 1fr; max-width: 440px; }
    .mcsent-brand { padding: 40px; min-height: 240px; }
    .mcsent-brand-qr { display: none; }
    .mcsent-form-col { padding: 40px 32px; }
}

/* selettore lingua */
.mcsent-form-col { position: relative; }
.mcsent-lang { position: absolute; top: 18px; right: 22px; }
.mcsent-lang select {
    appearance: none; -webkit-appearance: none;
    border: 1.5px solid var(--line); border-radius: 8px;
    background: #fbfcff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235d6a8f' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
    padding: 6px 28px 6px 12px; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer;
}
.mcsent-lang select:focus { outline: none; border-color: var(--blu); }
@media (max-width: 780px) {
    .mcsent-lang { top: 14px; right: 16px; }
}
