/* ═══════════════════════════════════════════════════════════════
   LOGIN — «Marmo» (owner, 2026-11-28): a full-bleed picture with the form on it (the Pantheon's dome since 2026-11-29). Same fonts as the other pages.
   Light theme: printed in red ink with a marble card. Dark theme: the night print. Tokens from marmo.css.
   Phone: the painting fades out at the top, no card, the form is the page. No site footer.
   ═══════════════════════════════════════════════════════════════ */
/* No room kept for a scrollbar here: css/marmo.css reserves it (scrollbar-gutter: stable) so that pages do not shift, but
   the login is usually one screen, and with a classic scrollbar (Windows) the reserved strip stayed empty down the right
   side of the painting (owner, 2026-11-29). In a short window the scrollbar still appears by itself. */
html { scrollbar-gutter: auto; }
.lg-stage { position: relative; flex: none; min-height: max(100vh / var(--mv-zoom, 1), 760px); min-height: max(100dvh / var(--mv-zoom, 1), 760px); display: flex; align-items: center; justify-content: flex-end; padding: 120px 120px 64px; overflow: hidden; }
.lg-scene { position: absolute; inset: 0; background: #0f0a09 url('/img/marmo/pantheon-night.webp') 50% 50% / cover no-repeat; }
:root[data-theme="light"] .lg-scene { background-color: #8f1d24; background-image: url('/img/marmo/pantheon-day.webp'); }
/* sharp screens and very wide ones get the painting at the size of its original (owner, 2026-11-28) */
@media (min-resolution: 1.5dppx), (min-width: 2200px) {
    .lg-scene { background-image: url('/img/marmo/pantheon-night-hd.webp'); }
    :root[data-theme="light"] .lg-scene { background-image: url('/img/marmo/pantheon-day-hd.webp'); }
}
.lg-scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,5,5,.55) 0%, transparent 40%, rgba(10,5,5,.55) 100%); }
:root[data-theme="light"] .lg-scene::after { background: linear-gradient(90deg, rgba(40,6,9,.42) 0%, transparent 40%, rgba(40,6,9,.3) 100%); }

/* The same bar as every page (css/marmo.css .nav): wordmark, arrow and switches with the same sizes, places and middle, drawn
   in the picture's colours. A soft shade at the top of the painting keeps them readable over the beam of light. */
