/* ==========================================================================
   Login: sunset stadium with helmet, bat and ball; gold title on the left,
   light sign-in card on the right with gold/blue corner ribbons.
   ========================================================================== */
:root {
  --lg-navy: #0E1F4D;
  --lg-navy-2: #13306F;
  --lg-blue: #1747A6;
  --lg-blue-dark: #0B2F7E;
  --lg-gold: #F6C343;
  --lg-gold-deep: #D99A12;
  --lg-ink: #1E2A44;
  --lg-muted: #6B7690;
  --lg-line: #C9D3E3;
  --lg-red: #C8202D;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }

.lg-body {
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--lg-ink);
  background-color: #1B3C8C;
  background-image:
    linear-gradient(180deg, rgba(8, 26, 84, .38) 0%, rgba(8, 26, 84, 0) 42%),
    url("../img/login/login-bg.jpg");
  background-size: cover;
  background-position: 30% 100%;
  background-repeat: no-repeat;
  overflow-x: hidden;
}

/* blue + gold ribbon in the page's top-left corner */
.lg-ribbon { position: fixed; top: 0; left: 0; width: 360px; height: 160px; pointer-events: none; z-index: 0; overflow: hidden; }
.lg-ribbon::before, .lg-ribbon::after { content: ""; position: absolute; left: -80px; transform: rotate(-24deg); transform-origin: left top; }
.lg-ribbon::before { top: 80px; width: 330px; height: 26px; background: linear-gradient(90deg, #0B2F7E, #1E57C8); box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.lg-ribbon::after  { top: 112px; width: 300px; height: 9px; background: linear-gradient(90deg, #C98B12, var(--lg-gold), #FFE08A); }

.lg-wrap {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 3vw;
  padding: 4vh 2.4vw 5vh 3vw;
  max-width: 1760px; margin: 0 auto;
}

/* ---- gold title, top left -------------------------------------------------- */
.lg-hero { align-self: start; justify-self: center; text-align: center; padding-top: 9vh; }
.lg-title {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-style: italic; font-weight: 800;
  font-size: clamp(2.4rem, 5.4vw, 7rem); line-height: .95; letter-spacing: -.005em; white-space: nowrap;
  background: linear-gradient(180deg, #FFF3C4 0%, #FFD761 30%, #F2B01E 52%, #C98B12 64%, #F6C343 82%, #FFE7A1 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1px rgba(120, 72, 0, .35);
  filter: drop-shadow(0 4px 0 rgba(70, 40, 0, .35)) drop-shadow(0 10px 22px rgba(0, 12, 60, .45));
  padding: 0 .1em; /* keeps the italic overhang inside the clipped text */
}
.lg-rule { display: flex; align-items: center; justify-content: center; gap: .9rem; width: 78%; margin: 0 auto 1.1rem; }
.lg-rule span { flex: 1; height: 3px; border-radius: 2px; background: linear-gradient(90deg, rgba(246, 195, 67, 0), var(--lg-gold)); }
.lg-rule span:last-child { background: linear-gradient(90deg, var(--lg-gold), rgba(246, 195, 67, 0)); }
.lg-rule i { width: 12px; height: 12px; flex: none; transform: rotate(45deg); background: linear-gradient(135deg, #FFE7A1, var(--lg-gold), #C98B12);
  box-shadow: 0 2px 8px rgba(0, 12, 60, .4); }
.lg-underline { display: block; width: 92%; height: clamp(10px, 1.3vw, 20px); margin: .6rem auto 0; }
.lg-tagline {
  margin-top: 1rem; color: #fff;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-style: italic; font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 2.9rem); letter-spacing: .14em;
  text-shadow: 0 3px 14px rgba(0, 12, 60, .55);
}
.lg-tagline i { color: var(--lg-gold); font-style: normal; margin: 0 .55em; }

/* ---- sign-in card, right ----------------------------------------------------- */
.lg-card {
  position: relative; overflow: hidden;
  align-self: stretch;
  display: flex; flex-direction: column; justify-content: center;
  min-height: calc(100vh - 9vh);
  padding: 2.2rem 2.4rem 7.5rem;
  background: linear-gradient(180deg, rgba(248, 250, 255, .97) 0%, rgba(236, 242, 252, .95) 100%);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(4, 18, 64, .35);
}
.lg-corner { position: absolute; width: 150px; height: 150px; pointer-events: none; z-index: 2; }
.lg-corner::before, .lg-corner::after { content: ""; position: absolute; transform: rotate(-45deg); }
.lg-corner-tl { top: 0; left: 0; }
.lg-corner-tl::before { width: 190px; height: 18px; top: 34px; left: -62px; background: linear-gradient(90deg, #C98B12, var(--lg-gold), #FFE08A); }
.lg-corner-tl::after  { width: 190px; height: 11px; top: 58px; left: -56px; background: var(--lg-blue); }
.lg-corner-br { right: 0; bottom: 0; }
.lg-corner-br::before { width: 190px; height: 18px; bottom: 34px; right: -62px; background: linear-gradient(90deg, #FFE08A, var(--lg-gold), #C98B12); }
.lg-corner-br::after  { width: 190px; height: 11px; bottom: 58px; right: -56px; background: var(--lg-blue); }

.lg-logo { display: flex; align-items: center; justify-content: center; gap: .3rem; margin: 0 auto 1.6rem; }
.lg-mark { width: 150px; height: auto; flex: none; }
.lg-logo-text { position: relative; display: flex; flex-direction: column; padding-top: 1.2rem; }
.lg-logo-text span {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-style: italic; font-weight: 800;
  font-size: 2.9rem; line-height: .95; color: var(--lg-navy-2); letter-spacing: -.01em;
}
.lg-logo-text span + span { margin-left: .55em; }
.lg-ball { position: absolute; width: 66px; height: 41px; right: -34px; top: -12px; }
.lg-logo-swoosh { display: block; width: 115%; height: 10px; margin: .25rem 0 0 -.6rem; }

.lg-card h1 { margin: 0; text-align: center; color: var(--lg-navy); font-size: clamp(2.1rem, 3vw, 3rem); font-weight: 800; letter-spacing: -.02em; }
.lg-sub { margin: .5rem 0 2.1rem; text-align: center; color: var(--lg-ink); font-size: 1.15rem; }

.lg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.lg-field { position: relative; margin-bottom: 1.2rem; }
.lg-field input {
  width: 100%; height: 4rem; padding: 0 3.4rem 0 4.4rem;
  background: #fff; color: var(--lg-ink);
  border: 1px solid var(--lg-line); border-radius: 9px;
  font: inherit; font-size: 1.05rem;
  box-shadow: 0 1px 2px rgba(14, 31, 77, .05);
  transition: border-color .15s, box-shadow .15s;
}
.lg-field input::placeholder { color: #7D879C; }
.lg-field input:focus { outline: none; border-color: var(--lg-blue); box-shadow: 0 0 0 3px rgba(23, 71, 166, .18); }
.lg-ico {
  position: absolute; left: 0; top: 0; bottom: 0; width: 3.5rem;
  display: flex; align-items: center; justify-content: center; pointer-events: none;
}
.lg-ico::after { content: ""; position: absolute; right: 0; top: 22%; bottom: 22%; width: 1px; background: var(--lg-line); }
.lg-ico svg { width: 1.45rem; height: 1.45rem; fill: none; stroke: var(--lg-navy); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.lg-ico svg.solid { fill: var(--lg-navy); stroke: none; }
.lg-eye {
  position: absolute; right: .55rem; top: 50%; transform: translateY(-50%);
  width: 2.6rem; height: 2.6rem; border: 0; border-radius: 6px; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--lg-muted);
}
.lg-eye svg { width: 1.45rem; height: 1.45rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.lg-eye .open { display: none; }
.lg-eye.on .shut { display: none; }
.lg-eye.on .open { display: block; }
.lg-eye:hover { background: #EEF2FA; color: var(--lg-navy); }
.lg-eye:focus-visible { outline: 2px solid var(--lg-blue); }

.lg-submit {
  margin-top: 1.4rem;
  width: 100%; height: 4.1rem; border: 0; border-radius: 9px; cursor: pointer;
  background: linear-gradient(180deg, #1E57C8 0%, var(--lg-blue) 45%, var(--lg-blue-dark) 100%);
  color: #fff; font: inherit; font-size: 1.3rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: .7rem;
  box-shadow: 0 10px 24px rgba(11, 47, 126, .35), inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: filter .15s, transform .1s;
}
.lg-submit svg { width: 1.45rem; height: 1.45rem; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.lg-submit:hover { filter: brightness(1.08); }
.lg-submit:hover svg { transform: translateX(3px); }
.lg-submit:active { transform: translateY(1px); }
.lg-submit:focus-visible { outline: 3px solid var(--lg-gold); outline-offset: 3px; }
.lg-submit:disabled { opacity: .75; cursor: progress; }

.lg-powered {
  display: flex; align-items: center; gap: 1rem; margin-top: 2.2rem;
  color: var(--lg-navy-2); font-style: italic; font-size: .98rem; font-weight: 500;
}
.lg-powered::before, .lg-powered::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(19, 48, 111, 0), rgba(19, 48, 111, .35)); }
.lg-powered::after { background: linear-gradient(90deg, rgba(19, 48, 111, .35), rgba(19, 48, 111, 0)); }

.lg-crowd { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 6.5rem; object-fit: cover; object-position: center bottom; pointer-events: none; opacity: .5; }

.lg-alert { border-radius: 8px; padding: .75rem 1rem; margin: -.6rem 0 1.3rem; font-size: .95rem; }
.lg-alert-err { background: #FDECEE; border: 1px solid #F5B5BF; color: #8E1526; }
.lg-alert-ok { background: #E7F7ED; border: 1px solid #A8E0BC; color: #0F6A33; }
.lg-alert-wait { background: #FFF6DE; border: 1px solid #F2D58A; color: #6E4E00; }
.lg-signup { margin: 1rem 0 0; text-align: center; font-size: .95rem; color: #4A5878; }
.lg-signup a { font-weight: 700; color: #13306F; }

/* ---- laptops ----------------------------------------------------------------- */
@media (max-width: 1200px) {
  .lg-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); }
  .lg-title { font-size: clamp(2.4rem, 4.5vw, 7rem); }
  .lg-card { padding-left: 1.9rem; padding-right: 1.9rem; }
}

/* ---- short screens (e.g. 1366×768, 1280×720): keep everything on one screen */
@media (min-width: 861px) and (max-height: 800px) {
  .lg-card { padding-top: 1.6rem; padding-bottom: 5.8rem; }
  .lg-logo { margin-bottom: .8rem; }
  .lg-mark { width: 112px; }
  .lg-logo-text span { font-size: 2.3rem; }
  .lg-ball { width: 56px; height: 35px; right: -28px; }
  .lg-rule { margin-bottom: .7rem; }
  .lg-sub { margin-bottom: 1.3rem; }
  .lg-field input { height: 3.4rem; }
  .lg-submit { height: 3.5rem; margin-top: 1rem; }
  .lg-powered { margin-top: 1.2rem; }
  .lg-crowd { height: 5.4rem; }
}

/* ---- phones and small tablets: title on top, card underneath ---------------- */
@media (max-width: 860px) {
  .lg-body {
    background-image:
      linear-gradient(180deg, rgba(8, 26, 84, .45) 0%, rgba(8, 26, 84, .1) 40%, rgba(8, 26, 84, .25) 100%),
      url("../img/login/login-bg-sm.jpg");
    background-position: 22% 100%;
  }
  .lg-wrap { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; padding: 2.2rem 16px 2.5rem; }
  .lg-hero { padding-top: 0; max-width: 100%; }
  .lg-title { font-size: clamp(1.9rem, 9.4vw, 4.2rem); }
  .lg-tagline { font-size: clamp(1.1rem, 5vw, 1.8rem); margin-top: .6rem; }
  .lg-card { min-height: 0; max-width: 520px; width: 100%; justify-self: center; padding: 1.8rem 1.25rem 6.4rem; }
  .lg-mark { width: 104px; }
  .lg-logo-text span { font-size: 2.1rem; }
  .lg-field input { height: 3.6rem; }
  .lg-submit { height: 3.7rem; }
  .lg-rule { width: 70%; margin-bottom: .6rem; }
  .lg-ball { width: 46px; height: 29px; right: -22px; }
  .lg-ribbon { transform: scale(.6); transform-origin: top left; }
  .lg-corner { transform: scale(.7); }
  .lg-corner-tl { transform-origin: top left; }
  .lg-corner-br { transform-origin: bottom right; }
}

@media (prefers-reduced-motion: reduce) {
  .lg-submit, .lg-submit svg, .lg-field input { transition: none; }
}
