/* Hallmark · redesign: full · scope: app · shape: app screen · genre: playful · theme: sticker (by request), dark matte by default · page: login
 * pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: S, a sign-in is a sign-in; the real covers on the left carry it
 * dismissed 19 · the dash is ordinary Russian punctuation
 * built: the project (ChannelFlow /src/v3/login) · v2.0.0 */
/* Вход — тот же материал, что в приложении (src/v3/v3.css): матовая тёмная тема по умолчанию, светлая — «лист»; акцент малиновый.
   Шрифты — свои файлы рядом. */
@font-face { font-family: 'Manrope Variable'; font-weight: 200 800; font-display: swap; src: url(manrope-cyrillic-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope Variable'; font-weight: 200 800; font-display: swap; src: url(manrope-latin-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded Variable'; font-weight: 200 900; font-display: swap; src: url(unbounded-cyrillic-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded Variable'; font-weight: 200 900; font-display: swap; src: url(unbounded-latin-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root, :root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #120f0c; --promo: #17130f; --card: #221e18; --card2: #2c271f; --line: #3b342a; --line3: #645a4b;
  --ink: #f5efe4; --muted: #b0a798; --faint: #9b9283; --accent: #ff4f9e; --accent-hi: #ff8fb2; --on-accent: #17140f;
  --soft: color-mix(in oklab, var(--accent) 16%, transparent); --bloom: color-mix(in oklab, var(--accent) 18%, transparent);
  --red: #ff9d8c; --red-soft: #3d1f19; --edge: #3b342a;
  --shadow: inset 0 1px 0 #ffffff0a, 0 24px 60px -18px #000000e6; --glow: 0 10px 30px -10px color-mix(in oklab, var(--accent) 65%, transparent);
  --card-fill: linear-gradient(180deg, #25201a 0%, #1c1814 100%);
  --paper: #ece8e1; --paper-ink: #2b2622; --paper-mark: #c9bfb2; --tg: #2aabee; --vk: #eceef2; --brand-ink: #17140f;
  --font: 'Manrope Variable', -apple-system, 'Segoe UI', Roboto, sans-serif; --display: 'Unbounded Variable', 'Manrope Variable', sans-serif; --serif: Georgia, 'Times New Roman', serif;
}
:root[data-theme='light'] {
  color-scheme: light;
  --bg: #f3eee5; --promo: #ebe5d9; --card: #fffdf8; --card2: #ebe5d9; --line: #d0c6b3; --line3: #a99e8a;
  --ink: #221e19; --muted: #625a4e; --faint: #72695b; --accent: #d0186c; --accent-hi: #f0457f; --on-accent: #fffdf8;
  --soft: color-mix(in oklab, var(--accent) 12%, transparent); --bloom: color-mix(in oklab, var(--accent) 8%, transparent);
  --red: #b3341f; --red-soft: #f8dcd5; --edge: #221e19;
  --shadow: 5px 5px 0 #221e19; --glow: none; --card-fill: var(--card);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); overflow-x: clip; }
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* Страница входа не тянется резинкой за край (жест — login.js). */
html, body { overscroll-behavior: none; }
body { color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }
.page { min-height: 100dvh; display: flex; flex-wrap: wrap; }

.promo {
  flex: 1 1 560px; min-width: 0; padding: calc(48px + env(safe-area-inset-top, 0px)) 56px 48px; display: flex; flex-direction: column; justify-content: center; gap: 28px;
  background: radial-gradient(900px 520px at 0% 0%, var(--bloom), transparent 65%), var(--promo); position: relative; overflow: hidden;
}
.logo { font-family: var(--display); font-size: 20px; font-weight: 700; display: inline-flex; align-items: center; gap: 12px; }
.logo__mark { width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, var(--accent-hi), var(--accent) 70%); color: var(--on-accent); display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--edge); transform: rotate(-4deg); box-shadow: var(--glow); }
.promo h1 { margin: 0; font-family: var(--display); font-size: clamp(32px, 3.4vw, 52px); font-weight: 800; line-height: 1.08; letter-spacing: -0.025em; max-width: 640px; overflow-wrap: break-word; min-width: 0; }
.promo p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 540px; }
.shots { display: flex; gap: 20px; align-items: flex-end; }
.shots img { width: 160px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 18px; border: 3px solid var(--card2); box-shadow: var(--shadow); transform: rotate(-3deg); animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.shots img + img { width: 190px; transform: rotate(2deg); animation-delay: 0.08s; }
.quote { display: flex; flex-direction: column; justify-content: center; gap: 8px; width: 160px; aspect-ratio: 4 / 5; padding: 16px; border-radius: 16px; background: var(--paper); color: var(--paper-ink); font-family: var(--serif); font-size: 14px; line-height: 1.25; box-shadow: var(--shadow); transform: rotate(-1deg); animation: rise 0.7s 0.16s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.quote__mark { font-size: 24px; line-height: 0.5; color: var(--paper-mark); }

.side { flex: 1 1 440px; min-width: 0; padding: 48px 32px calc(32px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; }
.card { width: 100%; max-width: 420px; background: var(--card-fill); border: 1px solid var(--line); border-radius: 24px; padding: 24px; box-shadow: var(--shadow); animation: rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
:root[data-theme='light'] .card { border: 2px solid var(--edge); }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--card2); margin-bottom: 20px; }
.tabs button { flex: 1; min-height: 40px; border: none; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 800; transition: background-color 0.15s, color 0.15s; }
.tabs button[aria-selected='true'] { background: var(--ink); color: var(--bg); }
.pane { display: flex; flex-direction: column; gap: 16px; }
.pane[hidden] { display: none; }
.pane--flat { gap: 12px; }
h2 { margin: 0; font-size: 24px; font-weight: 800; }
.muted { margin: -8px 0 4px; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-size: 13px; font-weight: 700; color: var(--muted); }
.input { min-height: 52px; padding: 0 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--card2); color: var(--ink); font: inherit; font-size: 16px; caret-color: var(--accent); transition: border-color 0.15s, box-shadow 0.2s; }
.input::placeholder { color: var(--faint); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--soft); }
.btn { position: relative; min-height: 52px; border-radius: 999px; border: 2px solid transparent; font-size: 16px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 12px; transition: transform 0.15s, box-shadow 0.2s; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { background: var(--card2); color: var(--faint); border-color: var(--line); box-shadow: none; cursor: not-allowed; }
.btn--primary { background: linear-gradient(135deg, var(--accent-hi), var(--accent) 70%); color: var(--on-accent); border-color: var(--edge); box-shadow: var(--glow); }
.btn--tg { background: var(--tg); color: var(--brand-ink); }
.btn--vk { background: var(--vk); color: var(--brand-ink); border-color: var(--line); }
.btn--ya { background: var(--card2); border-color: var(--line3); color: var(--ink); font-weight: 700; }
.soon { font-size: 12px; font-weight: 800; padding: 0 8px; border-radius: 999px; border: 2px dashed currentColor; }
.or { display: flex; align-items: center; gap: 12px; margin: 4px 0; color: var(--faint); font-size: 13px; }
.or span { flex: 1; height: 0; border-top: 2px dashed var(--line); }
.error { background: var(--red-soft); color: var(--red); border-radius: 12px; padding: 12px; font-size: 14px; font-weight: 700; }
.error[hidden], .note[hidden] { display: none; }
.note { background: var(--soft); color: var(--ink); border-radius: 12px; padding: 12px; font-size: 14px; }
.small { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--faint); }
.link { border: none; background: none; padding: 0; color: var(--ink); font-weight: 800; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.theme { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--card2); }
.theme button { min-height: 32px; padding: 0 12px; border: none; border-radius: 999px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 800; }
.theme button[aria-pressed='true'] { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@keyframes rise { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@media (max-width: 760px) {
  .promo { flex-basis: 100%; padding: calc(28px + env(safe-area-inset-top, 0px)) 20px 24px; gap: 16px; }
  .promo p, .shots { display: none; }
  .side { padding: 8px 16px calc(28px + env(safe-area-inset-bottom, 0px)); justify-content: flex-start; }
  .card { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
