/* Вход */
body.login { background: var(--surface); }
:root[data-theme="dark"] body.login { background: var(--bg); }
:root[data-theme="dark"] .theme-ic-dark, :root:not([data-theme="dark"]) .theme-ic-light { display: none; }

.lg { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.lg-main { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; padding: 24px 40px; }
.lg-top { display: flex; align-items: center; justify-content: space-between; }
.lg-brand { display: inline-flex; align-items: center; gap: 10px; border-radius: var(--r-sm); }
.lg-brand .brand-mark { width: 30px; height: 30px; font-size: 16px; border-radius: 8px; }
.lg-brand-name { font-size: var(--fs-md); color: var(--text-3); font-weight: 500; letter-spacing: -0.01em; }
.lg-brand-name b { color: var(--text); font-weight: 700; letter-spacing: -0.02em; }

.lg-center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 0; }
.lg-form { width: 100%; max-width: 360px; }
.lg-title { font-size: 28px; font-weight: 650; letter-spacing: -0.03em; line-height: 1.15; }
.lg-sub { margin-top: 6px; margin-bottom: 28px; color: var(--text-3); font-size: var(--fs-md); }
.lg-form .field + .field { margin-top: 16px; }
.input-lg { height: 42px; font-size: var(--fs-md); padding: 0 12px; }
.lg-pw { position: relative; }
.lg-pw .input { padding-right: 44px; }
.lg-pw .icon-btn { position: absolute; right: 6px; top: 6px; }
.lg-pw .eye-off { display: none; }
.lg-pw.is-shown .eye-off { display: block; }
.lg-pw.is-shown .eye-on { display: none; }
.lg-link { font-size: var(--fs-sm); color: var(--text-3); font-weight: 500; border-radius: 4px; }
.lg-link:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.lg-err { font-size: var(--fs-xs); color: var(--err); }
.lg-caps { color: var(--warn); }
.lg-remember { margin: 18px 0 20px; color: var(--text-2); font-size: var(--fs-sm); }
.lg-alert { margin-bottom: 18px; animation: lgShake .36s var(--ease); }
.lg-alert b { color: var(--text); }
@keyframes lgShake { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }
#lg-submit { gap: 8px; }
#lg-submit.is-ok { background: var(--ok-dot); border-color: var(--ok-dot); }
.lg-demo { margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: var(--fs-xs); color: var(--text-3); line-height: 1.5; }
.lg-demo .i { display: inline-block; vertical-align: -2px; }
.lg-foot { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-xs); color: var(--text-3); }
.lg-foot a { display: inline-flex; align-items: center; gap: 3px; }
.lg-foot a:hover { color: var(--text); }

/* Editorial side panel */
.lg-aside { position: relative; overflow: hidden; background: #0b0b0d; margin: 12px; border-radius: 14px; }
.lg-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) blur(1.2px); transform: scale(1.04); }
.lg-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,8,10,.05) 30%, rgba(8,8,10,.55) 60%, rgba(8,8,10,.92) 100%); }
.lg-story { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 44px 40px; color: #fff; }
.lg-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.lg-live { width: 7px; height: 7px; border-radius: 50%; background: #e5383f; box-shadow: 0 0 0 3px rgba(229,56,63,.25); }
.lg-headline { margin-top: 14px; max-width: 560px; font-family: var(--font-serif); font-size: 30px; line-height: 1.22; letter-spacing: -0.01em; font-weight: 400; text-wrap: balance; }
.lg-meta { margin-top: 12px; font-size: var(--fs-sm); color: rgba(255,255,255,.6); }
.lg-stats { display: flex; gap: 36px; margin: 26px 0 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.16); }
.lg-stats dt { font-size: var(--fs-xs); color: rgba(255,255,255,.55); order: 2; }
.lg-stats div { display: flex; flex-direction: column-reverse; gap: 2px; }
.lg-stats dd { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

@media (max-width: 1023px) {
  .lg { grid-template-columns: minmax(0, 1fr); }
  .lg-aside { display: none; }
  .lg-main { padding: 20px 24px; }
}
@media (max-width: 767px) {
  .lg-main { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); }
  .lg-center { align-items: flex-start; padding: 12vh 0 32px; }
  .lg-title { font-size: 25px; }
  .lg-sub { margin-bottom: 22px; }
  .lg-foot { flex-wrap: wrap; }
}
