/* ==================================================================
   FansSport login — v5 "Cabina" (2026-11-13)
   Replaces the v4 split layout: the stadium photos run full-bleed behind
   the page and ONE centred card holds the form. Loaded after login.css,
   so equal-specificity rules here win. Markup and PHP are unchanged.
 * ================================================================== */

body.lg {
  display: block; padding: 0; min-height: 100vh; min-height: 100dvh;
  background: #05070b;
}

/* ---------- Stage: full-bleed photo behind everything ---------- */
body.lg .lg-stage {
  position: fixed; inset: 0; z-index: 0;
  padding: 0; border-radius: 0; background: none; box-shadow: none;
  perspective: none; animation: none;
}
body.lg .lg-screen {
  height: 100%; min-height: 0; border-radius: 0; box-shadow: none;
  padding: clamp(16px, 2.2vw, 30px);
  transform: none !important; transition: none;
}
/* grade: even dark veil + vignette so the card always reads; a warm cast from the bottom-left corner */
body.lg .lg-screen::before {
  background:
    radial-gradient(120% 90% at 50% 45%, rgba(5, 7, 11, .38) 0%, rgba(5, 7, 11, .78) 100%),
    linear-gradient(0deg, rgba(5, 7, 11, .70) 0%, rgba(5, 7, 11, 0) 40%),
    radial-gradient(60% 45% at 0% 100%, rgba(242, 106, 18, .22), transparent 70%);
}
/* the left-column pitch copy is gone: the card is the only message */
body.lg .lg-copy, body.lg .lg-pill { display: none; }
body.lg .lg-sheen { display: none; }
body.lg .lg-pitch { opacity: .5; }

/* ---------- Card ---------- */
body.lg .lg-side {
  position: relative; z-index: 2; isolation: auto;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 84px 16px 72px;
}
body.lg .lg-side::before { display: none; }
body.lg .lg-form {
  position: relative; width: 100%; max-width: 420px;
  padding: 34px 32px 26px;
  border-radius: 24px;
  background: color-mix(in srgb, var(--lg-core) 84%, transparent);
  -webkit-backdrop-filter: blur(22px) saturate(1.15); backdrop-filter: blur(22px) saturate(1.15);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .09),
    0 1px 0 rgba(255, 255, 255, .10) inset,
    0 28px 70px -18px rgba(0, 0, 0, .70),
    0 8px 20px -8px rgba(0, 0, 0, .45);
}
:root[data-theme="light"] body.lg .lg-form {
  background: color-mix(in srgb, #ffffff 90%, transparent);
  box-shadow: 0 0 0 1px rgba(20, 22, 27, .08), 0 28px 70px -20px rgba(0, 0, 0, .50), 0 8px 20px -10px rgba(0, 0, 0, .30);
}
/* the heading carries the message: no kicker label above it */
body.lg .lg-eyebrow { display: none; }
body.lg .lg-title { font-size: clamp(1.65rem, 2.6vw, 1.95rem); margin-bottom: 8px; }
body.lg .lg-sub { margin-bottom: 26px; font-size: .92rem; }
body.lg .lg-form .field { margin-bottom: 14px; }

/* ---------- Chrome: brand top-left, theme top-right, signature bottom ---------- */
body.lg .lg-top { position: absolute; z-index: 1; top: clamp(16px, 2.2vw, 30px); left: clamp(16px, 2.2vw, 30px); right: auto; }
body.lg .lg-theme {
  position: fixed; top: clamp(14px, 2vw, 26px); right: clamp(14px, 2vw, 26px); z-index: 4;
  color: #e8ebf0; background: rgba(5, 7, 11, .42); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
body.lg .lg-foot {
  position: absolute; left: 0; right: 0; bottom: 20px; padding: 0; text-align: center;
  color: rgba(228, 232, 240, .62); letter-spacing: .16em;
}

/* ---------- Phones: card nearly edge to edge, photo still behind ---------- */
@media (max-width: 960px) {
  body.lg .lg-screen { min-height: 0; height: 100%; padding: 14px; gap: 0; }
  body.lg .lg-side { padding: 74px 12px 56px; }
  body.lg .lg-form { padding: 26px 20px 20px; border-radius: 20px; max-width: 440px; }
  body.lg .lg-title { font-size: 1.6rem; }
  body.lg .lg-sub { margin-bottom: 20px; }
  body.lg .lg-foot { bottom: 14px; }
}
@media (max-height: 640px) {
  body.lg .lg-side { padding-top: 64px; padding-bottom: 44px; justify-content: flex-start; }
  body.lg .lg-form { padding-top: 20px; }
  body.lg .lg-meta { display: none; }
}
/* phones held sideways: keep the full-bleed photo (the v4 rule hid the stage) */
@media (max-height: 520px) and (orientation: landscape) {
  body.lg .lg-stage { display: block; }
  body.lg .lg-side { padding: 56px 16px 28px; }
  body.lg .lg-form { max-width: 460px; }
  body.lg .lg-theme { position: fixed; background: rgba(5, 7, 11, .42); color: #e8ebf0; }
}

/* ---------- v5.1 "Cristal líquido": formulario transparente ---------- */
body.lg .lg-form {
  background: linear-gradient(145deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .05) 45%, rgba(255, 255, 255, .09) 100%);
  -webkit-backdrop-filter: blur(26px) saturate(1.6) brightness(1.05); backdrop-filter: blur(26px) saturate(1.6) brightness(1.05);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .22),
    inset 0 1.5px 0 rgba(255, 255, 255, .45),
    inset 0 -1px 0 rgba(255, 255, 255, .08),
    inset 0 0 40px rgba(255, 255, 255, .05),
    0 30px 80px -20px rgba(0, 0, 0, .55);
}
:root[data-theme="light"] body.lg .lg-form {
  background: linear-gradient(145deg, rgba(255, 255, 255, .50), rgba(255, 255, 255, .22));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .6), inset 0 1.5px 0 rgba(255, 255, 255, .8), 0 30px 80px -20px rgba(0, 0, 0, .45);
}
body.lg .lg-title, body.lg .lg-form label { color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
body.lg .lg-sub { color: rgba(255, 255, 255, .78); text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
body.lg .lg-input {
  background: rgba(255, 255, 255, .10);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .20), inset 0 1px 0 rgba(255, 255, 255, .15);
}
body.lg .lg-input:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
body.lg .lg-input:focus-within { background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 170, 100, .8), 0 0 0 4px rgba(242, 106, 18, .15); }
body.lg .lg-form .lg-input input, body.lg .lg-form .lg-input input:hover, body.lg .lg-form .lg-input input:focus { background: transparent; box-shadow: none; color: #fff; }
body.lg .lg-form .lg-input input::placeholder { color: rgba(255, 255, 255, .5); }
body.lg .lg-meta, body.lg .lg-meta * { color: rgba(255, 255, 255, .7); }
