/* Экран входа (прототип, десктоп). Слева форма, справа витрина; на узком экране только форма. */
.login { position: fixed; inset: 0; z-index: 1; display: flex; background: var(--screen); color: var(--fg); overflow: auto; }
.login .l { flex: 1; display: flex; flex-direction: column; padding: 36px 48px; min-width: 0; }
.login .lbrand { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.login .lang { margin-left: auto; display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--surface2); }
.login .lang button { padding: 4px 10px; border-radius: 8px; font-size: 12px; color: var(--fg2); }
.login .lang button.on { background: var(--surface); color: var(--fg); font-weight: 600; box-shadow: 0 0 0 1px var(--sep2); }
.login .box { margin: auto; width: min(400px, 100%); padding: 24px 0; }
.login h1 { font-size: 30px; line-height: 1.12; letter-spacing: -.03em; margin: 0; }
.login h1.small { font-size: 26px; }
.login p { font-size: 14.5px; color: var(--fg2); line-height: 1.5; margin: 12px 0 26px; }
.login .note { color: var(--fg3); font-size: 12px; }

.gbtn { width: 100%; height: 48px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--sep), 0 1px 2px var(--shadow); font-size: 15px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--fg); }
.gbtn:hover:not(:disabled) { filter: brightness(1.02); }
.gbtn.pri-l { background: var(--accent-fill); color: var(--on-accent); box-shadow: none; }
.gbtn:disabled { opacity: .5; cursor: default; }
.lor { display: flex; align-items: center; gap: 12px; margin: 16px 0 12px; color: var(--fg3); font-size: 12px; }
.lor::before, .lor::after { content: ""; flex: 1; height: 1px; background: var(--sep); }
.lmail { display: flex; gap: 8px; }
.lmail .inp { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border-radius: 12px; border: 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--sep); color: var(--fg); font-size: 14px; outline: 0; }
.lmail .inp:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.lmail .btn { height: 44px; }
.lnote { display: flex; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--surface2); font-size: 12.5px; color: var(--fg2); line-height: 1.45; }
.lnote svg, .lerr svg { flex: none; width: 16px; height: 16px; }
.lerr { display: flex; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--red-s); font-size: 12.5px; color: var(--red); line-height: 1.45; }
.lback { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 600; font-size: 13px; margin-bottom: 14px; }
.lback svg { width: 10px; height: 16px; }
.otp { display: flex; gap: 8px; margin: 4px 0 6px; }
.otp input { width: 48px; height: 56px; min-width: 0; flex: 1; max-width: 56px; border-radius: 12px; border: 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--sep); text-align: center; font-size: 22px; font-weight: 650; color: var(--fg); outline: 0; font-variant-numeric: tabular-nums; }
.otp input:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.ltrust { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; font-size: 13px; color: var(--fg); cursor: pointer; }
.ltrust input { margin-top: 2px; accent-color: var(--accent-fill); }
.ltrust small { display: block; color: var(--fg3); font-size: 11.5px; margin-top: 2px; line-height: 1.4; }
.lrow { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; min-height: 20px; }
.tlink { color: var(--accent); font-weight: 600; font-size: 13px; }
.tlink:disabled { opacity: .5; }