.lg-brand { position: absolute; left: 72px; top: 14px; z-index: 5; height: 44px; display: flex; align-items: center; gap: 14px; }
.lg-logo { position: relative; top: 3.7px; padding: 6px 0; font-size: 29px; color: #fff8f1; }
a.lg-logo:hover { color: #fff8f1; }
.lg-logo span { color: #ffd9c9; }
.lg-tools { position: absolute; right: 72px; top: 14px; z-index: 5; display: flex; align-items: center; gap: 12px; }
.lg-tools .theme-tgl, .lg-tools .nav-lang-btn, .lg-brand .mv-back { border: 1px solid rgba(255,248,241,.45); background: transparent; color: #fff8f1; }
.lg-tools .theme-tgl:hover, .lg-tools .nav-lang-btn:hover, .lg-tools .nav-lang-btn[aria-expanded="true"], .lg-brand .mv-back:hover { border-color: rgba(255,248,241,.85); color: #fff8f1; }
.lg-shade { position: absolute; left: 0; right: 0; top: 0; height: 132px; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(28,5,8,.62) 0, rgba(28,5,8,.4) 52%, transparent 100%); }

.lg-motto { position: absolute; left: 56px; bottom: 56px; z-index: 1; max-width: 460px; display: flex; flex-direction: column; gap: 10px; text-shadow: 0 2px 18px rgba(25,5,7,.6); }
.lg-motto > span { font-family: var(--serif); font-weight: 300; font-size: 44px; line-height: 1.04; color: #fff8f1; }
.lg-motto > small { font-size: 14px; color: #f4e4da; }

.lg-box { position: relative; z-index: 2; width: 440px; max-width: 100%; padding: 44px 40px 36px; border-radius: 12px; background: rgba(255,253,248,.96); border: 1px solid var(--line); box-shadow: 0 40px 100px rgba(40,4,8,.45); }
:root:not([data-theme="light"]) .lg-box { background: rgba(24,20,18,.9); box-shadow: 0 40px 100px rgba(0,0,0,.65); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.lg-box h1 { margin: 0 0 26px; font-family: var(--serif); font-weight: 300; font-size: 32px; line-height: 1.08; letter-spacing: -.012em; color: var(--ink); overflow-wrap: anywhere; text-wrap: balance; }
.lg-sub { display: none; }
.lg-hint { margin: -12px 0 24px; font-size: 15px; line-height: 1.55; color: var(--text); }
.lg-box .field { margin-bottom: 18px; }
.lg-box .field label { font-size: 14px; font-weight: 600; }
.lg-box .field input { background: #fff; }
:root:not([data-theme="light"]) .lg-box .field input { background: #141110; }
.lg-box .field ::placeholder { font-style: italic; }
.lg-pass { position: relative; }
.lg-pass input { padding-right: 104px; }
.lg-show { position: absolute; right: 4px; top: 3px; height: 44px; padding: 0 14px; border: 0; background: transparent; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--text); }
.lg-show[hidden] { display: none; }
.lg-remember { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: -6px 0 8px; cursor: pointer; font-size: 14px; color: var(--text); }
.lg-remember input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--red); }
.lg-box .btn-full { width: 100%; min-height: 54px; font-size: 16px; white-space: normal; }
.lg-foot { margin-top: 20px; text-align: center; font-size: 14px; color: var(--muted); }
.lg-foot a { display: inline-block; padding: 8px 0; color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.lg-foot a:hover { color: var(--red-text); }

/* The session-ended note is calm (not the visitor's mistake); an error is a red line under the field it is about. */
.lg-notice { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 22px; padding-left: 14px; border-left: 2px solid var(--line2); font-size: 14px; line-height: 1.5; color: var(--text); }
.lg-notice svg, .field-error svg { flex: none; width: 17px; height: 17px; margin-top: 2px; }
.field-error { display: flex; align-items: flex-start; gap: 8px; margin: -6px 0 14px; font-size: 14px; line-height: 1.45; color: var(--red-text); }
.lg-box .field.has-error { margin-bottom: 14px; }
.lg-box .field.has-error input { border-color: var(--red-text); }
.lg-box .field.has-error + .field-error { margin-top: -6px; }

/* Computers with a short window and tablets: the card first, the motto only where it has room of its own */
@media (max-width: 1280px) { .lg-stage { padding-right: 56px; } .lg-brand { left: 48px; } .lg-tools { right: 48px; } }
@media (max-width: 1040px) { .lg-stage { justify-content: center; padding: 120px 32px 64px; } .lg-motto { display: none; } .lg-brand { left: 32px; top: 14px; } .lg-tools { right: 32px; top: 14px; } }

@media (min-width: 761px) and (max-height: 760px) {
    .lg-stage { min-height: max(100vh / var(--mv-zoom, 1), 640px); min-height: max(100dvh / var(--mv-zoom, 1), 640px); padding-top: 96px; padding-bottom: 28px; }
    .lg-box { padding-top: 28px; padding-bottom: 20px; }
    .lg-box h1 { font-size: 29px; margin-bottom: 18px; }
    .lg-box .field { margin-bottom: 12px; }
    .lg-box .field input { height: 46px; }
    .lg-show { top: 1px; }
    .lg-box .btn-full { min-height: 48px; }
    .lg-foot { margin-top: 10px; }
    .lg-motto { bottom: 32px; }
    .lg-motto > span { font-size: 38px; }
}

@media (max-width: 760px) {
    .lg-stage { display: block; min-height: max(100vh / var(--mv-zoom, 1), 844px); min-height: max(100dvh / var(--mv-zoom, 1), 780px); padding: 0; background: var(--bg); }
    .lg-scene { bottom: auto; height: 372px; background-color: transparent; background-image: url('/img/marmo/pantheon-night-phone-hd.webp'); background-position: 50% 100%; -webkit-mask-image: linear-gradient(180deg, #000 0, #000 52%, transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 52%, transparent 100%); }
    :root:not([data-theme="light"]) .lg-stage { background: #0f0a09; }
    :root[data-theme="light"] .lg-scene { background-color: transparent; background-image: url('/img/marmo/pantheon-day-phone-hd.webp'); -webkit-mask-image: linear-gradient(180deg, #000 0, #000 40%, transparent 86%); mask-image: linear-gradient(180deg, #000 0, #000 40%, transparent 86%); }
    .lg-scene::after, :root[data-theme="light"] .lg-scene::after { content: none; }
    .lg-brand { left: 20px; top: 10px; }
    .lg-logo { top: 3.5px; font-size: 25px; }
    .lg-tools { right: 12px; top: 10px; gap: 4px; }
    .lg-tools .theme-tgl, .lg-tools .nav-lang-btn { border-color: transparent; }
    .lg-box, :root:not([data-theme="light"]) .lg-box { width: auto; margin: 0; padding: 316px 28px 44px; background: transparent; border: 0; border-radius: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
    .lg-box h1 { margin: 0 0 8px; font-size: 34px; text-align: center; }
    .lg-sub { display: block; margin: 0 0 24px; text-align: center; font-size: 14px; color: var(--muted); }
    .lg-hint { margin: 4px 0 24px; text-align: center; }
    .lg-notice { margin-bottom: 16px; }
    .lg-box .field label { font-size: 13px; font-weight: 500; color: var(--text); }
    .lg-box .field input { height: 52px; border-color: var(--line); }
    :root:not([data-theme="light"]) .lg-box .field input { background: #1b1514; }
    .lg-box .field input:focus { border-color: var(--red); outline: none; }
    .lg-box .field.has-error input { border-color: var(--red-text); }
}
@media (max-width: 380px) { .lg-box, :root:not([data-theme="light"]) .lg-box { padding-left: 18px; padding-right: 18px; } .lg-brand { left: 16px; gap: 8px; } .lg-logo { font-size: 22px; top: 2.5px; } .lg-tools { right: 6px; gap: 0; } .lg-tools .theme-tgl, .lg-tools .nav-lang-btn { width: 40px; } }
