SHA256
Палитра «Сияние» по умолчанию, новые роли цветов. Лента канала: плоские записи, ряд действий с равным шагом иконок, дата у записи. Обсуждение со строкой ввода, личный чат, шторки. Вход и регистрация: стартовый экран (надпись «СИЯНИЕ», сияние мандалы), настройки входа со статусами серверов, статус логина в одну строку, вход с другого устройства (код, таймер, шаги), сохранение ключей с переключателями. Корневые разделы – заголовок по центру; фильтр чатов – переключатель; уведомления – список как в чатах; фото – просмотр на весь экран. Общее: один зазор под шапкой (--page-top-gap), переключатели высотой с поле ввода, второстепенные кнопки по одной роли (в том числе на экранах устройств и серверов), иконки только из ui-icon.js, полоса прокрутки скрыта, среднее тире в текстах интерфейса. Что нужно от сервера и разработчика – docs/UI-Design/UI-v4-for-dev.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1314 lines
32 KiB
CSS
1314 lines
32 KiB
CSS
/* Start/login/registration pre-auth flow styles. */
|
|
|
|
.auth-screen {
|
|
min-height: calc(100dvh - 48px - env(safe-area-inset-bottom));
|
|
display: grid;
|
|
align-content: center;
|
|
justify-items: center;
|
|
gap: 18px;
|
|
text-align: center;
|
|
}
|
|
|
|
|
|
.initial-splash {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 10000;
|
|
display: grid;
|
|
align-content: center;
|
|
justify-items: center;
|
|
gap: clamp(12px, 2.4vh, 20px);
|
|
padding: 24px;
|
|
overflow: hidden;
|
|
background:
|
|
radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--warning) 8%, transparent), transparent 26%),
|
|
radial-gradient(circle at 50% 67%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 38%),
|
|
var(--background);
|
|
font-family: var(--font-main);
|
|
opacity: 1;
|
|
visibility: visible;
|
|
transition: opacity 520ms ease, visibility 520ms ease;
|
|
}
|
|
|
|
|
|
.initial-splash.is-leaving {
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
pointer-events: none;
|
|
}
|
|
|
|
|
|
.initial-splash__logo-wrap {
|
|
position: relative;
|
|
isolation: isolate;
|
|
width: clamp(156px, 42vw, 208px);
|
|
aspect-ratio: 1;
|
|
}
|
|
|
|
|
|
.initial-splash__logo-wrap::before {
|
|
content: "";
|
|
position: absolute;
|
|
/* Сияние гаснет в пределах ~четверти размера знака — не дотягивается до краёв экрана. */
|
|
inset: -14%;
|
|
z-index: -1;
|
|
border-radius: 50%;
|
|
background: radial-gradient(closest-side, color-mix(in srgb, var(--warning) 15%, transparent), color-mix(in srgb, var(--warning) 6%, transparent) 55%, transparent);
|
|
animation: shine-halo-breathe 4.8s ease-in-out infinite;
|
|
}
|
|
|
|
|
|
.initial-splash__logo {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
filter:
|
|
drop-shadow(0 0 8px color-mix(in srgb, var(--warning) 72%, transparent))
|
|
drop-shadow(0 8px 22px color-mix(in srgb, var(--warning) 38%, transparent));
|
|
animation: shine-logo-breathe 5.3s ease-in-out infinite;
|
|
}
|
|
|
|
|
|
.initial-splash__brand {
|
|
margin-top: -2px;
|
|
color: var(--text-primary);
|
|
font-size: clamp(34px, 7vw, 46px);
|
|
font-weight: 500;
|
|
line-height: 1;
|
|
text-shadow: 0 3px 22px color-mix(in srgb, var(--warning) 20%, transparent);
|
|
}
|
|
|
|
|
|
.auth-screen--welcome {
|
|
position: relative;
|
|
isolation: isolate;
|
|
/* Знак с надписью — у оптического центра, действия — ближе к низу, под большой палец. */
|
|
grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr);
|
|
align-content: stretch;
|
|
justify-items: center;
|
|
gap: 0;
|
|
padding-block: clamp(var(--space-5), 6vh, 56px) calc(var(--space-5) + env(safe-area-inset-bottom));
|
|
font-family: var(--font-main);
|
|
}
|
|
|
|
.auth-screen--welcome .auth-logo-wrap { align-self: end; }
|
|
|
|
.auth-screen--welcome .shine-actions {
|
|
align-self: end;
|
|
width: min(100%, 390px);
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: var(--space-3) var(--space-2);
|
|
}
|
|
|
|
.auth-screen--welcome .shine-actions > :is(.shine-btn, .secondary-btn) {
|
|
grid-column: 1 / -1;
|
|
width: 100%;
|
|
height: 52px;
|
|
min-height: 48px;
|
|
border-radius: var(--radius-lg);
|
|
font-size: var(--text-lg);
|
|
font-weight: var(--weight-bold);
|
|
}
|
|
|
|
.auth-screen--welcome :is(.start-language-link, .start-settings-link) {
|
|
min-height: var(--control-height);
|
|
border: 0;
|
|
background: transparent;
|
|
box-shadow: none;
|
|
color: var(--text-secondary);
|
|
font-size: var(--text-sm);
|
|
font-weight: var(--weight-medium);
|
|
}
|
|
|
|
.auth-screen--welcome .start-language-link { color: var(--accent); }
|
|
.auth-screen--welcome .start-settings-link::after { content: none; }
|
|
|
|
|
|
.screen-content.no-app-chrome:has(> .auth-screen--welcome) {
|
|
overflow: hidden;
|
|
overscroll-behavior: none;
|
|
}
|
|
|
|
|
|
.auth-screen--lower {
|
|
align-content: start;
|
|
padding-top: clamp(80px, 18vh, 180px);
|
|
}
|
|
|
|
|
|
.auth-logo {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
filter:
|
|
drop-shadow(0 0 8px color-mix(in srgb, var(--warning) 72%, transparent))
|
|
drop-shadow(0 8px 22px color-mix(in srgb, var(--warning) 38%, transparent));
|
|
animation: shine-logo-breathe 5.3s ease-in-out infinite;
|
|
}
|
|
|
|
|
|
.auth-logo-wrap {
|
|
position: relative;
|
|
width: clamp(232px, 59vw, 284px);
|
|
aspect-ratio: 1;
|
|
}
|
|
|
|
|
|
/* Сияние знака: два медленно вращающихся навстречу веера широких мазков. Периоды взаимно простые —
|
|
мазки то сходятся, то расходятся и почти не повторяются. Эллипс шире по горизонтали, к краям гаснет. */
|
|
.auth-logo-wrap::before,
|
|
.auth-logo-wrap::after {
|
|
--halo: color-mix(in srgb, var(--warning) 34%, transparent);
|
|
--halo-soft: color-mix(in srgb, var(--warning) 15%, transparent);
|
|
content: "";
|
|
position: absolute;
|
|
/* Спад прозрачности по плавной кривой с длинным хвостом — без видимой границы овала. */
|
|
inset: -80%;
|
|
z-index: -1;
|
|
pointer-events: none;
|
|
border-radius: 50%;
|
|
-webkit-mask: radial-gradient(closest-side, #000 12%, rgb(0 0 0 / 0.8) 22%, rgb(0 0 0 / 0.58) 33%, rgb(0 0 0 / 0.4) 44%, rgb(0 0 0 / 0.26) 55%, rgb(0 0 0 / 0.16) 65%, rgb(0 0 0 / 0.09) 75%, rgb(0 0 0 / 0.045) 84%, rgb(0 0 0 / 0.018) 92%, transparent);
|
|
mask: radial-gradient(closest-side, #000 12%, rgb(0 0 0 / 0.8) 22%, rgb(0 0 0 / 0.58) 33%, rgb(0 0 0 / 0.4) 44%, rgb(0 0 0 / 0.26) 55%, rgb(0 0 0 / 0.16) 65%, rgb(0 0 0 / 0.09) 75%, rgb(0 0 0 / 0.045) 84%, rgb(0 0 0 / 0.018) 92%, transparent);
|
|
filter: blur(24px);
|
|
}
|
|
|
|
.auth-logo-wrap::before {
|
|
background: conic-gradient(from 0deg, var(--halo) 0deg, transparent 58deg, var(--halo-soft) 104deg, transparent 150deg, var(--halo) 212deg, var(--halo-soft) 250deg, transparent 296deg, var(--halo) 360deg);
|
|
transform: scaleY(0.5);
|
|
animation: shine-halo-spin 83s linear infinite, shine-halo-breathe 7.3s ease-in-out infinite;
|
|
animation-delay: var(--halo-phase-1, 0s), var(--halo-phase-2, 0s);
|
|
}
|
|
|
|
.auth-logo-wrap::after {
|
|
--halo: color-mix(in srgb, color-mix(in srgb, var(--warning) 82%, var(--accent)) 28%, transparent);
|
|
background: conic-gradient(from 40deg, transparent 0deg, var(--halo) 36deg, transparent 92deg, var(--halo-soft) 140deg, transparent 176deg, var(--halo) 238deg, transparent 290deg, var(--halo-soft) 322deg, transparent 360deg);
|
|
transform: scaleY(0.5);
|
|
animation: shine-halo-spin 127s linear infinite reverse, shine-halo-breathe 11.9s ease-in-out infinite;
|
|
animation-delay: var(--halo-phase-3, 0s), var(--halo-phase-4, -4s);
|
|
}
|
|
|
|
/* На светлом фоне золото темнеет в коричневый — сияние тише. */
|
|
:root[data-theme='light'] .auth-logo-wrap::before,
|
|
:root[data-theme='light'] .auth-logo-wrap::after {
|
|
--halo: color-mix(in srgb, var(--warning) 18%, transparent);
|
|
--halo-soft: color-mix(in srgb, var(--warning) 8%, transparent);
|
|
}
|
|
|
|
|
|
.auth-brand {
|
|
margin: clamp(20px, 3.4vh, 32px) 0 0;
|
|
color: var(--text-primary);
|
|
font-size: clamp(42px, 9vw, 56px);
|
|
line-height: 1;
|
|
}
|
|
|
|
|
|
.auth-brand .shine-wordmark {
|
|
display: block;
|
|
width: auto;
|
|
height: 0.5em;
|
|
overflow: visible;
|
|
}
|
|
|
|
|
|
.auth-actions,
|
|
.auth-footer-actions {
|
|
display: grid;
|
|
gap: 10px;
|
|
}
|
|
|
|
|
|
.auth-actions {
|
|
width: min(100%, 320px);
|
|
}
|
|
|
|
|
|
.shine-actions {
|
|
width: min(100%, 390px);
|
|
max-width: calc(100% - 48px);
|
|
gap: 12px;
|
|
}
|
|
|
|
|
|
.shine-btn {
|
|
position: relative;
|
|
isolation: isolate;
|
|
overflow: hidden;
|
|
width: 100%;
|
|
height: 56px;
|
|
min-height: 48px;
|
|
padding: 0 24px;
|
|
border-radius: 18px;
|
|
font-family: var(--font-main);
|
|
font-size: 18px;
|
|
font-weight: 500;
|
|
line-height: 1.2;
|
|
letter-spacing: 0;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
}
|
|
|
|
|
|
.shine-btn:disabled {
|
|
opacity: 0.45;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
|
|
.shine-local-demo-btn {
|
|
min-height: 32px;
|
|
padding: 5px 12px;
|
|
border: 0;
|
|
background: transparent;
|
|
color: var(--accent);
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
|
|
.shine-local-demo-btn:hover {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
|
|
@keyframes shine-logo-breathe {
|
|
0%, 100% {
|
|
filter:
|
|
drop-shadow(0 0 8px color-mix(in srgb, var(--warning) 62%, transparent))
|
|
drop-shadow(0 8px 22px color-mix(in srgb, var(--warning) 34%, transparent));
|
|
}
|
|
50% {
|
|
filter:
|
|
drop-shadow(0 0 14px color-mix(in srgb, var(--warning) 88%, transparent))
|
|
drop-shadow(0 10px 28px color-mix(in srgb, var(--warning) 50%, transparent));
|
|
}
|
|
}
|
|
|
|
|
|
@keyframes shine-halo-breathe {
|
|
0%, 100% { opacity: 0.55; }
|
|
50% { opacity: 1; }
|
|
}
|
|
|
|
|
|
/* Сначала поворот, потом сплющивание: эллипс всегда лежит горизонтально и не тянется к верхнему краю. */
|
|
@keyframes shine-halo-spin {
|
|
from { transform: scaleY(0.5) rotate(0deg); }
|
|
to { transform: scaleY(0.5) rotate(360deg); }
|
|
}
|
|
|
|
|
|
@media (min-width: 768px) {
|
|
.shine-btn {
|
|
height: 60px;
|
|
font-size: 20px;
|
|
}
|
|
}
|
|
|
|
|
|
@media (max-height: 760px) {
|
|
.initial-splash__logo-wrap {
|
|
width: 206px;
|
|
}
|
|
.initial-splash__brand {
|
|
font-size: 40px;
|
|
}
|
|
.auth-logo-wrap {
|
|
width: 206px;
|
|
}
|
|
.shine-actions {
|
|
gap: 10px;
|
|
}
|
|
.shine-btn {
|
|
height: 52px;
|
|
}
|
|
}
|
|
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.initial-splash {
|
|
transition-duration: 1ms;
|
|
}
|
|
.initial-splash__logo,
|
|
.initial-splash__logo-wrap::before,
|
|
.auth-logo,
|
|
.auth-logo-wrap::before,
|
|
.auth-logo-wrap::after,
|
|
.shine-btn {
|
|
animation: none;
|
|
transition: none;
|
|
}
|
|
}
|
|
|
|
|
|
.login-actions-wide {
|
|
width: 100%;
|
|
}
|
|
|
|
|
|
/* Shared visual language for every screen before a user enters the app. */
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) {
|
|
--preauth-ivory: var(--text-primary);
|
|
--preauth-muted: var(--text-secondary);
|
|
--preauth-line: var(--border-subtle);
|
|
--preauth-card: var(--surface);
|
|
padding: env(safe-area-inset-top) 16px calc(28px + env(safe-area-inset-bottom));
|
|
overflow-x: hidden;
|
|
background:
|
|
radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--warning) 8%, transparent), transparent 26%),
|
|
radial-gradient(circle at 50% 67%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 38%),
|
|
var(--background);
|
|
color: var(--preauth-ivory);
|
|
font-family: var(--font-main);
|
|
overscroll-behavior: contain;
|
|
}
|
|
|
|
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) > section.stack {
|
|
width: min(100%, 420px);
|
|
margin-inline: auto;
|
|
}
|
|
|
|
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .topbar {
|
|
display: grid;
|
|
grid-template-columns: 42px minmax(0, 1fr) 42px;
|
|
align-items: center;
|
|
min-height: 42px;
|
|
margin-bottom: 18px;
|
|
gap: 8px;
|
|
}
|
|
|
|
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .topbar__title {
|
|
min-width: 0;
|
|
margin: 0;
|
|
color: var(--preauth-ivory);
|
|
font-size: 20px;
|
|
font-weight: 650;
|
|
letter-spacing: 0;
|
|
line-height: 1.2;
|
|
text-align: center;
|
|
}
|
|
|
|
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .topbar__left,
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .topbar__right {
|
|
min-width: 0;
|
|
}
|
|
|
|
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .topbar__right {
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .topbar__left .icon-btn,
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .topbar__right .icon-btn {
|
|
display: grid;
|
|
place-items: center;
|
|
width: 40px;
|
|
min-width: 40px;
|
|
height: 40px;
|
|
min-height: 40px;
|
|
padding: 0;
|
|
border-radius: 12px;
|
|
border-color: var(--preauth-line);
|
|
background: var(--surface);
|
|
color: var(--preauth-ivory);
|
|
font-size: 22px;
|
|
line-height: 1;
|
|
text-align: center;
|
|
box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text-primary) 8%, transparent);
|
|
}
|
|
|
|
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .login-choice-screen {
|
|
align-content: start;
|
|
justify-items: stretch;
|
|
padding-top: 0;
|
|
}
|
|
|
|
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .login-choice-screen .topbar {
|
|
margin-bottom: clamp(72px, 14vh, 132px);
|
|
}
|
|
|
|
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .login-choice-screen .topbar__title {
|
|
display: none;
|
|
}
|
|
|
|
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .login-choice-screen .topbar__left .icon-btn {
|
|
justify-self: start;
|
|
}
|
|
|
|
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .card,
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .login-panel {
|
|
border: 1px solid var(--preauth-line);
|
|
border-radius: 16px;
|
|
background:
|
|
linear-gradient(180deg, color-mix(in srgb, var(--text-primary) 6%, transparent), transparent 24%),
|
|
var(--preauth-card);
|
|
box-shadow:
|
|
inset 0 1px 0 color-mix(in srgb, var(--text-primary) 8%, transparent),
|
|
0 16px 34px rgba(0, 0, 0, 0.24);
|
|
backdrop-filter: blur(16px) saturate(120%);
|
|
-webkit-backdrop-filter: blur(16px) saturate(120%);
|
|
}
|
|
|
|
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .card {
|
|
padding: 18px;
|
|
}
|
|
|
|
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .card .card {
|
|
padding: 0;
|
|
border: 0;
|
|
background: transparent;
|
|
box-shadow: none;
|
|
backdrop-filter: none;
|
|
-webkit-backdrop-filter: none;
|
|
}
|
|
|
|
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .login-panel {
|
|
width: min(100%, 420px);
|
|
padding: 20px;
|
|
gap: 16px;
|
|
}
|
|
|
|
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .login-panel-title,
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .registration-faq-title,
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .modal-title {
|
|
color: var(--preauth-ivory);
|
|
letter-spacing: 0;
|
|
}
|
|
|
|
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .login-panel-title {
|
|
font-size: 24px;
|
|
font-weight: 650;
|
|
}
|
|
|
|
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .field-label,
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .auth-copy,
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .registration-word-number {
|
|
color: var(--preauth-muted);
|
|
}
|
|
|
|
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .input,
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .select {
|
|
min-height: 48px;
|
|
border-color: color-mix(in srgb, var(--accent) 22%, transparent);
|
|
border-radius: 12px;
|
|
background: var(--surface);
|
|
color: var(--preauth-ivory);
|
|
}
|
|
|
|
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .input:focus,
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .select:focus {
|
|
border-color: transparent;
|
|
}
|
|
|
|
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .auth-footer-actions {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
width: min(100%, 420px);
|
|
margin-inline: auto;
|
|
gap: 10px;
|
|
}
|
|
|
|
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) :is(.primary-btn, .secondary-btn, .ghost-btn) {
|
|
min-height: 50px;
|
|
border-radius: 14px;
|
|
font-family: inherit;
|
|
font-weight: 600;
|
|
letter-spacing: 0;
|
|
}
|
|
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .link-card {
|
|
min-height: 50px;
|
|
border-radius: 14px;
|
|
color: var(--preauth-ivory);
|
|
font-family: inherit;
|
|
font-weight: 600;
|
|
letter-spacing: 0;
|
|
}
|
|
|
|
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .link-card {
|
|
border-color: var(--preauth-line);
|
|
background: linear-gradient(180deg, var(--surface), var(--surface));
|
|
box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text-primary) 8%, transparent), 0 8px 18px rgba(0, 0, 0, 0.18);
|
|
}
|
|
|
|
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .link-card:hover {
|
|
border-color: transparent;
|
|
}
|
|
|
|
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .registration-toggle,
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .session-item {
|
|
border-color: var(--preauth-line);
|
|
background: var(--surface);
|
|
color: var(--preauth-ivory);
|
|
}
|
|
|
|
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .registration-progress {
|
|
border-color: transparent;
|
|
background: var(--surface);
|
|
}
|
|
|
|
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .registration-progress-bar {
|
|
background: linear-gradient(90deg, var(--warning), var(--warning));
|
|
}
|
|
|
|
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .camera-shell {
|
|
min-height: min(48dvh, 360px);
|
|
border-radius: 16px;
|
|
border-color: var(--preauth-line);
|
|
background: var(--surface);
|
|
box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text-primary) 6%, transparent);
|
|
}
|
|
|
|
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .camera-video {
|
|
min-height: min(48dvh, 360px);
|
|
}
|
|
|
|
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .registration-form {
|
|
gap: 14px;
|
|
padding: 16px;
|
|
}
|
|
|
|
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .registration-form .field-label {
|
|
font-size: var(--text-sm);
|
|
}
|
|
|
|
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .registration-password-single {
|
|
gap: 6px;
|
|
}
|
|
|
|
|
|
.password-length-hint {
|
|
margin: 0;
|
|
color: var(--accent);
|
|
font-size: 12px;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .registration-toggle {
|
|
min-height: 48px;
|
|
padding: 10px 12px;
|
|
border-radius: 12px;
|
|
font-size: 15px;
|
|
}
|
|
|
|
|
|
.registration-login-status {
|
|
display: block;
|
|
min-height: var(--leading-sm);
|
|
margin: 0;
|
|
font-size: var(--text-sm);
|
|
line-height: var(--leading-sm);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.registration-login-status.is-available::before { content: "✓ "; }
|
|
.registration-login-status.is-checking { color: var(--text-secondary); }
|
|
|
|
|
|
.registration-faq-link {
|
|
justify-self: center;
|
|
min-height: 30px;
|
|
padding: 4px 8px;
|
|
font: inherit;
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
|
|
@media (max-width: 360px) {
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) {
|
|
padding-inline: 12px;
|
|
}
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .card,
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .login-panel {
|
|
padding: 16px;
|
|
}
|
|
}
|
|
|
|
|
|
.login-panel {
|
|
width: min(100%, 360px);
|
|
gap: 14px;
|
|
}
|
|
|
|
|
|
.login-panel-title {
|
|
font-size: 28px;
|
|
font-weight: 700;
|
|
color: var(--text);
|
|
text-align: center;
|
|
}
|
|
|
|
|
|
.auth-footer-actions {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
|
|
|
|
.auth-copy {
|
|
line-height: 1.45;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
|
|
.auth-status-card {
|
|
width: min(100%, 320px);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
|
|
.registration-finish-card {
|
|
width: 100%;
|
|
max-width: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
|
|
.registration-finish-title {
|
|
margin: 0;
|
|
font-size: clamp(1.7rem, 6vw, 2.15rem);
|
|
line-height: 1.18;
|
|
text-wrap: balance;
|
|
}
|
|
|
|
|
|
.registration-finish-text,
|
|
.registration-finish-tx,
|
|
.registration-finish-progress {
|
|
max-width: 100%;
|
|
overflow-wrap: anywhere;
|
|
word-break: break-word;
|
|
}
|
|
|
|
|
|
.registration-finish-tx-link {
|
|
color: var(--accent);
|
|
text-decoration: underline;
|
|
overflow-wrap: anywhere;
|
|
word-break: break-all;
|
|
}
|
|
|
|
|
|
.registration-finish-tx-link:hover,
|
|
.registration-finish-tx-link:focus-visible {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
|
|
.registration-toggle {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 12px 14px;
|
|
border-radius: 14px;
|
|
border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
|
|
background: var(--surface);
|
|
color: var(--text-primary);
|
|
line-height: 1.4;
|
|
}
|
|
|
|
|
|
.registration-toggle input {
|
|
width: 18px;
|
|
height: 18px;
|
|
accent-color: var(--warning);
|
|
}
|
|
|
|
|
|
.registration-words-block[hidden] {
|
|
display: none;
|
|
}
|
|
|
|
|
|
.registration-words-block {
|
|
display: grid;
|
|
gap: 10px;
|
|
}
|
|
|
|
|
|
.registration-words-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 8px;
|
|
}
|
|
|
|
|
|
.registration-word-row {
|
|
display: grid;
|
|
grid-template-columns: auto minmax(0, 1fr);
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
|
|
.registration-word-number {
|
|
font-size: 12px;
|
|
color: var(--accent);
|
|
min-width: 18px;
|
|
text-align: right;
|
|
}
|
|
|
|
|
|
.registration-word-input {
|
|
min-height: 44px;
|
|
padding-left: 10px;
|
|
}
|
|
|
|
|
|
.registration-faq-card {
|
|
gap: 12px;
|
|
}
|
|
|
|
|
|
.registration-faq-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 8px;
|
|
}
|
|
|
|
|
|
.registration-faq-grid .ghost-btn,
|
|
.registration-faq-grid .secondary-btn {
|
|
min-height: 44px;
|
|
text-align: left;
|
|
}
|
|
|
|
|
|
@media (max-width: 740px) {
|
|
.registration-words-grid,
|
|
.registration-faq-grid {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
}
|
|
|
|
|
|
@media (max-width: 460px) {
|
|
.registration-words-grid,
|
|
.registration-faq-grid {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
}
|
|
}
|
|
|
|
|
|
.registration-faq-hero {
|
|
gap: 12px;
|
|
}
|
|
|
|
|
|
.registration-faq-topic {
|
|
gap: 12px;
|
|
}
|
|
|
|
|
|
.registration-faq-title {
|
|
margin: 0;
|
|
font-size: 22px;
|
|
line-height: 1.2;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
|
|
/* Глаз — внутри поля пароля, у правого края. */
|
|
.registration-password-single .inline-input-row {
|
|
position: relative;
|
|
display: block;
|
|
}
|
|
|
|
.registration-password-single .inline-input-row .input {
|
|
width: 100%;
|
|
padding-right: 48px;
|
|
}
|
|
|
|
.registration-password-toggle {
|
|
position: absolute;
|
|
top: 50%;
|
|
right: 2px;
|
|
width: 44px;
|
|
height: 44px;
|
|
min-width: 44px;
|
|
min-height: 44px;
|
|
border: 0;
|
|
border-radius: var(--radius-md);
|
|
background: transparent;
|
|
color: var(--text-secondary);
|
|
transform: translateY(-50%);
|
|
}
|
|
|
|
.registration-password-toggle .key-toggle-icon {
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
|
|
|
|
.registration-progress {
|
|
width: 100%;
|
|
height: 10px;
|
|
border: 1px solid var(--border-control);
|
|
border-radius: 6px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
|
|
.registration-progress-bar {
|
|
height: 100%;
|
|
width: 0%;
|
|
background: color-mix(in srgb, var(--accent) 90%, transparent);
|
|
transition: width 180ms linear;
|
|
}
|
|
|
|
|
|
/* Новый двухшаговый login flow */
|
|
.login-remote-server {
|
|
width: 100%;
|
|
padding: 14px;
|
|
border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
|
|
border-radius: 14px;
|
|
background: var(--surface);
|
|
}
|
|
|
|
|
|
.login-server-link {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 100%;
|
|
overflow-wrap: anywhere;
|
|
text-decoration: none;
|
|
}
|
|
|
|
|
|
.secret-generation-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 12000;
|
|
place-items: center;
|
|
padding: 24px;
|
|
background: var(--surface);
|
|
backdrop-filter: blur(14px);
|
|
-webkit-backdrop-filter: blur(14px);
|
|
}
|
|
|
|
|
|
.secret-generation-card {
|
|
width: min(100%, 290px);
|
|
place-items: center;
|
|
padding: 28px 24px;
|
|
border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
|
|
border-radius: 20px;
|
|
background: var(--surface);
|
|
box-shadow: 0 22px 54px rgba(0, 0, 0, 0.34);
|
|
text-align: center;
|
|
}
|
|
|
|
|
|
.secret-generation-spinner {
|
|
width: 42px;
|
|
height: 42px;
|
|
border: 3px solid var(--border-subtle);
|
|
border-top-color: transparent;
|
|
border-radius: 50%;
|
|
animation: secret-generation-spin 0.82s linear infinite;
|
|
}
|
|
|
|
|
|
.secret-generation-title {
|
|
color: var(--preauth-ivory, var(--text-primary));
|
|
font-size: 18px;
|
|
font-weight: 650;
|
|
}
|
|
|
|
|
|
.secret-generation-progress {
|
|
min-height: 20px;
|
|
color: var(--preauth-muted, var(--accent));
|
|
font-size: 13px;
|
|
}
|
|
|
|
|
|
@keyframes secret-generation-spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
|
|
/* Сохранение ключей: заголовок-итог, список с переключателями, короткий совет. */
|
|
.keys-lead { display: grid; gap: var(--space-1); padding: var(--space-2) var(--space-1) 0; }
|
|
.keys-lead__title { margin: 0; color: var(--text-primary); font-size: var(--text-xl); line-height: var(--leading-xl); font-weight: var(--weight-bold); }
|
|
.keys-lead__text { margin: 0; color: var(--text-secondary); font-size: var(--text-md); line-height: var(--leading-md); text-wrap: pretty; }
|
|
.keys-lead__text + .keys-lead__text { margin-top: calc(-1 * var(--space-1)); }
|
|
|
|
.keys-list {
|
|
display: grid;
|
|
border: 1px solid var(--border-subtle);
|
|
border-radius: var(--radius-lg);
|
|
background: var(--surface);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.keys-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-3);
|
|
min-height: 64px;
|
|
padding: var(--space-3) var(--space-4);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.keys-row + .keys-row { border-top: 1px solid var(--border-subtle); }
|
|
.keys-row:has(.switch:disabled) { cursor: default; }
|
|
.keys-row__text { display: grid; gap: 2px; flex: 1 1 auto; min-width: 0; }
|
|
.keys-row__title { color: var(--text-primary); font-size: var(--text-md); line-height: var(--leading-md); font-weight: var(--weight-medium); }
|
|
.keys-row__hint { color: var(--text-secondary); font-size: var(--text-sm); line-height: var(--leading-sm); text-wrap: pretty; }
|
|
|
|
.keys-note { margin: 0; padding: 0 var(--space-1); color: var(--text-secondary); font-size: var(--text-sm); line-height: var(--leading-sm); }
|
|
.keys-actions { display: grid; gap: var(--space-2); margin-top: var(--space-2); }
|
|
|
|
|
|
/* Оплата регистрации: «обновить баланс» — второстепенная кнопка-иконка, пока грузится — крутится. */
|
|
.payment-refresh-btn {
|
|
display: grid;
|
|
place-items: center;
|
|
width: 44px;
|
|
min-width: 44px;
|
|
height: 44px;
|
|
padding: 0;
|
|
border: 1px solid var(--border-control);
|
|
border-radius: var(--radius-md);
|
|
background: transparent;
|
|
color: var(--action);
|
|
}
|
|
|
|
.payment-refresh-btn svg { width: 22px; height: 22px; }
|
|
.payment-refresh-btn.is-loading:disabled { opacity: 1; cursor: progress; }
|
|
.payment-refresh-btn.is-loading svg { animation: secret-generation-spin 0.9s linear infinite; }
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.payment-refresh-btn.is-loading svg { animation: none; }
|
|
}
|
|
|
|
|
|
/* ===== Вход с другого устройства: код, таймер, шаги ===== */
|
|
.pairing-who {
|
|
margin: 0;
|
|
color: var(--text-secondary);
|
|
font-size: var(--text-md);
|
|
text-align: center;
|
|
}
|
|
|
|
.pairing-code-block { display: grid; gap: var(--space-4); }
|
|
.pairing-code-block[hidden] { display: none; }
|
|
|
|
.pairing-code-card {
|
|
display: grid;
|
|
justify-items: center;
|
|
gap: var(--space-3);
|
|
padding: var(--space-5) var(--space-4) var(--space-4);
|
|
border: 1px solid var(--border-subtle);
|
|
border-radius: var(--radius-lg);
|
|
background: var(--surface);
|
|
}
|
|
|
|
.pairing-code-card__label {
|
|
margin: 0;
|
|
color: var(--text-secondary);
|
|
font-size: var(--text-sm);
|
|
}
|
|
|
|
.pairing-code {
|
|
color: var(--text-primary);
|
|
font-size: clamp(30px, 9vw, 38px);
|
|
font-weight: 600;
|
|
font-variant-numeric: tabular-nums;
|
|
letter-spacing: 0.06em;
|
|
line-height: 1.1;
|
|
white-space: nowrap;
|
|
user-select: all;
|
|
}
|
|
|
|
.pairing-timer {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
align-items: center;
|
|
gap: var(--space-3);
|
|
width: min(100%, 260px);
|
|
}
|
|
|
|
.pairing-timer__bar {
|
|
height: 4px;
|
|
border-radius: var(--radius-pill);
|
|
background: var(--surface-raised);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.pairing-timer__bar > span {
|
|
display: block;
|
|
height: 100%;
|
|
border-radius: inherit;
|
|
background: var(--accent);
|
|
transition: width 1s linear;
|
|
}
|
|
|
|
.pairing-timer__text {
|
|
min-width: 3.2em;
|
|
color: var(--text-secondary);
|
|
font-size: var(--text-sm);
|
|
font-variant-numeric: tabular-nums;
|
|
text-align: right;
|
|
}
|
|
|
|
.pairing-online {
|
|
margin: 0;
|
|
color: var(--text-secondary);
|
|
font-size: var(--text-sm);
|
|
}
|
|
|
|
.pairing-online.is-online { color: var(--success); }
|
|
.pairing-online.is-online::before { content: "● "; }
|
|
|
|
.pairing-steps {
|
|
display: grid;
|
|
gap: var(--space-2);
|
|
margin: 0;
|
|
padding: 0 var(--space-2);
|
|
list-style: none;
|
|
counter-reset: pairing-step;
|
|
}
|
|
|
|
.pairing-steps > li {
|
|
display: grid;
|
|
grid-template-columns: 24px minmax(0, 1fr);
|
|
align-items: center;
|
|
gap: var(--space-3);
|
|
color: var(--text-primary);
|
|
font-size: var(--text-md);
|
|
line-height: var(--leading-md);
|
|
text-wrap: pretty;
|
|
counter-increment: pairing-step;
|
|
}
|
|
|
|
.pairing-steps > li::before {
|
|
content: counter(pairing-step);
|
|
display: grid;
|
|
place-items: center;
|
|
width: 24px;
|
|
height: 24px;
|
|
border-radius: 50%;
|
|
background: var(--surface-selected);
|
|
color: var(--action);
|
|
font-size: var(--text-xs);
|
|
font-weight: var(--weight-bold);
|
|
}
|
|
|
|
.pairing-waiting,
|
|
.pairing-notice {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: var(--space-2);
|
|
margin: 0;
|
|
color: var(--text-secondary);
|
|
font-size: var(--text-sm);
|
|
text-align: center;
|
|
}
|
|
|
|
.pairing-notice[hidden] { display: none; }
|
|
.pairing-notice > p { margin: 0; text-wrap: balance; }
|
|
|
|
.pairing-notice.is-error {
|
|
padding: var(--space-4);
|
|
border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent);
|
|
border-radius: var(--radius-lg);
|
|
background: color-mix(in srgb, var(--danger) 10%, transparent);
|
|
color: var(--danger);
|
|
font-size: var(--text-md);
|
|
}
|
|
|
|
.pairing-spinner {
|
|
flex: 0 0 auto;
|
|
width: 14px;
|
|
height: 14px;
|
|
border: 2px solid var(--border-control);
|
|
border-top-color: var(--accent);
|
|
border-radius: 50%;
|
|
animation: secret-generation-spin 0.9s linear infinite;
|
|
}
|
|
|
|
.pairing-spinner[hidden],
|
|
.pairing-password[hidden],
|
|
.pairing-login > .primary-btn[hidden] { display: none; }
|
|
|
|
/* Узкие экраны: шаги остаются в одну строку. */
|
|
@media (max-width: 360px) {
|
|
.pairing-steps > li { font-size: var(--text-sm); }
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.pairing-spinner { animation: none; }
|
|
.pairing-timer__bar > span { transition: none; }
|
|
}
|
|
|
|
|
|
/* ===== UX refinements 2026-08-29 ===== */
|
|
|
|
|
|
/* Настройки входа: все серверы в одной карточке, статус — пилюля справа от подписи (она же «проверить ещё раз»). */
|
|
.entry-servers {
|
|
display: grid;
|
|
border: 1px solid var(--border-subtle);
|
|
border-radius: var(--radius-lg);
|
|
background: var(--surface);
|
|
}
|
|
|
|
.entry-server {
|
|
display: grid;
|
|
gap: var(--space-2);
|
|
padding: var(--space-3) var(--space-4) var(--space-4);
|
|
}
|
|
|
|
.entry-server + .entry-server { border-top: 1px solid var(--border-subtle); }
|
|
|
|
.entry-server__head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: var(--space-2);
|
|
}
|
|
|
|
.entry-server__hint {
|
|
margin: calc(-1 * var(--space-1)) 0 0;
|
|
color: var(--text-secondary);
|
|
font-size: var(--text-xs);
|
|
line-height: var(--leading-xs);
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.entry-status {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
min-height: 32px;
|
|
padding: 0 var(--space-3);
|
|
border: 0;
|
|
border-radius: var(--radius-pill);
|
|
background: color-mix(in srgb, var(--action) 14%, transparent);
|
|
color: var(--action);
|
|
font-size: var(--text-sm);
|
|
font-weight: var(--weight-medium);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.entry-status:is(.is-available, .is-unavailable)::before {
|
|
content: "";
|
|
width: 7px;
|
|
height: 7px;
|
|
border-radius: 50%;
|
|
background: currentColor;
|
|
}
|
|
|
|
.entry-status.is-available {
|
|
color: var(--success);
|
|
background: color-mix(in srgb, var(--success) 15%, transparent);
|
|
}
|
|
|
|
.entry-status.is-unavailable {
|
|
color: var(--danger);
|
|
background: color-mix(in srgb, var(--danger) 15%, transparent);
|
|
}
|
|
|
|
.entry-status.is-checking:disabled {
|
|
opacity: 1;
|
|
cursor: progress;
|
|
color: var(--text-secondary);
|
|
background: transparent;
|
|
}
|
|
|
|
.entry-settings__actions {
|
|
display: grid;
|
|
gap: var(--space-2);
|
|
width: 100%;
|
|
margin-top: var(--space-2);
|
|
}
|
|
|
|
.screen-content.preauth-flow .auth-footer-actions .shine-btn {
|
|
width: 100%;
|
|
}
|
|
|
|
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .topbar__left .icon-btn,
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .topbar__right .icon-btn {
|
|
width: 44px;
|
|
min-width: 44px;
|
|
height: 44px;
|
|
min-height: 44px;
|
|
border: 0;
|
|
background: transparent;
|
|
box-shadow: none;
|
|
color: var(--text-primary);
|
|
}
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .topbar__title { color: var(--text-primary); font-size: var(--text-lg); font-weight: var(--weight-bold); }
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .card,
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .login-panel {
|
|
border: 1px solid var(--border-subtle);
|
|
border-radius: var(--radius-lg);
|
|
background: var(--surface);
|
|
box-shadow: none;
|
|
backdrop-filter: none;
|
|
-webkit-backdrop-filter: none;
|
|
}
|
|
.screen-content.preauth-flow .topbar { background: transparent; }
|
|
|
|
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .login-choice-screen .topbar { margin-bottom: var(--space-4); }
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .login-choice-screen .topbar__title { display: block; }
|
|
|
|
.screen-content.filled-action-buttons .registration-faq-link {
|
|
justify-self: center;
|
|
min-height: 36px;
|
|
padding: 0 8px;
|
|
border: 0;
|
|
background: transparent;
|
|
box-shadow: none;
|
|
color: var(--accent);
|
|
font-size: var(--text-sm);
|
|
font-weight: var(--weight-medium);
|
|
text-decoration: underline;
|
|
text-underline-offset: 3px;
|
|
}
|
|
|
|
.screen-content.preauth-flow:not(:has(> .auth-screen--welcome)) .topbar { min-height: 56px; margin-bottom: calc(var(--page-top-gap) - 10px); /* + промежуток .stack 10px */ grid-template-columns: 44px minmax(0, 1fr) 44px; }
|
|
|
|
|