/* =========================================================
   Login page — calm dark starry look, warm gold accent
   Accent: #f0b25e (only accent colour)
   No glow / neon / backdrop-filter
   ========================================================= */

/* ---------- Layout shell ---------- */
.lg-wrap {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: calc(100vh - 120px);
  background: #070a18;
  color: #f7f4ee;
}

/* ---------- Art / hero side ---------- */
.lg-art {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
}

.lg-art-img {
  position: absolute;
  inset: 0;
  background: url("img_v6/home-v6-hero-b.jpg") 72% 100% / cover no-repeat;
}

.lg-art-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(7, 10, 24, .78) 0%,
    rgba(7, 10, 24, .25) 45%,
    rgba(7, 10, 24, 0) 70%
  );
}

.lg-art-in {
  position: relative;
  z-index: 2;
  padding: 0 40px 44px;
}

.lg-brand {
  font-family: var(--h1-font, "PingFang SC", "Microsoft YaHei", sans-serif);
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 400;
  letter-spacing: 2px;
  margin: 0 0 14px;
  text-shadow: 0 1px 14px rgba(5, 8, 20, .85);
}

.lg-brand em {
  font-style: normal;
  color: #f0b25e;
  font-family: var(--num-font, sans-serif);
  font-weight: 500;
}

.lg-count {
  font-size: 14px;
  letter-spacing: 2px;
  color: rgba(247, 244, 238, .78);
  margin: 0;
}

.lg-count b {
  font-family: var(--num-font, sans-serif);
  font-weight: 300;
  font-size: 20px;
  color: #f0b25e;
  font-variant-numeric: tabular-nums;
}

.lg-cap {
  position: absolute;
  right: 14px;
  bottom: 10px;
  z-index: 3;
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, .38);
}

/* ---------- Form panel ---------- */
.lg-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: #0b1028;
}

.lg-box {
  width: 100%;
  max-width: 400px;
}

.lg-box h1 {
  font-family: var(--h1-font, sans-serif);
  font-weight: 400;
  font-size: 28px;
  color: #f7f4ee;
  margin: 0 0 6px;
}

.lg-sub {
  color: rgba(247, 244, 238, .6);
  font-size: 14px;
  margin: 0 0 24px;
}

.lg-label {
  display: block;
  font-size: 13px;
  color: rgba(247, 244, 238, .7);
  margin: 16px 0 6px;
}

/* ---------- Fields ---------- */
.lg-phone,
.lg-code {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.lg-prefix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(247, 244, 238, .2);
  border-radius: 8px;
  color: rgba(247, 244, 238, .8);
  font-size: 14px;
}

.lg-phone input,
.lg-code input,
.lg-input {
  flex: 1;
  width: 100%;
  height: 46px;
  padding: 0 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(247, 244, 238, .2);
  border-radius: 8px;
  color: #f7f4ee;
  font-size: 15px;
  outline: none;
}

.lg-phone input:focus,
.lg-code input:focus,
.lg-input:focus {
  border-color: #f0b25e;
}

.lg-phone input::placeholder,
.lg-code input::placeholder,
.lg-input::placeholder {
  color: rgba(247, 244, 238, .35);
}

/* ---------- Buttons ---------- */
.lg-btn-ghost {
  min-width: 120px;
  height: 46px;
  padding: 0 14px;
  background: none;
  border: 1px solid #f0b25e;
  color: #f0b25e;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

.lg-btn-ghost:disabled {
  opacity: .5;
  cursor: not-allowed;
  border-color: rgba(247, 244, 238, .25);
  color: rgba(247, 244, 238, .6);
}

.lg-submit-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.lg-btn {
  height: 46px;
  padding: 0 34px;
  background: #f0b25e;
  color: #0d1330;
  border: none;
  border-radius: 99px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.lg-btn:disabled {
  background: rgba(247, 244, 238, .14);
  color: rgba(247, 244, 238, .4);
  cursor: not-allowed;
}

/* ---------- Messages / hints ---------- */
.lg-err {
  min-height: 18px;
  margin: 4px 0 0;
  font-size: 12.5px;
  color: #e8836f;
}

.lg-msg {
  min-height: 20px;
  margin: 12px 0 0;
  font-size: 13px;
  color: #f0b25e;
}

.lg-hint {
  font-size: 12.5px;
  color: rgba(247, 244, 238, .55);
}

.lg-hint[hidden] {
  display: none;
}

/* ---------- Consent ---------- */
.lg-agree {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  color: rgba(247, 244, 238, .7);
  margin-top: 14px;
  cursor: pointer;
}

.lg-agree a {
  color: #f0b25e;
  text-decoration: underline;
}

/* ---------- Links / footer rows ---------- */
.lg-forgot {
  text-align: right;
  margin: 8px 0 0;
  font-size: 13px;
}

.lg-forgot a {
  color: rgba(247, 244, 238, .7);
  text-decoration: underline;
}

.lg-switch {
  margin: 28px 0 0;
  text-align: center;
}

.lg-link {
  background: none;
  border: none;
  color: rgba(247, 244, 238, .55);
  font-size: 12.5px;
  text-decoration: underline;
  cursor: pointer;
}

.lg-back {
  text-align: center;
  margin: 14px 0 0;
  font-size: 13px;
}

.lg-back a {
  color: rgba(247, 244, 238, .55);
}

/* ---------- Form toggling ---------- */
[hidden] {
  display: none !important;
}

#emailForm[hidden],
#phoneForm[hidden] {
  display: none !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .lg-wrap {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    min-height: 0;
  }

  .lg-art {
    min-height: 150px;
  }

  .lg-art-img {
    background-position: 74% 100%;
  }

  .lg-art-in {
    padding: 0 20px 18px;
  }

  .lg-brand {
    font-size: 22px;
    margin-bottom: 6px;
  }

  .lg-count {
    font-size: 11px;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .lg-count b {
    font-size: 13px;
  }

  .lg-panel {
    padding: 28px 20px 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
