/* Вход через O. Message — как экран входа Облака (Documents/Oblako/oblako/server/web/assets/app.css: .signin, .omsg-pill)
   и Brain Cut (web/css/app.css). Одинаковый файл в See Browser, Note Brain и Desk Brain; цвета текста приложение задаёт
   переменными --os-text, --os-muted, --os-line (по умолчанию — светлая тема). Кнопка и карточка QR — всегда как в образце. */
.omsg-signin { width: 100%; max-width: 360px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
.omsg-signin > * { animation: signin-rise .42s cubic-bezier(.16, 1, .3, 1) both; }
.omsg-signin > :nth-child(2) { animation-delay: 60ms; }
.omsg-signin > :nth-child(3) { animation-delay: 120ms; }
.omsg-signin > :nth-child(4), .omsg-signin > :nth-child(5) { animation-delay: 180ms; }
.omsg-signin > :nth-child(6) { animation-delay: 240ms; }
@keyframes signin-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.omsg-signin.settled > * { animation: none; }   /* блок показан — при перерисовке не «въезжает» заново */
.omsg-signin > .omsg-pill-wrap.shake { animation: omsg-shake .5s ease-out; }
.omsg-signin [hidden] { display: none !important; }
.omsg-signin .signin-logo { width: 76px; height: 76px; border-radius: 23%; background: #fff; display: grid; place-items: center; flex: none;
  box-shadow: 0 10px 28px -8px rgba(42, 85, 234, .4), inset 0 0 0 1px rgba(27, 33, 64, .05); }
.omsg-signin .signin-logo img, .omsg-signin .signin-logo svg { width: 48px; height: 48px; display: block; }
.omsg-signin .signin-title { font-weight: 800; font-size: 26px; line-height: 1.15; letter-spacing: -.01em; margin: 16px 0 6px; color: var(--os-text, #1b2140); }
.omsg-signin .signin-sub { margin: 0 0 24px; color: var(--os-muted, #5a6285); font-size: 14.5px; }
.omsg-signin .signin-err { margin-top: 12px; font-size: 13.5px; line-height: 19px; color: var(--os-error, #d93a4a); }
.omsg-signin .signin-wait { width: 100%; display: flex; flex-direction: column; align-items: center; }
.omsg-signin .signin-or { display: flex; align-items: center; gap: 14px; width: 100%; margin: 22px 0 18px; color: var(--os-muted, #8a91b0); font-size: 13px; }
.omsg-signin .signin-or::before, .omsg-signin .signin-or::after { content: ""; flex: 1; border-top: 1px solid var(--os-line, #dce1ef); }
.omsg-signin .qr-card { background: #fff; border: 1px solid #dce1ef; border-radius: 20px; padding: 6px 16px 16px; width: 100%; max-width: 296px; box-sizing: border-box; }
.omsg-signin .qr-box { position: relative; width: 208px; height: 208px; margin: 0 auto 2px; display: grid; place-items: center; }
.omsg-signin .qr-box canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; opacity: 0; transition: opacity .42s ease; }
.omsg-signin .qr-box canvas.on { opacity: 1; }
.omsg-signin .qr-cap { margin: 0; color: #1b2140; font-size: 14px; font-weight: 700; line-height: 1.3; }
.omsg-signin .qr-hint { margin: 4px 0 0; color: #5a6285; font-size: 12.5px; }
.omsg-signin .qr-off { margin: 0; padding: 0 8px; color: #5a6285; font-size: 13px; }
.omsg-signin .signin-cancel { margin-top: 12px; padding: 8px 14px; border: 0; background: none; color: var(--os-muted, #5a6285); font: inherit; font-size: 14px; cursor: pointer; border-radius: 10px; }
.omsg-signin .signin-cancel:hover { color: var(--os-text, #1b2140); text-decoration: underline; }
@media (max-width: 420px) { .omsg-pill { font-size: 15px; padding-right: 14px; } .omsg-pill.waiting .omsg-chev { display: none; } }
@media (max-width: 380px) { .omsg-signin .qr-box { width: 180px; height: 180px; } }

/* знак «O.» и кнопка-«пилюля» в цветах O. Message (анимация ожидания — «Волна») */
.omsg-mark { width: 23px; height: 23px; flex: none; overflow: visible; color: #2660E0; }
.omsg-mark .o, .omsg-mark .dot { fill: currentColor; }
.omsg-mark .dot { transform-box: view-box; transform-origin: 90.71px 91.74px; }
.omsg-mark .ring { fill: none; stroke: currentColor; stroke-width: 1px; vector-effect: non-scaling-stroke; opacity: 0;
  transform-box: view-box; transform-origin: 90.71px 91.74px; }
.omsg-pill-wrap { width: 100%; max-width: 360px; }
.omsg-pill {
  position: relative; display: flex; align-items: center; gap: 8px; width: 100%; height: 60px; padding: 0 18px 0 9px; margin: 0;
  border: 0; border-radius: 999px; color: #fff; font: 700 16.5px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: -.1px; cursor: pointer;
  background: linear-gradient(118deg, #2563EB 0%, #4B4FE8 60%, #7155F5 100%);
  box-shadow: 0 8px 24px rgba(58, 84, 230, .35), inset 0 0 0 1px rgba(255, 255, 255, .16);
  transition: transform .26s cubic-bezier(.34, 1.56, .64, 1), box-shadow .26s ease, filter .16s ease;
}
.omsg-pill::before { content: ""; position: absolute; inset: 1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, 0) 46%); }
.omsg-pill:hover { box-shadow: 0 10px 30px rgba(58, 84, 230, .52), inset 0 0 0 1px rgba(255, 255, 255, .18); }
.omsg-pill:hover .omsg-chev { transform: translateX(2px); }
.omsg-pill:active { transform: scale(.97); filter: brightness(.92); transition-duration: .09s; }
.omsg-pill:focus-visible { outline: 3px solid rgba(113, 85, 245, .45); outline-offset: 3px; }
.omsg-pill .omsg-tile { position: relative; flex: none; width: 42px; height: 42px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.omsg-pill .omsg-label { position: relative; flex: 1; min-width: 0; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.omsg-pill .omsg-chev { position: relative; flex: none; width: 18px; height: 18px; opacity: .7; transition: transform .16s ease; }
.omsg-pill .omsg-chev path, .omsg-pill .omsg-check path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.omsg-pill .omsg-check { display: none; width: 24px; height: 24px; color: #2660E0; }
.omsg-pill.waiting .ring { animation: omsg-ring 1s cubic-bezier(.33, 1, .68, 1) infinite; }
.omsg-pill.waiting .ring.r2 { animation-delay: .32s; }
.omsg-pill.waiting .dot { animation: omsg-dot 1s ease-in-out infinite; }
.omsg-pill.waiting .omsg-chev { opacity: 0; }
@keyframes omsg-ring { 0% { transform: scale(.233); opacity: .6; } 90%, 100% { transform: scale(1); opacity: 0; } }
@keyframes omsg-dot { 0% { transform: scale(1); } 15% { transform: scale(1.22); } 30%, 100% { transform: scale(1); } }
.omsg-pill.ok .omsg-mark { display: none; }
.omsg-pill.ok .omsg-check { display: block; animation: omsg-pop .42s cubic-bezier(.34, 1.56, .64, 1); }
.omsg-pill.ok .omsg-chev { opacity: 0; }
.omsg-pill.ok { animation: omsg-flash .7s ease-out; }
@keyframes omsg-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes omsg-flash { 30% { box-shadow: 0 10px 44px rgba(75, 79, 232, .85), inset 0 0 0 1px rgba(255, 255, 255, .3); } }
.omsg-pill-wrap.shake { animation: omsg-shake .5s ease-out; }
@keyframes omsg-shake { 0%, 100% { transform: translateX(0); } 12% { transform: translateX(-7px); } 30% { transform: translateX(6px); } 48% { transform: translateX(-4px); } 66% { transform: translateX(3px); } 84% { transform: translateX(-1px); } }
@media (prefers-reduced-motion: reduce) {
  .omsg-signin > *, .omsg-pill.waiting .ring, .omsg-pill.waiting .dot, .omsg-pill-wrap.shake, .omsg-pill.ok { animation: none !important; }
}
