/* Login portale (#1133) — stile landing «Fascicolo», prefisso lx-. Caricato dopo landing.css. */
.lx [hidden] { display: none !important; }
.lx-login-page { min-height: 100vh; display: flex; flex-direction: column; }
.lx-login {
  position: relative; flex: 1; overflow: hidden;
  padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 104px);
  background:
    radial-gradient(600px 340px at 82% 18%, rgba(255,212,42,.22), transparent 70%),
    radial-gradient(520px 320px at 8% 92%, rgba(255,212,42,.12), transparent 70%),
    var(--lx-soft-3);
}
.lx-login::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--lx-line-3) 1px, transparent 1px),
    linear-gradient(90deg, var(--lx-line-3) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 80%);
}
.lx-login__grid { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.lx-login__eyebrow { font-family: var(--lx-font-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--lx-muted); }
.lx-login__title { font-family: var(--lx-font-display); font-weight: 800; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -.02em; margin-top: 14px !important; color: var(--lx-ink); }
.lx-login__title mark { background: linear-gradient(transparent 62%, var(--lx-accent) 62%); color: inherit; padding: 0 2px; }
.lx-login__lead { margin-top: 18px !important; font-size: 18px; color: var(--lx-ink-2); max-width: 34em; }
.lx-login__lead strong { color: var(--lx-ink); }
.lx-login__points { list-style: none; padding: 0 !important; margin-top: 28px !important; display: grid; gap: 10px; }
.lx-login__points li { display: flex; gap: 10px; align-items: baseline; color: var(--lx-ink-2); font-size: 15px; }
.lx-login__points li::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--lx-accent); border: 1px solid var(--lx-ink); border-radius: 1px; transform: translateY(-1px); }

.lx-card {
  background: var(--lx-paper); border: 1px solid var(--lx-line); border-radius: var(--lx-radius-lg);
  box-shadow: 0 1px 0 var(--lx-line-3), 0 24px 48px -24px rgba(17,20,24,.22);
  padding: clamp(24px, 3.4vw, 40px); position: relative;
}
.lx-card::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 4px; background: var(--lx-ink); border-radius: var(--lx-radius-lg) var(--lx-radius-lg) 0 0; }
.lx-card__eyebrow { font-family: var(--lx-font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--lx-muted); }
.lx-card__title { font-family: var(--lx-font-display); font-weight: 700; font-size: 26px; line-height: 1.2; margin-top: 6px !important; }
.lx-card__stack { display: grid; gap: 14px; margin-top: 24px; }

.lx-alert { border: 1px solid; border-left-width: 4px; border-radius: var(--lx-radius); padding: 12px 14px; font-size: 14px; line-height: 1.5; display: flex; gap: 10px; }
.lx-alert svg { flex: none; margin-top: 2px; }
.lx-alert--info { background: var(--lx-soft); border-color: var(--lx-line-2); border-left-color: var(--lx-ink); color: var(--lx-ink); }
.lx-alert--ok { background: #EEF7F2; border-color: #B9DCC9; border-left-color: var(--lx-ok); color: #134D30; }
.lx-alert--warn { background: var(--lx-warn-bg); border-color: #F0CFA8; border-left-color: var(--lx-warn); color: #6E2D00; }
.lx-alert--danger { background: #FDF0F0; border-color: #EDC0C0; border-left-color: #B42318; color: #7A1A12; }

.lx-sso { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; width: 100%; padding: 0 20px;
  border: 1px solid var(--lx-line-2); border-radius: var(--lx-radius); background: var(--lx-paper); color: var(--lx-ink) !important;
  font: 600 16px/1 var(--lx-font-body); text-decoration: none; transition: border-color .15s, background .15s; }
.lx-sso:hover { border-color: var(--lx-ink); background: var(--lx-soft-3); }
.lx-sso svg { width: 20px; height: 20px; }
.lx-or { display: flex; align-items: center; gap: 12px; margin: 6px 0; font-family: var(--lx-font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--lx-muted); }
.lx-or::before, .lx-or::after { content: ""; flex: 1; height: 1px; background: var(--lx-line); }

.lx-field { display: grid; gap: 6px; }
.lx-field label { font-weight: 600; font-size: 14px; color: var(--lx-ink); }
.lx-field input { min-height: 48px; padding: 0 14px; border: 1px solid var(--lx-input); border-radius: var(--lx-radius); font: 400 16px var(--lx-font-body); color: var(--lx-ink); background: var(--lx-paper); }
.lx-field input::placeholder { color: var(--lx-muted); }
.lx-field input:focus-visible { outline: 2px solid var(--lx-ink); outline-offset: 2px; border-color: var(--lx-ink); }
.lx-field input[aria-invalid="true"] { border-color: #B42318; }
.lx-field__hint { font-size: 13px; color: var(--lx-muted); }
.lx-submit { width: 100%; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; }
.lx-submit[aria-busy="true"] { cursor: progress; opacity: .85; }
.lx-spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: lx-spin .8s linear infinite; }
@keyframes lx-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lx-spin { animation: none; border-right-color: currentColor; opacity: .6; } }
.lx-card__help { margin-top: 22px !important; padding-top: 18px; border-top: 1px solid var(--lx-line-3); font-size: 14px; color: var(--lx-muted); }
.lx-card__help a { color: var(--lx-ink); font-weight: 600; text-underline-offset: 3px; }
.lx-card__legal { margin-top: 10px !important; font-size: 13px; color: var(--lx-muted); }
.lx-card__legal a { color: var(--lx-ink-2); text-underline-offset: 2px; }
.lx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


@media (max-width: 920px) {
  .lx-login__grid { grid-template-columns: 1fr; }
  .lx-login__points { display: none; }
  .lx-login__lead { font-size: 16px; }
}

/* #1133: form magic link dentro lo stack senza doppio margine; «Accedi» = pagina corrente. */
.lx-card__stack--flush { margin-top: 0; }
.lx-header__login[aria-current="page"] { font-weight: 600; text-decoration: underline; text-decoration-color: var(--lx-accent); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.lx-sso:focus-visible, .lx-submit:focus-visible, .lx-card__help a:focus-visible, .lx-alert a:focus-visible { outline: 2px solid var(--lx-ink); outline-offset: 2px; }
.lx-alert a { color: inherit; text-decoration: underline; }
