/* ═══════════════════════════════════════════════════════════════
   LOGIN — "Pompeian" (2026-10-27). Two columns: a red plate with Piranesi's Pantheon, the form on marble / basalt.
   Tokens from brand.css; the red is fixed in both themes (it is the brand's identity).
   ═══════════════════════════════════════════════════════════════ */
body.lg { margin: 0; background: var(--black); color: var(--text-1); }
.lg-wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); min-height: calc(100vh / var(--mv-zoom, 1)); min-height: calc(100dvh / var(--mv-zoom, 1)); }

.lg-art { position: relative; isolation: isolate; overflow: hidden; background: #b01e26; color: #fbf4ec; display: flex; flex-direction: column; justify-content: space-between; padding: 0 var(--lg-pad) clamp(1.5rem, 3.5vw, 3rem); }
/* a quiet colonnade: fluted columns drawn as hairlines in a slightly lighter red, fading downward */
.lg-art::before { content: ""; position: absolute; inset: 0; z-index: -1;
    background: repeating-linear-gradient(90deg, rgba(251,244,236,.13) 0 1px, transparent 1px 38px, rgba(251,244,236,.06) 38px 39px, transparent 39px 76px);
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 45%, #000 100%); mask-image: linear-gradient(180deg, transparent 0, #000 45%, #000 100%); }
/* The plate's logo row IS the other pages' bar (owner, 2026-10-31, «per tutte le dimensioni la nav bar coincida, anche per la schermata di accesso»): the demos' bar at every width, 60px high (56px up to 768px),
   side padding 24 / 16 / 12px, brand 18.4px (16px up to 520px). --lg-f cancels the page's `zoom` as the public bar does (scale.css), so on screen it is the bar's size. */
.lg-art { --lg-f: calc(var(--mv-nav-zoom, 1) / var(--mv-zoom, 1)); --lg-bar: 60px; --lg-pad: calc(24px * var(--lg-f)); }
.lg-art .logo { align-self: flex-start; display: inline-flex; align-items: center; height: var(--lg-bar); padding: 0; zoom: var(--lg-f); font-size: 18.4px; font-weight: 500; letter-spacing: .06em; color: #fbf4ec; text-decoration: none; }
.lg-art .logo span { font-weight: 700; }
.lg-art .logo span { color: #fbf4ec; opacity: .78; }
.lg-art-foot { display: flex; flex-direction: column; gap: .75rem; }
.lg-art-foot b { font-family: var(--font-display); font-weight: 500; font-size: clamp(1rem, .75rem + .75vw, 1.5rem); letter-spacing: .06em; text-transform: uppercase; line-height: 1.15; max-width: 16em; }
.lg-art-foot span { font-size: .8rem; letter-spacing: .08em; font-style: italic; opacity: .8; }

.lg-main { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: clamp(1.5rem, 4vw, 3.5rem); position: relative; }
.lg-back { min-height: 44px; display: inline-flex; align-items: center; position: absolute; top: clamp(1.25rem, 3vw, 2.25rem); left: clamp(1.5rem, 4vw, 3.5rem); font-family: var(--font-label); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); text-decoration: none; padding: .75rem 0; }
.lg-back:hover { color: var(--mv-accent-text); text-decoration: none; }
.lg-box { width: 100%; max-width: 400px; }
.lg-box h1 { margin: 0 0 .5rem; font-size: clamp(1.35rem, 1rem + 1.4vw, 2.1rem); overflow-wrap: anywhere; text-transform: uppercase; letter-spacing: .05em; line-height: 1.12; color: var(--fg-strong); }
.lg-box > p { margin: 0 0 2rem; color: var(--text-3); font-size: 1.1rem; }
.lg-box .field { margin-bottom: 1.25rem; }
.lg-box .field label { font-family: var(--font-label); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.lg-box input[type="text"], .lg-box input[type="password"] { min-height: 52px; font-size: 1.1rem; border-radius: 0; background: var(--input-bg); }
.lg-box .btn-primary { min-height: 54px; border-radius: 0; font-size: .85rem; letter-spacing: .18em; margin-top: .5rem; }
.lg-box .alert { margin: 0 0 1.5rem; }
.lg-box .lg-notice { display: flex; align-items: flex-start; gap: .6rem; margin: 0 0 1.75rem; padding-left: .9rem; border-left: 2px solid var(--rule-2); font-size: .98rem; line-height: 1.45; color: var(--text-2); }
.lg-box .lg-notice svg { flex: none; width: 17px; height: 17px; margin-top: .17em; color: var(--text-3); }
.lg-box .field-error { display: flex; align-items: flex-start; gap: .5rem; margin: -.4rem 0 1rem; font-size: .98rem; line-height: 1.4; color: var(--t-red); }
.lg-box .field-error svg { flex: none; width: 17px; height: 17px; margin-top: .17em; }
.lg-box .field.has-error input { border-color: var(--t-red); }
.lg-foot { margin-top: 2rem; color: var(--text-3); font-size: 1.05rem; }
.lg-foot a, .lg-box .auth-back { color: var(--mv-accent-text); }
.lg-note { margin-bottom: 1.75rem; }

@media (max-width: 860px) {
    .lg-wrap { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
    .lg-art { min-height: 170px; }
    .lg-art-foot { display: none; }
    .lg-main { justify-content: flex-start; padding-top: 4.5rem; }
    .lg-back { top: auto; position: static; align-self: flex-start; margin-bottom: 1rem; }
    .lg-main { align-items: stretch; } .lg-box { max-width: none; }
}

/* the form side: the same soft wash from the top right */
.lg-main { background: radial-gradient(720px 440px at 100% 0, rgba(var(--brand-rgb), .09), transparent 65%), var(--black); }

@media (max-width: 860px) { .lg-back { font-size: .84rem; } }

/* The login at the scale of the other pages (owner, 2026-10-31: «sembra ancora troppo zoomata»). `body.pub h1` (public page title, 49.6px) had overridden `.lg-box h1`; on a computer the
   fields and the button take the contact form's sizes (15px field, 12px button). Phones keep 16px+ fields (no iOS zoom on focus). */
body.lg .lg-box h1 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); }
@media (hover: hover) and (pointer: fine) {
    .lg-box > p { font-size: 1rem; margin-bottom: 1.6rem; }
    .lg-box input[type="text"], .lg-box input[type="password"] { min-height: 44px; font-size: 15px; }
    .lg-box .btn-primary { min-height: 46px; font-size: 12px; }
    .lg-box .field label { font-size: .72rem; }
    .lg-box .field-error, .lg-box .lg-notice { font-size: .92rem; }
    .lg-foot { font-size: 1rem; margin-top: 1.5rem; }
}

/* Phone and tablet (owner, 2026-10-31: «la navbar è molto più grande», the page still looked zoomed). The red plate above the form is the other pages' bar: the demos' size (60px, 56px up to 768px;
   side padding 24 / 16 / 12px; brand 18.4px, 16px up to 520px). Form type is smaller; fields stay at 16px (iOS zooms the page when focusing a field below that). */
@media (max-width: 860px) {
    /* The plate is tall again (owner, 2026-10-31): it carries the logo on top (the tagline is a computer-only line: owner, 2026-10-31, «su mobile non voglio la scritta»), and it pushes the form down so the «Accedi» button sits where the thumb rests
       (about three quarters of the screen's height). The logo keeps the demos' bar position: a 60px (56px) row at the top. */
    .lg-art { min-height: clamp(180px, 28dvh, 270px); height: auto; flex-direction: column; align-items: flex-start; padding-bottom: 1.25rem; }
    .lg-main { padding: 1.25rem 24px 1rem; }
    .lg-back { font-size: .72rem; margin-bottom: .75rem; }
    body.lg .lg-box h1 { font-size: 1.4rem; }
    .lg-box > p { font-size: .95rem; margin-bottom: 1.4rem; }
    .lg-box input[type="text"], .lg-box input[type="password"] { min-height: 48px; font-size: 16px; }
    .lg-box .btn-primary { min-height: 48px; font-size: 12px; }
    .lg-box .field label { font-size: .7rem; }
    .lg-box .field-error, .lg-box .lg-notice { font-size: .88rem; }
    .lg-foot { font-size: .92rem; margin-top: 1.25rem; }
}
@media (max-width: 768px) { .lg-art { --lg-bar: 56px; --lg-pad: 16px; } .lg-main { padding-left: 16px; padding-right: 16px; } }
@media (max-width: 520px) { .lg-art .logo { font-size: 16px; letter-spacing: .03em; } }
@media (max-width: 360px) { .lg-art { --lg-pad: 12px; } .lg-main { padding-left: 12px; padding-right: 12px; } }

/* «Ricordami» (2026-11-14): one quiet line between the password and the button, a 44px touch row. */
.lg-box .lg-remember { display: flex; align-items: center; gap: .6rem; min-height: 44px; margin: .25rem 0 .5rem;
    cursor: pointer; color: var(--text-2); font-size: .95rem; }
.lg-box .lg-remember input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand, currentColor); flex: none; }

/* Readable floor (full check, 2026-11-16): the back link and the button label never under ~12px on screen, zoom included. */
html body.lg .lg-back { font-size: 13.5px; }
html body.lg .lg-box .btn-primary { font-size: 13.5px; }
