html { overflow-x: hidden; max-width: 100%; }
body.lg-login {
  margin: 0;
  width: 100%;
  max-width: 100%;
  background: #f6f2fb;
  color: #24143a;
  font-family: "DM Sans", Arial, sans-serif;
  overflow-x: hidden;
  touch-action: pan-y;
}
body.lg-login *, body.lg-login *::before, body.lg-login *::after { box-sizing: border-box; }
body.lg-login a { text-decoration: none; }
.lg-nav {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 18px;
  width: 100%; max-width: 100%; min-height: 68px; padding: 0 28px;
  background: #fff; border-bottom: 1px solid #efe6f6;
}
.lg-brand { min-width: 0; }
.lg-brand img { height: 32px; width: auto; max-width: 100%; display: block; }
.lg-nav nav { display: flex; align-items: center; gap: 22px; margin-left: 18px; }
.lg-nav nav a { color: #24143a; font-size: 15px; font-weight: 600; }
.lg-nav nav a:hover { color: #3D0191; }
.lg-acts { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lg-in, .lg-access {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 0 16px; border-radius: 999px; font-weight: 700; font-size: 15px;
}
.lg-in { background: #fff; color: #3D0191; border: 1.5px solid #d9c4ef; }
.lg-access { background: linear-gradient(100deg, #3D0191, #800182); color: #fff; }
.lg-menu {
  display: none; width: 40px; height: 40px; border: 0; background: transparent; padding: 0;
}
.lg-menu span { display: block; height: 2px; margin: 5px 8px; background: #3D0191; border-radius: 2px; }
.lg-stage {
  width: min(1180px, calc(100% - 32px));
  margin: 22px auto 28px;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  min-height: 640px; border-radius: 28px; overflow: hidden;
  background: #fff; box-shadow: 0 18px 50px #3d01911f;
}
.lg-hero {
  position: relative; color: #fff; padding: 48px 40px 32px;
  background:
    radial-gradient(circle at 82% 58%, #e7b32555, transparent 18%),
    radial-gradient(circle at 70% 38%, #c45cff66, transparent 26%),
    linear-gradient(155deg, #6a1fd4 0%, #3D0191 42%, #6d12b8 100%);
  overflow: hidden;
}
.lg-hero h1 { margin: 0; max-width: 460px; font-size: clamp(40px, 4.2vw, 58px); line-height: 1.02; font-weight: 700; letter-spacing: -.8px; }
.lg-hero h1 em { font-style: normal; color: #f0b429; }
.lg-hero > p { max-width: 360px; margin: 18px 0 26px; font-size: 16px; line-height: 1.45; color: #f4e9ff; }
.lg-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; max-width: 300px; position: relative; z-index: 1; }
.lg-points li { display: flex; gap: 12px; align-items: center; }
.lg-points strong, .lg-points span { display: block; }
.lg-points strong { font-size: 15px; font-weight: 700; }
.lg-points span { font-size: 13px; color: #eadcff; }
.lg-ico {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: rgba(255,255,255,.16);
}
.lg-art {
  position: absolute; right: -6px; bottom: 0; width: min(58%, 430px); height: auto; max-height: 82%;
  object-fit: contain; object-position: right bottom; pointer-events: none; user-select: none;
}
.lg-card { padding: 36px 40px 28px; background: #fff; }
.lg-card-logo { height: 38px; width: auto; display: block; margin-bottom: 16px; }
.lg-card h2 { margin: 0; font-size: 34px; font-weight: 700; color: #1c1230; letter-spacing: -.03em; }
.lg-card .subtitle { margin: 8px 0 18px; color: #6d6280; font-size: 15px; }
.lg-step { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-weight: 700; color: #3D0191; }
.lg-step i {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: #3D0191; color: #fff; font-style: normal; font-size: 12px;
}
#walletButton, #continueButton, .lg-demo {
  width: 100%; min-height: 48px; border-radius: 12px; border: 0;
  font: inherit; font-weight: 700; cursor: pointer;
}
#walletButton {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(100deg, #3D0191, #6a02a8); color: #fff;
}
#walletButton svg { width: 18px; height: 18px; }
.wallet-msg { margin: 10px 0 0; color: #6d6280; font-size: 13px; line-height: 1.45; }
.wallet-msg.error { color: #DB334B; }
.wallet-msg.success { color: #078646; }
#authForm { margin-top: 14px; }
#continueButton { background: #efe4f8; color: #b7a4cc; }
#continueButton:not(:disabled) { background: linear-gradient(100deg, #3D0191, #800182); color: #fff; }
#continueButton:disabled { cursor: not-allowed; }
.feedback { display: none; margin-top: 10px; color: #3D0191; font-size: 13px; }
.feedback.show { display: block; }
.lg-note {
  display: flex; gap: 8px; margin: 16px 0; padding: 12px; border-radius: 12px;
  background: #f7f3fb; color: #6a5c80; font-size: 13px; line-height: 1.45;
}
.lg-note b { color: #3D0191; }
.lg-links { margin: 8px 0; text-align: center; color: #5c516e; font-size: 14px; }
.lg-links a { color: #3D0191; font-weight: 700; }
.lg-demo {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px;
  background: #fff; color: #3D0191; border: 1.5px solid #d9c4ef;
}
.lg-safe { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 0; color: #8a7b9e; font-size: 12px; }
.lg-safe svg { flex: none; }
@media (max-width: 900px) {
  .lg-nav { min-height: 68px; gap: 8px; padding: 0 12px; }
  .lg-brand { flex: 1 1 auto; }
  .lg-brand img { height: 32px; }
  .lg-in { display: none; }
  .lg-access { min-height: 40px; padding: 0 14px; font-size: 14px; white-space: nowrap; }
  .lg-menu { display: inline-block; flex: none; margin-left: 0; }
  .lg-nav nav {
    display: none; position: absolute; left: 0; right: 0; top: 68px;
    width: 100%; margin: 0; padding: 8px 14px 14px; background: #fff;
    border-bottom: 1px solid #efe6f6; flex-direction: column; align-items: flex-start; gap: 12px;
  }
  .lg-nav.is-open nav { display: flex; }
  body.lg-login { height: 100dvh; min-height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
  .lg-stage {
    display: flex; flex-direction: column; align-items: stretch;
    flex: 1; width: calc(100% - 16px); max-width: 440px;
    margin: 8px auto 8px; min-height: 0;
    background: #fff; box-shadow: 0 12px 32px #3d01911a; border-radius: 20px; overflow: hidden;
  }
  .lg-hero {
    order: 1; display: flex; align-items: center; justify-content: center;
    flex: 0 0 168px; width: 100%; min-height: 0; margin: 0; padding: 8px;
    overflow: hidden;
  }
  .lg-hero h1, .lg-hero > p, .lg-points { display: none; }
  .lg-art {
    display: block; position: static; width: auto; max-width: 78%;
    height: 100%; max-height: 152px; margin: 0 auto;
    object-fit: contain; object-position: center;
  }
  .lg-card { order: 2; width: 100%; max-width: 100%; flex: 1; min-height: 0; padding: 12px 14px 10px; border-radius: 0; box-shadow: none; overflow: auto; }
  .lg-card-logo { height: 22px; margin-bottom: 6px; }
  .lg-card h2 { font-size: 22px; letter-spacing: -0.02em; }
  .lg-card .subtitle { margin: 2px 0 8px; font-size: 13px; line-height: 1.35; }
  .lg-step { margin-bottom: 8px; }
  #walletButton, #continueButton { width: 100%; max-width: 100%; min-height: 40px; }
  .wallet-msg { margin: 6px 0 0; font-size: 12px; line-height: 1.3; overflow-wrap: anywhere; }
  #authForm { margin-top: 8px; }
  .lg-note { margin: 8px 0; padding: 6px 8px; font-size: 12px; line-height: 1.3; }
  .lg-links, .lg-safe { overflow-wrap: anywhere; }
  .lg-links { margin: 2px 0; font-size: 13px; }
  .lg-demo { min-height: 36px; margin-top: 4px; font-size: 13px; }
  .lg-safe { margin-top: 6px; }
}
@media (max-width: 360px) {
  .lg-access { padding: 0 12px; }
}
