/* ═════════════════════════════════════════════════════════════════════════
   SIGN · Login — editorial campaign + white auth card
   Desktop reference: 1536 × 1024. Palette: black / electric blue / pale cool.
   Scoped entirely under .lg-page so nothing else on the storefront is touched.
   ═════════════════════════════════════════════════════════════════════════ */

.lg-page {
  --lg-black:  #000000;
  --lg-ink:    #0b0d10;
  --lg-blue:   #087bff;
  --lg-blue-d: #0058d9;
  --lg-navy:   #06111f;
  --lg-pale:   #f5f8fc;
  --lg-border: #d9e0ea;
  --lg-sub:    #565a64;
  --lg-muted:  #7b8495;

  width: 100%;
  color: var(--lg-ink);
  background: var(--lg-pale);
}

.lg-page *,
.lg-page *::before,
.lg-page *::after { box-sizing: border-box; }

.lg-split {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 50% image · 50% login */
  min-height: clamp(680px, calc(100vh - 178px), 1100px);
}

/* ═══════════════════════════════════════════════════════════════════════
   LEFT · editorial campaign
   ═══════════════════════════════════════════════════════════════════════ */
.lg-camp {
  position: relative;
  display: flex;
  overflow: hidden;
  background: #090d13;
  color: #fff;
  isolation: isolate;
}

.lg-camp-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

/* Dark cinematic grade so white copy always reads; heavier at the base. */
.lg-camp-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 6, 11, .94) 0%, rgba(3, 6, 11, .72) 30%,
                            rgba(3, 6, 11, .40) 58%, rgba(3, 6, 11, .64) 100%),
    linear-gradient(0deg,  rgba(3, 6, 11, .92) 0%, rgba(3, 6, 11, .34) 36%, rgba(3, 6, 11, 0) 62%),
    linear-gradient(180deg, rgba(3, 6, 11, .52) 0%, rgba(3, 6, 11, 0) 42%);
  pointer-events: none;
}

.lg-camp-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
  padding: 54px 46px 40px 80px;
}

.lg-eyebrow {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: #fff;
}

.lg-headline {
  margin: 0;
  font-family: "Inter", "DM Sans", system-ui, -apple-system, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(40px, 4.1vw, 58px);
  line-height: 1.02;
  letter-spacing: -.015em;
  color: #fff;
}
.lg-headline span { color: var(--lg-blue); }

.lg-lede {
  max-width: 300px;
  margin: 22px 0 0;
  font-size: 16px;
  line-height: 1.4;
  color: rgba(255, 255, 255, .88);
}

.lg-benefits {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.lg-benefit { display: flex; align-items: center; gap: 16px; }
.lg-benefit-ico {
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  font-size: 30px;
  line-height: 1;
  color: #fff;
}
.lg-benefit-copy { display: flex; flex-direction: column; gap: 2px; }
.lg-benefit-copy b { font-size: 14.5px; font-weight: 600; color: #fff; }
.lg-benefit-copy small { font-size: 13px; color: rgba(255, 255, 255, .66); }

/* ── lower-left gallery + slogan ─────────────────────────────────────── */
.lg-camp-bottom { display: flex; flex-direction: column; gap: 22px; }

.lg-gallery { display: flex; gap: 10px; }
.lg-tile {
  position: relative;
  flex: 0 0 122px;
  width: 122px;
  height: 150px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .05);
}
.lg-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .55s ease;
}
.lg-tile:hover img { transform: scale(1.06); }

.lg-slogan { text-align: left; }
.lg-slogan-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: #fff;
}
.lg-slogan-kicker i { display: block; width: 52px; height: 1px; background: rgba(255, 255, 255, .5); }
.lg-slogan-script {
  display: block;
  margin-top: 12px;
  font-family: "Permanent Marker", "Caveat", cursive;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1;
  color: var(--lg-blue);
  transform: rotate(-2deg);
}

.lg-star {
  position: absolute;
  z-index: 2;
  top: 58px;
  right: 62px;
  width: 110px;
  height: 148px;
  opacity: .92;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════════
   RIGHT · authentication panel
   ═══════════════════════════════════════════════════════════════════════ */
.lg-auth {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 56px 48px;
  background: var(--lg-pale);
}
.lg-auth::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 78% at 100% 0%, rgba(8, 123, 255, .07), transparent 56%),
    linear-gradient(135deg, #ffffff 0%, #eef3f9 62%, #e4ebf5 100%);
  pointer-events: none;
}

/* faint vertical brand line down the far-right edge */
.lg-auth-vertical {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: rgba(6, 17, 31, .2);
  pointer-events: none;
  user-select: none;
}

.lg-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 545px;
  padding: 40px 44px 42px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 30px 72px -34px rgba(6, 17, 31, .34);
}

.lg-brand { display: inline-block; margin-bottom: 26px; }
.lg-brand img { display: block; height: 34px; width: auto; }

.lg-welcome {
  margin: 0;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--lg-ink);
}
.lg-sub { margin: 8px 0 0; font-size: 15.5px; color: var(--lg-sub); }

/* ── Tabs ────────────────────────────────────────────────────────────── */
.lg-tabs {
  display: flex;
  gap: 30px;
  margin: 24px 0 26px;
  border-bottom: 1px solid #e7ecf3;
}
.lg-tab {
  position: relative;
  padding: 0 2px 13px;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--lg-muted);
  cursor: pointer;
  transition: color .15s ease;
}
.lg-tab:hover { color: #3a4250; }
.lg-tab.is-active { color: var(--lg-ink); font-weight: 800; }
.lg-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 3px;
  background: var(--lg-blue);
}

