/* Живые экраны регистрации: то, чего нет на картинках макета (настоящие поля, кнопки, ошибки).
   Сами макеты — auth.css, перенесён как есть. */

/* экран на всю высоту, длинная форма на низком телефоне прокручивается */
.wrap { min-height: 0; overflow-y: auto; scrollbar-width: none; }
.wrap::-webkit-scrollbar { display: none; }

a.back { display: block; }
a.cta, button.cta { width: 100%; border: 0; text-align: center; text-decoration: none; }
button.cta:disabled { opacity: .4; cursor: default; }
a.link { display: block; text-decoration: none; }

/* настоящие поля внутри серых «коробок» макета */
.box input, .box select { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; outline: 0; font-size: 17px;
  height: 100%; appearance: none; -webkit-appearance: none; }
.box select { padding-right: 4px; }
.box:focus-within { box-shadow: 0 0 0 2px var(--olive); background: #fff; }
.box button.act { flex: none; }
.box.bad { box-shadow: 0 0 0 2px #c62828; }
.field .err { font-size: 13px; color: #c62828; margin: 6px 0 0 4px; line-height: 1.35; }

/* 6 клеток кода: прозрачное поле поверх, клетки заполняет скрипт */
.code { position: relative; }
.code input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; border: 0; background: none; outline: 0; }
.code i.cur { box-shadow: 0 0 0 2px var(--olive); background: #fff; }

/* галочка согласия: настоящий флажок спрятан, кружок .ck рисует состояние */
.agree input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.agree .ck.done { background: var(--olive); border-color: var(--olive); position: relative; }
.agree { cursor: pointer; }
.agree a { cursor: pointer; white-space: nowrap; }
.agree.bad .ck { border-color: #c62828; }

/* «Ждём Telegram…» появляется после нажатия кнопки, а не вместо макета */
.wait-line { display: none; }
.tapped .wait-line { display: block; }

.flash { margin: 8px 24px 0; }

/* /install/: блоки iPhone и Android лежат прямо в колонке .wrap, скрытый убирается совсем */
.plat { display: contents; }
.plat[hidden] { display: none; }
.note2[hidden] { display: none; }
