/* 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: 16%; z-index: -1; border-radius: 50%; background: color-mix(in srgb, var(--warning) 20%, transparent); filter: blur(30px); 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 4.8s 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; align-content: center; justify-items: center; gap: clamp(12px, 2.4vh, 20px); padding-block: 8px; font-family: var(--font-main); } .screen-content.no-app-chrome:has(> .auth-screen--welcome) { overflow: hidden; overscroll-behavior: none; } .auth-screen--welcome::before { content: ""; position: absolute; inset: -14px -14px calc(-24px - env(safe-area-inset-bottom)); z-index: -2; 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); } .auth-screen--welcome::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--text-primary) 2%, transparent) 50%, transparent); opacity: 0.7; } .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 4.8s ease-in-out infinite; } .auth-logo-wrap { position: relative; width: clamp(232px, 59vw, 284px); aspect-ratio: 1; } .auth-logo-wrap::before { content: ""; position: absolute; inset: 16%; z-index: -1; border-radius: 50%; background: color-mix(in srgb, var(--warning) 20%, transparent); filter: blur(30px); animation: shine-halo-breathe 4.8s ease-in-out infinite; } .auth-brand { margin: -4px 0 clamp(4px, 1vh, 10px); color: var(--text-primary); font-size: clamp(42px, 9vw, 56px); font-weight: 500; line-height: 1; letter-spacing: 0; text-shadow: 0 3px 22px color-mix(in srgb, var(--warning) 20%, transparent); } .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.66; transform: scale(0.96); } 50% { opacity: 1; transform: scale(1.05); } } @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-screen--welcome { gap: 10px; } .auth-logo-wrap { width: 206px; } .auth-brand { font-size: 40px; margin-bottom: 2px; } .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, .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)) .status-line, .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)) .preauth-local-demo-btn { min-height: 44px; } .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-screen { gap: 12px; } .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 { margin: 0; font-size: 13px; } .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--wide { width: min(100%, 420px); } .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-toggle { width: 44px; height: 44px; min-width: 44px; min-height: 44px; border-radius: 14px; } .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; } .login-device-preparation { width: 100%; } .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); } } /* ===== Вход через другое устройство: заголовок внутри панели ===== */ .auth-screen--other-device { justify-content: flex-start; padding-top: max(18px, env(safe-area-inset-top)); } .auth-screen--other-device .login-panel { margin-top: 0; } .login-panel-inline-back { width: 100%; min-height: 42px; display: flex; align-items: center; justify-content: flex-start; gap: 10px; padding: 0 2px; font-size: 18px; font-weight: 700; text-align: left; } .login-panel-inline-back > span:first-child { font-size: 24px; line-height: 1; } /* ===== UX refinements 2026-08-29 ===== */ /* Start: larger breathing room between brand and actions. */ .auth-screen--welcome .auth-brand { margin-bottom: clamp(34px, 6vh, 58px); } .auth-screen--welcome .shine-actions { margin-top: 0; } /* Entry settings actions use the existing Start button visual language without huge width side effects. */ .screen-content.preauth-flow .server-check-btn.shine-btn { width: auto; height: 44px; min-height: 44px; padding-inline: 18px; border-radius: 14px; font-size: 15px; } .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; } .auth-screen--welcome .shine-actions { gap: var(--space-3); } .auth-screen--welcome .start-language-link, .auth-screen--welcome .start-settings-link { min-height: var(--control-height); border: 0; background: transparent; box-shadow: none; color: var(--accent); font-size: var(--text-md); font-weight: var(--weight-medium); } .auth-screen--welcome .start-settings-link { color: var(--text-secondary); font-size: var(--text-sm); } .auth-screen--welcome .start-settings-link::after { content: none; } .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: var(--space-2); grid-template-columns: 44px minmax(0, 1fr) 44px; } .auth-screen--welcome .shine-actions { width: min(100%, 420px); justify-self: center; } .auth-screen--welcome .shine-actions > :is(.shine-btn, .secondary-btn) { width: 100%; min-height: 48px; font-size: var(--text-md); font-weight: var(--weight-bold); }