/* صفحه ورود (طراحی مرجع: docs/design-reference/login-redesign.png) — فرم سفید در راست، تصویرسازی روی زمینه نعنایی در چپ */
.lg-wrap {
  --lg-navy: #1b2550; --lg-ink: #3b4566; --lg-muted: #6b7591; --lg-line: #dfe4ec;
  --lg-green: #0e7a5f; --lg-green-d: #0a634d; --lg-green-50: #effaf6; --lg-orange: #f39a1d; --lg-mint: #e3f6ee;
  min-height: 100vh; display: grid; grid-template-columns: minmax(440px, 46%) minmax(0, 1fr); background: #fff; color: var(--lg-ink);
}

/* ---------- فرم ---------- */
.lg-form { display: grid; place-items: center; padding: 40px 48px; }
.lg-box { width: min(560px, 100%); }
.lg-brand { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.lg-logo { width: 92px; height: 92px; flex: none; display: grid; place-items: center; }
.lg-logo img { width: 100%; height: 100%; object-fit: contain; }
.lg-divider { width: 2px; height: 56px; border-radius: 2px; background: var(--lg-green); opacity: .7; flex: none; }
.lg-center { color: var(--lg-navy); font-size: 20px; font-weight: 900; line-height: 1.5; }
.lg-title { margin: 0; text-align: center; color: var(--lg-navy); font-size: 34px; font-weight: 900; line-height: 1.4; }
.lg-title::after { content: ''; display: block; width: 72px; height: 4px; margin: 6px auto 0; border-radius: 4px; background: var(--lg-orange); }
.lg-sub { margin: 10px 0 26px; text-align: center; color: var(--lg-muted); font-size: 16px; }

.lg-roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.lg-role { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 112px; padding: 14px 6px 12px;
  border: 1.5px solid var(--lg-line); border-radius: 16px; background: #fff; color: var(--lg-navy); font: inherit; font-weight: 800; cursor: pointer;
  box-shadow: 0 2px 6px rgba(27, 37, 80, .04); transition: border-color .15s, background .15s, box-shadow .15s, transform .15s; }
.lg-role:hover { border-color: #b9d9cd; transform: translateY(-1px); }
.lg-role.on { border: 2px solid var(--lg-green); background: var(--lg-green-50); box-shadow: 0 6px 18px rgba(14, 122, 95, .14); }
.lg-role:focus-visible { outline: 3px solid var(--lg-orange); outline-offset: 2px; }
.lg-rn { font-size: 15px; line-height: 1.3; text-align: center; }
.lg-check { position: absolute; top: 6px; left: 6px; display: none; }
.lg-role.on .lg-check { display: block; }

.lg-fields { display: flex; flex-direction: column; gap: 16px; }
.lg-field label { color: var(--lg-ink); font-weight: 700; font-size: 15px; }
.lg-input { height: 54px; border: 1.5px solid var(--lg-line); border-radius: 14px; background: #fff; font-size: 16px; padding-inline: 16px; }
.lg-input:focus { border-color: var(--lg-green); box-shadow: 0 0 0 4px rgba(14, 122, 95, .14); outline: none; }
.lg-pw { position: relative; }
.lg-pw .lg-input { padding-left: 56px; }
.lg-eye { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; cursor: pointer; }
.lg-eye:hover { background: #f2f5f9; }
.lg-eye:focus-visible { outline: 3px solid var(--lg-orange); outline-offset: 1px; }
.lg-submit { margin-top: 6px; height: 58px; border: 0; border-radius: 14px; background: var(--lg-green); color: #fff; font: inherit; font-size: 18px; font-weight: 900; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 10px 22px rgba(14, 122, 95, .25); transition: background .15s, transform .15s; }
.lg-submit:hover { background: var(--lg-green-d); }
.lg-submit:active { transform: translateY(1px); }
.lg-submit:focus-visible { outline: 3px solid var(--lg-orange); outline-offset: 3px; }
.lg-submit:disabled { opacity: .75; cursor: progress; }

.lg-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-top: 22px; font-size: 15px; }
.lg-links a { min-height: 44px; display: inline-flex; align-items: center; color: var(--lg-muted); text-decoration: none; }
.lg-links a#shopLink { color: var(--lg-green); font-weight: 700; }
.lg-links a:hover { text-decoration: underline; }
.lg-center-pick { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 14px; color: var(--lg-muted); }
.lg-center-pick label { font-weight: 700; flex: none; }
.lg-center-pick select { height: 44px; border-radius: 12px; font-size: 14px; flex: 1; min-width: 0; }
.lg-demo { margin-top: 10px; border-top: 1px dashed var(--lg-line); padding-top: 10px; font-size: 13px; }
.lg-demo summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; gap: 6px; color: var(--lg-muted); font-weight: 700; }
.lg-demo .chips { margin-top: 8px; }
.lg-demo .chip { min-height: 38px; font-size: 13px; }

/* ---------- تصویرسازی ---------- */
.lg-art { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 48px 40px; overflow: hidden;
  background: radial-gradient(120% 90% at 20% 10%, #f3fcf8 0%, var(--lg-mint) 55%, #d4f0e4 100%); border-radius: 0 56px 56px 0; }
.lg-slogan { margin: 0; color: var(--lg-navy); font-size: 44px; font-weight: 900; line-height: 1.35; text-align: center; }
.lg-slogan em { font-style: normal; color: var(--lg-green); position: relative; display: inline-block; }
.lg-slogan em::after { content: ''; position: absolute; right: 4%; left: 4%; bottom: -6px; height: 5px; border-radius: 5px; background: var(--lg-orange); }
.lg-hero { width: min(640px, 100%); height: auto; object-fit: contain; }
.lg-features { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.lg-features li { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: rgba(255, 255, 255, .85); color: var(--lg-navy); font-weight: 700; font-size: 15px;
  box-shadow: 0 4px 14px rgba(27, 37, 80, .06); }

/* ---------- تبلت و موبایل: فرم اول، تصویر کوچک‌تر زیر آن ---------- */
@media (max-width: 1100px) {
  .lg-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
  .lg-form { padding: 32px 28px; }
  .lg-slogan { font-size: 34px; }
}
@media (max-width: 820px) {
  .lg-wrap { grid-template-columns: 1fr; }
  .lg-form { padding: 24px 16px 20px; place-items: start center; }
  .lg-brand { gap: 12px; margin-bottom: 18px; }
  .lg-logo { width: 64px; height: 64px; }
  .lg-divider { height: 40px; }
  .lg-center { font-size: 16px; }
  .lg-title { font-size: 26px; }
  .lg-sub { font-size: 14px; margin: 8px 0 18px; }
  .lg-roles { gap: 8px; margin-bottom: 18px; }
  .lg-role { min-height: 88px; padding: 10px 4px 8px; gap: 6px; border-radius: 14px; }
  .lg-role > .icon-3d { width: 32px !important; height: 32px !important; }
  .lg-rn { font-size: 13px; }
  .lg-check { top: 4px; left: 4px; }
  .lg-check .icon-3d { width: 16px !important; height: 16px !important; }
  .lg-input { height: 50px; }
  .lg-submit { height: 54px; font-size: 17px; }
  .lg-links { font-size: 14px; }
  .lg-art { border-radius: 32px 32px 0 0; padding: 24px 16px 28px; gap: 14px; }
  .lg-slogan { font-size: 24px; }
  .lg-hero { width: min(340px, 90%); }
  .lg-features { gap: 8px; }
  .lg-features li { padding: 8px 14px; font-size: 13px; }
  .lg-features .icon-3d { width: 20px !important; height: 20px !important; }
}
@media (prefers-reduced-motion: reduce) { .lg-role, .lg-submit { transition: none; } .lg-role:hover { transform: none; } }
