﻿/* Pagina di accesso (rifatta allo Step 694, stile sobrio come la presentazione). Autonoma: non usa AdminLTE né Bootstrap. Schermo diviso: a sinistra il pannello
   con il messaggio, a destra il modulo. Il carattere è in fonts.css. */
:root {
    --lg-ink: #14213d;
    --lg-muted: #5b6785;
    --lg-line: #e4e8f1;
    --lg-bg: #f5f7fb;
    --lg-primary: #3f5bf2;
    --lg-primary-d: #2f46cc;
    --lg-danger: #b42318;
    --lg-danger-bg: #fdecea;
}
* { box-sizing: border-box; }
.lg { margin: 0; background: #fff; color: var(--lg-ink); font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; font-size: 17px; line-height: 1.6; }
.lg h1, .lg h2 { margin: 0; letter-spacing: -.02em; line-height: 1.12; font-weight: 800; }
.lg a { color: inherit; }
.lg a:focus-visible, .lg button:focus-visible, .lg input:focus-visible { outline: 3px solid var(--lg-primary); outline-offset: 2px; border-radius: 4px; }

.lg-split { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); min-height: 100vh; }

.lg-side { position: relative; background: linear-gradient(150deg, #16254a, #2a3f86 70%, #4a46c4); color: #fff; padding: 36px 64px 44px; display: flex; flex-direction: column; overflow: hidden; }
.lg-side::before { content: ""; position: absolute; left: -140px; bottom: -160px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(122, 92, 245, .5), rgba(122, 92, 245, 0) 68%); pointer-events: none; }
.lg-side::after { content: ""; position: absolute; right: -120px; top: -100px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(91, 116, 255, .45), rgba(91, 116, 255, 0) 68%); pointer-events: none; }
.lg-side > * { position: relative; z-index: 1; }
.lg-brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 20px; text-decoration: none; letter-spacing: -.01em; }
.lg-logo { width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(140deg, #5a74ff, #3243d6); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 14px rgba(63, 91, 242, .35); font-size: 17px; }
.lg-side h1 { font-size: clamp(30px, 3.4vw, 46px); margin: auto 0 18px; }
.lg-lead { color: #c8d1ee; font-size: 18px; max-width: 27em; margin: 0 0 32px; font-weight: 500; }
.lg-points { display: grid; gap: 14px; margin: 0 0 auto; padding: 0; list-style: none; }
.lg-points li { display: flex; gap: 14px; align-items: center; font-weight: 600; font-size: 16px; color: #e6ebfb; }
.lg-points .lg-pi { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); display: grid; place-items: center; color: #fff; }
.lg-tagline { color: #9fb0e3; font-weight: 600; margin: 36px 0 0; font-size: 15px; }

.lg-panel { display: flex; flex-direction: column; padding: 36px 64px; }
.lg-nav { display: flex; justify-content: flex-end; gap: 26px; font-weight: 600; font-size: 15.5px; color: var(--lg-muted); }
.lg-nav a { text-decoration: none; }
.lg-nav a:hover { color: var(--lg-ink); }
.lg-box { margin: auto 0; max-width: 410px; width: 100%; align-self: center; padding: 24px 0; }
.lg-box h2 { font-size: 32px; margin-bottom: 8px; }
.lg-sub { margin: 0 0 28px; color: var(--lg-muted); font-weight: 500; }

.lg-alert { background: var(--lg-danger-bg); border-left: 4px solid var(--lg-danger); color: var(--lg-danger); padding: 11px 14px; margin: 0 0 20px; border-radius: 8px; font-weight: 600; font-size: 15px; }
.lg-alert ul { margin: 0; padding: 0; list-style: none; }

.lg-field { margin: 0 0 20px; }
.lg-field label { display: block; font-weight: 700; font-size: 14.5px; margin: 0 0 8px; }
.lg-input { position: relative; }
.lg-input > .lg-ic { position: absolute; left: 16px; top: 0; height: 52px; display: flex; align-items: center; color: #8791ad; pointer-events: none; font-size: 16px; }
.lg-input input { width: 100%; height: 52px; font: inherit; font-weight: 600; color: var(--lg-ink); background: #fff; border: 1.5px solid #d6dbe9; border-radius: 12px; padding: 0 16px 0 46px; }
.lg-input input::placeholder { color: #9aa3bb; font-weight: 500; }
.lg-input input:hover { border-color: #aab3cc; }
.lg-input input:focus { outline: none; border-color: var(--lg-primary); box-shadow: 0 0 0 4px rgba(63, 91, 242, .16); }
.lg-input.has-toggle input { padding-right: 52px; }
.lg-toggle { position: absolute; top: 0; right: 0; height: 52px; width: 50px; border: 0; background: none; color: #8791ad; cursor: pointer; font-size: 17px; }
.lg-toggle:hover { color: var(--lg-ink); }
.lg-hint { display: none; margin: 8px 0 0; font-size: 14px; color: var(--lg-danger); font-weight: 600; }
.lg-hint.on { display: block; }

.lg-submit { width: 100%; height: 52px; margin-top: 6px; background: var(--lg-primary); color: #fff; font: inherit; font-weight: 700; font-size: 16px; border: 0; border-radius: 12px; cursor: pointer; box-shadow: 0 8px 20px rgba(63, 91, 242, .32); }
.lg-submit:hover { background: var(--lg-primary-d); }
.lg-submit[disabled] { opacity: .65; cursor: progress; }
.lg-help { display: flex; gap: 12px; margin: 28px 0 0; padding: 16px 18px; border-radius: 14px; background: var(--lg-bg); color: var(--lg-muted); font-weight: 500; font-size: 14.5px; }
.lg-help .fa { flex: 0 0 20px; margin-top: 3px; font-size: 18px; }
.lg-foot { margin: 0; color: var(--lg-muted); font-weight: 600; font-size: 14px; }

@media (max-width: 880px) {
    .lg-split { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    .lg-side { padding: 24px 24px 28px; }
    .lg-side h1 { margin-top: 28px; font-size: 28px; }
    .lg-points, .lg-tagline { display: none; }
    .lg-lead { margin-bottom: 0; }
    .lg-panel { padding: 24px; }
    .lg-nav { justify-content: flex-start; }
}