/* витрина справа: тёмная панель в обеих темах */
.login .r { width: 46%; margin: 10px; border-radius: 22px; background: #1b1f24; position: relative; overflow: hidden; color: #e3e5e8; display: flex; flex-direction: column; padding: 28px 34px; }
.sw-glow { position: absolute; width: 440px; height: 440px; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.sw-glow.a { background: #2c64c4; opacity: .45; left: -140px; top: -160px; }
.sw-glow.b { background: #7a44b0; opacity: .32; right: -170px; bottom: -170px; }
.sw-tabs { position: relative; display: flex; gap: 4px; background: rgba(255,255,255,.07); border-radius: 10px; padding: 3px; align-self: flex-start; z-index: 2; }
.sw-tabs button { padding: 6px 12px; border-radius: 8px; font-size: 12.5px; color: #a7adb4; }
.sw-tabs button.on { background: rgba(255,255,255,.14); color: #fff; font-weight: 600; }
.sw-stage { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; margin: 18px 0; z-index: 1; }
.sw-text { position: relative; font-size: 18px; font-weight: 650; line-height: 1.35; color: #e3e5e8; z-index: 1; }
.sw-text div { font-size: 12.5px; font-weight: 400; color: #a7adb4; margin-top: 8px; }
.sw-web { width: 100%; max-width: 640px; height: 330px; border-radius: 14px; background: #16191d; box-shadow: 0 30px 70px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06); display: flex; overflow: hidden; font-size: 10px; color: #e3e5e8; }
.sw-side { width: 100px; padding: 10px 6px; display: flex; flex-direction: column; gap: 3px; }
.sw-side i { font-style: normal; padding: 5px 7px; border-radius: 6px; color: #a7adb4; }
.sw-side i.on { background: #20242a; color: #fff; font-weight: 600; }
.sw-main { flex: 1; min-width: 0; background: #20242a; margin: 6px; border-radius: 10px; padding: 10px; }
.sw-main > b { font-size: 13px; }
.sw-cards { display: flex; gap: 6px; margin: 8px 0; }
.sw-cards span { flex: 1; background: #292e35; border-radius: 8px; padding: 6px 8px; color: #a7adb4; font-size: 9px; }
.sw-cards s { display: block; text-decoration: none; font-size: 15px; font-weight: 700; color: #e3e5e8; }
.sw-row { display: grid; grid-template-columns: 12px 1fr 40px 12px; gap: 6px; align-items: center; padding: 6px; border-radius: 6px; }
.sw-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-row.on { background: rgba(122,167,245,.14); }
.sw-row u, .sw-li u { width: 10px; height: 10px; border-radius: 50%; border: 1.3px solid #6e757d; display: block; flex: none; }
.sw-row .d { color: #a7adb4; }
.sw-phone { display: flex; align-items: center; }
.sw-ph { width: 200px; height: 400px; border-radius: 32px; background: #16191d; box-shadow: 0 0 0 6px #30353c, 0 30px 70px rgba(0,0,0,.45); padding: 34px 12px 12px; position: relative; color: #e3e5e8; font-size: 10.5px; display: flex; flex-direction: column; gap: 10px; }
.sw-isl { position: absolute; top: 9px; left: 50%; margin-left: -36px; width: 72px; height: 20px; border-radius: 12px; background: #000; }
.sw-ph > b { font-size: 18px; letter-spacing: -.02em; }
.sw-list { background: #20242a; border-radius: 14px; overflow: hidden; }
.sw-li { display: flex; gap: 8px; align-items: center; padding: 10px; border-top: 1px solid rgba(255,255,255,.06); }
.sw-li:first-child { border-top: 0; }
.sw-tab { margin-top: auto; display: flex; justify-content: space-around; background: rgba(255,255,255,.08); border-radius: 16px; padding: 8px; }
.sw-tab i { width: 14px; height: 14px; border-radius: 5px; background: #6e757d; }
.sw-tab i.on { background: #7aa7f5; }
.sw-tg { width: 100%; max-width: 380px; height: 390px; border-radius: 16px; background: #17212b; box-shadow: 0 30px 70px rgba(0,0,0,.45); display: flex; flex-direction: column; overflow: hidden; color: #e3e5e8; }
.sw-tgh { padding: 12px; background: #232e3c; font-size: 13px; }
.sw-chat { flex: 1; overflow: hidden; padding: 12px; display: flex; flex-direction: column; gap: 8px; justify-content: flex-end; }
.sw-m { max-width: 86%; padding: 8px 11px; border-radius: 12px 12px 12px 4px; background: #182533; font-size: 12.5px; line-height: 1.4; align-self: flex-start; box-shadow: 0 0 0 1px rgba(255,255,255,.05); }
.sw-m.me { align-self: flex-end; background: #2b5278; border-radius: 12px 12px 4px 12px; }
.sw-btns { display: flex; gap: 4px; margin-top: 8px; }
.sw-btns button { flex: 1; padding: 6px; border-radius: 8px; background: rgba(255,255,255,.08); color: #6ab3f3; font-size: 11.5px; font-weight: 600; }

@media (max-width: 1100px) { .login .r { display: none; } }
@media (max-width: 767.98px) { .login .l { padding: 24px 20px; } .login h1 { font-size: 26px; } }
