:root { color-scheme: light; --forest: #183c2e; --deep: #102a20; --lime: #d0fa98; --paper: #f8faf5; --ink: #183c2e; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.6 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--paper); color: var(--ink); }
a { color: inherit; text-underline-offset: 4px; }
::selection { background: var(--lime); color: var(--forest); }
:focus-visible { outline: 3px solid #6a902f; outline-offset: 5px; }
.login-header { min-height: 82px; padding: 20px 5vw; background: var(--deep); color: var(--lime); display: flex; align-items: center; gap: 30px; }
.wordmark { font-family: Unbounded, sans-serif; font-size: 26px; font-weight: 700; letter-spacing: -.03em; text-decoration: none; }
.site-link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; text-decoration: none; }
.site-link:hover { text-decoration: underline; }
svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
main { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100dvh - 82px); }
.login-story { background: var(--forest); color: #f8faf5; padding: clamp(36px, 6vw, 88px) 5vw 28px; display: flex; flex-direction: column; }
h1 { margin: 0 0 26px; font-weight: 500; font-size: clamp(38px, 4.5vw, 68px); line-height: 1.13; letter-spacing: -.035em; }
h1 .story-line { display: block; color: inherit; }
h1 .story-accent { color: var(--lime); }
.login-story p { margin: 0; color: #d8e3d7; font-size: 16px; max-width: 40ch; }
.terrain-preview { margin-top: 36px; color: var(--lime); max-width: 520px; opacity: .75; }
.terrain-preview svg { width: 100%; height: auto; }
.terrain-house { fill: var(--forest); stroke: currentColor; stroke-width: 1.2; }
.house-floor { opacity: .65; }
.login-footer { margin-top: auto; padding-top: 26px; color: #d8e3d7; font-size: 12px; line-height: 1.55; }
.login-footer p { font: inherit; margin-bottom: 6px; }
.login-footer a { text-decoration: none; }
.login-footer a:hover { text-decoration: underline; }
.login-form-wrap { display: flex; justify-content: center; align-items: center; padding: 48px 6vw; }
.login-form-inner { width: 100%; max-width: 400px; }
label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
input:not([type="checkbox"]) { display: block; width: 100%; height: 54px; padding: 12px 16px; font: inherit; color: var(--ink); caret-color: var(--forest); border: 1px solid #a3b0a0; border-radius: 6px; background: white; margin-bottom: 22px; }
input:not([type="checkbox"]):hover { border-color: var(--forest); }
input:not([type="checkbox"]):focus { outline: 2px solid #6a902f; outline-offset: 2px; }
.login-submit { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 54px; border: none; border-radius: 6px; padding: 0 20px; background: var(--forest); color: var(--lime); cursor: pointer; font: inherit; font-weight: 600; }
.login-submit:hover { background: var(--deep); }
.login-submit:active { transform: translateY(1px); }
.error { color: #a42e23; font-size: 13px; margin: -2px 0 18px; }
.error:empty { display: none; }
.password-field { position: relative; }
.password-field input { padding-right: 58px; }
.password-toggle { position: absolute; inset: 5px 5px auto auto; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 4px; color: var(--forest); background: transparent; cursor: pointer; }
.password-toggle[hidden] { display: none; }
.password-toggle:hover { background: #edf2e9; }
.password-toggle svg { width: 22px; height: 22px; }
.eye-slash { display: none; }
.password-toggle[aria-pressed="true"] .eye-slash { display: block; }
.privacy-consent { display: grid; grid-template-columns: 20px 1fr; align-items: start; gap: 12px; margin: 4px 0 26px; }
.privacy-consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--forest); cursor: pointer; }
.privacy-consent label { margin: 0; font-size: 13px; line-height: 1.65; font-weight: 400; color: #536552; cursor: pointer; }
.privacy-consent a { color: var(--forest); }
.privacy-consent a:hover { text-decoration-thickness: 2px; }
.login-note { margin: 22px 0 0; font-size: 13px; line-height: 1.65; color: #536552; }
.login-note a { color: var(--forest); }
.access h2 { margin: 30px 0 12px; font-size: 15px; font-weight: 600; }
.access-user { margin: 0 0 18px; font-size: 13px; color: #536552; overflow-wrap: anywhere; }
.access-user b { color: var(--ink); }
.access-state { margin: 0 0 18px; font-size: 16px; }
.access-state.ok + .login-submit { text-decoration: none; }
.access-notice { margin: 0 0 18px; padding: 10px 14px; border-radius: 6px; background: #edf6dd; font-size: 14px; }
.plans { display: grid; gap: 10px; }
.plan { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px; padding: 12px 12px 12px 16px; border: 1px solid #a3b0a0; border-radius: 6px; background: white; }
.plan-title { font-weight: 600; }
.plan-price { font-variant-numeric: tabular-nums; }
.plan button { height: 40px; padding: 0 16px; border: 0; border-radius: 6px; background: var(--forest); color: var(--lime); font: inherit; font-weight: 600; cursor: pointer; }
.plan button:hover { background: var(--deep); }
.history { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.history li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 8px 0; border-bottom: 1px solid #dfe6db; }
.history li span:last-child { color: #536552; }
.access-logout { margin-top: 26px; }
.access-logout button { padding: 0; border: 0; background: none; color: var(--forest); font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
@media (max-width: 760px) { .login-header { min-height: 70px; padding: 16px 24px; justify-content: space-between; gap: 12px; } .wordmark { font-size: 22px; } main { grid-template-columns: 1fr; min-height: calc(100dvh - 70px); } .login-story { padding: 26px 24px 28px; } h1 { font-size: 34px; margin-bottom: 14px; } h1 .story-line { display: inline; } h1 .story-line:not(:last-child) { margin-right: .2em; } .login-story p { font-size: 14px; } .terrain-preview { display: none; } .login-footer { position: absolute; inset: auto 0 0; padding: 20px 24px 24px; background: var(--forest); } .login-form-wrap { padding: 34px 24px 160px; align-items: start; } .plan { grid-template-columns: 1fr auto; } .plan button { grid-column: 1 / -1; } }

/* Владивосток 2271: стартовый экран целиком в окне — без прокрутки, только заголовок, юридическая строка и форма */
html, body { height: 100%; }
body { display: flex; flex-direction: column; min-height: 100dvh; }
.login-header { flex: none; min-height: 0; height: clamp(56px, 8vh, 82px); padding-block: 0; }
main { flex: 1; min-height: 0; }
.login-story { padding: clamp(24px, 8vh, 96px) 5vw clamp(16px, 3vh, 28px); justify-content: flex-start; }
h1 { font-size: clamp(34px, min(5vw, 8.3vh), 88px); margin: 0; }
.login-form-wrap { padding: clamp(20px, 4vh, 48px) 6vw; }
input:not([type="checkbox"]), .login-submit { height: clamp(44px, 6vh, 54px); }
input:not([type="checkbox"]) { margin-bottom: clamp(14px, 2.4vh, 22px); }
@media (min-width: 761px) { body { height: 100dvh; overflow: hidden; } }
@media (max-width: 760px) { .login-story { padding-bottom: 96px; } .login-form-wrap { padding: 28px 24px 40px; } .login-footer { position: static; padding: 0; margin-top: 24px; } }

/* рисунок подстраивается под высоту окна; на телефоне — только заставка с сообщением, без формы */
.terrain-preview { margin-top: clamp(16px, 4vh, 48px); width: min(520px, 100%, calc((100dvh - 480px) * 2.26)); min-width: 140px; }
.mobile-only { display: none; }
@media (max-width: 760px), (hover: none) and (pointer: coarse) and (max-width: 1400px) {
  html, body { height: 100%; overflow: hidden; }
  body { min-height: 100dvh; }
  .login-header { height: 64px; padding: 0 24px; justify-content: space-between; }
  main { display: flex; flex-direction: column; grid-template-columns: none; }
  .login-form-wrap, .terrain-preview { display: none !important; }
  .login-story { flex: 1; padding: clamp(24px, 5vh, 48px) 24px 24px; }
  h1 { font-size: clamp(34px, 9vw, 52px); }
  h1 .story-line { display: block; margin: 0; }
  .mobile-only { display: flex; flex-direction: column; flex: 1; min-height: 0; margin-top: clamp(16px, 3vh, 32px); }
  .login-story .mobile-lead { margin: 0 0 12px; font-size: clamp(22px, 6vw, 30px); line-height: 1.25; font-weight: 500; color: var(--lime); max-width: 22ch; }
  .login-story .mobile-sub { margin: 0; font-size: clamp(17px, 4.4vw, 21px); line-height: 1.45; color: #e7efe4; max-width: 30ch; }
  .mobile-art { flex: 1; min-height: 0; width: 100%; max-width: 420px; height: auto; object-fit: contain; object-position: left center; margin: 20px 0 8px; }
  .login-footer { position: static; padding: 0; margin-top: 0; }
}

/* демо-доступ (products/zemlya-demo) */
.demo-badge { display: inline-block; margin: 0 0 18px; padding: 3px 10px; border-radius: 999px; background: #e3f0c8; color: #183c2e; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.demo-note { margin: 18px 0 0; color: #5d6b63; font-size: 13px; line-height: 1.45; }
.demo-note a { color: inherit; }