.lg-panel { display: none; }
.lg-panel.is-active { display: block; }

.lg-alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0 0 18px;
  padding: 11px 14px;
  border: 1px solid rgba(180, 40, 43, .26);
  border-radius: 9px;
  background: rgba(180, 40, 43, .06);
  color: #b4282b;
  font-size: 13.5px;
  line-height: 1.4;
}
.lg-alert i { margin-top: 1px; }

/* ── Fields ──────────────────────────────────────────────────────────── */
.lg-field { margin: 0 0 18px; }
.lg-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--lg-ink);
}
.lg-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.lg-input { position: relative; display: flex; align-items: center; }
.lg-input > i {
  position: absolute;
  left: 16px;
  font-size: 17px;
  color: var(--lg-ink);
  pointer-events: none;
}
.lg-input input {
  width: 100%;
  height: 49px;
  padding: 0 46px;
  border: 1px solid var(--lg-border);
  border-radius: 9px;
  background: #fff;
  color: var(--lg-ink);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.lg-input input::placeholder { color: #9aa4b2; }
.lg-input input:hover { border-color: #c3cedb; }
.lg-input input:focus { border-color: var(--lg-blue); box-shadow: 0 0 0 3px rgba(8, 123, 255, .14); }
.lg-input input.has-error { border-color: rgba(180, 40, 43, .6); }
.lg-input input.has-error:focus { box-shadow: 0 0 0 3px rgba(180, 40, 43, .12); }

.lg-eye {
  position: absolute;
  right: 11px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--lg-ink);
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
}
.lg-eye:hover { background: #f1f5fa; }
.lg-eye svg { width: 20px; height: 20px; }
.lg-eye:focus-visible { outline: 2px solid rgba(8, 123, 255, .5); outline-offset: 1px; }

.lg-err { margin: 7px 2px 0; font-size: 12.5px; line-height: 1.35; color: #b4282b; }
.lg-err:empty { display: none; }

/* ── Remember / forgot row ───────────────────────────────────────────── */
.lg-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 0 22px;
}
.lg-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--lg-ink);
  cursor: pointer;
  user-select: none;
}
.lg-check input {
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  margin: 0;
  border: 1px solid #c7d0dc;
  border-radius: 5px;
  background: #fff;
  display: grid;
  place-content: center;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.lg-check input::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px) scale(0);
  transition: transform .12s ease;
}
.lg-check input:checked { background: var(--lg-blue); border-color: var(--lg-blue); }
.lg-check input:checked::after { transform: rotate(-45deg) translateY(-1px) scale(1); }
.lg-check input:focus-visible { outline: 2px solid rgba(8, 123, 255, .5); outline-offset: 2px; }

.lg-forgot { font-size: 13.5px; font-weight: 500; color: var(--lg-blue); text-decoration: none; }
.lg-forgot:hover { text-decoration: underline; }

/* ── Primary button ──────────────────────────────────────────────────── */
.lg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--lg-blue);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, transform .12s ease;
}
.lg-btn:hover { background: var(--lg-blue-d); }
.lg-btn:active { transform: scale(.995); }
.lg-btn:focus-visible { outline: 3px solid rgba(8, 123, 255, .35); outline-offset: 2px; }
.lg-btn:disabled { opacity: .7; cursor: default; }
.lg-btn i { font-size: 16px; }

/* ── OR divider + social ─────────────────────────────────────────────── */
.lg-or { display: flex; align-items: center; gap: 16px; margin: 26px 0 18px; }
.lg-or span { flex: 1; height: 1px; background: #e3e9f1; }
.lg-or b {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--lg-muted);
}

.lg-social { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lg-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--lg-border);
  border-radius: 8px;
  background: #fff;
  color: var(--lg-ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.lg-social-btn:hover { background: #f7fafd; border-color: #c3cedb; }
.lg-social-btn:focus-visible { outline: 3px solid rgba(8, 123, 255, .3); outline-offset: 2px; }
.lg-social-btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.lg-social-btn .a { width: 15px; height: 18px; }

/* ── Create-account row ──────────────────────────────────────────────── */
.lg-create { margin: 26px 0 0; font-size: 13.5px; color: #3a4250; }
.lg-create a { margin-left: 4px; color: var(--lg-blue); font-weight: 600; text-decoration: none; white-space: nowrap; }
.lg-create a:hover { text-decoration: underline; }
.lg-create i { font-size: 14px; }

/* ═══════════════════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 1280px) {
  .lg-camp-inner { padding: 46px 34px 34px 56px; }
  .lg-camp-bottom { gap: 18px; }
}

/* Small screens (tablets and phones): the form owns the page. The editorial
   image is dropped, and the card is pinned near the top — never centred in a
   tall empty column — so it reads as a full-width, properly-sized form. */
@media (max-width: 1024px) {
  .lg-split { grid-template-columns: 1fr; min-height: 0; }
  .lg-camp { display: none; }
  .lg-auth {
    min-height: calc(100vh - 178px);
    align-items: flex-start;   /* top-aligned: no floating in a void */
    padding: 36px 24px 72px;
  }
  .lg-auth-vertical { display: none; }
  .lg-card { max-width: 600px; }
}

/* Phones: tighten the padding, fill the width and stack the two-up fields. */
@media (max-width: 767px) {
  .lg-auth { padding: 20px 16px 48px; }
  .lg-card { max-width: 100%; padding: 26px 20px 28px; border-radius: 14px; }
  .lg-welcome { font-size: 30px; }
  .lg-two,
  .lg-social { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .lg-page *,
  .lg-page *::before,
  .lg-page *::after { transition: none !important; animation: none !important; }
}
