@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap'); :root { --primary: #4f46e5; --primary-hover: #4338ca; --primary-light: #eef2ff; --text-main: #111827; --text-muted: #6b7280; --text-label: #1f2937; --border-color: #e5e7eb; --border-focus: #4f46e5; --bg-page: #ffffff; --card-bg: #ffffff; --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; } * { margin: 0; padding: 0; box-sizing: border-box; } html, body { height: 100%; width: 100%; margin: 0; padding: 0; overflow: hidden; } body { font-family: var(--font-family); background-color: var(--bg-page); color: var(--text-main); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; user-select: none; } /* Global SVG normalization */ svg { display: inline-block; vertical-align: middle; flex-shrink: 0; box-sizing: content-box; } /* Tailwind-compatible size utilities */ .w-3\.5 { width: 14px !important; } .h-3\.5 { height: 14px !important; } .w-4 { width: 16px !important; } .h-4 { height: 16px !important; } .w-5 { width: 20px !important; } .h-5 { height: 20px !important; } .w-6 { width: 24px !important; } .h-6 { height: 24px !important; } .w-8 { width: 32px !important; } .h-8 { height: 32px !important; } .app-viewport { height: 100vh; max-height: 100vh; overflow-y: auto; display: flex; flex-direction: column; justify-content: space-between; position: relative; background-color: #ffffff; } /* Top bar with DB info badge */ .top-bar { display: flex; justify-content: flex-end; align-items: center; padding: 16px 28px 0 28px; position: absolute; top: 0; left: 0; right: 0; z-index: 20; } .db-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 9999px; font-size: 12px; font-weight: 600; cursor: pointer; border: 1px solid transparent; transition: all 0.2s ease; background: #f3f4f6; color: #374151; white-space: nowrap; } .db-pill svg { width: 16px !important; height: 16px !important; min-width: 16px !important; max-width: 16px !important; max-height: 16px !important; flex-shrink: 0 !important; display: block; } .db-pill:hover { filter: brightness(0.96); } .db-pill.connected { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; } .db-pill.error { background: #fef2f2; color: #991b1b; border-color: #fecaca; } .db-dot { width: 8px; height: 8px; border-radius: 50%; background: #9ca3af; } .db-pill.connected .db-dot { background: #10b981; box-shadow: 0 0 6px rgba(16, 185, 129, 0.6); } .db-pill.error .db-dot { background: #ef4444; box-shadow: 0 0 6px rgba(239, 68, 68, 0.6); } /* ======================================================== AUTO-UPDATER BANNER ======================================================== */ .updater-banner { position: fixed; bottom: 24px; right: 24px; z-index: 200; background: #1e293b; border-radius: 14px; padding: 14px 18px; max-width: 420px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); animation: slideInUp 0.3s ease; } @keyframes slideInUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } } .updater-banner-content { display: flex; align-items: flex-start; gap: 12px; } .updater-icon { font-size: 22px; flex-shrink: 0; margin-top: 1px; } .updater-text { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; } .updater-text strong { font-size: 13.5px; color: #f1f5f9; font-weight: 700; } .updater-notes { font-size: 12px; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .updater-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; } .updater-btn-install { padding: 7px 14px; background: #4f46e5; color: #ffffff; border: none; border-radius: 8px; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background 0.15s; } .updater-btn-install:hover { background: #4338ca; } .updater-btn-dismiss { padding: 5px 14px; background: transparent; color: #64748b; border: none; font-size: 12px; cursor: pointer; text-align: center; transition: color 0.15s; } .updater-btn-dismiss:hover { color: #94a3b8; } .updater-progress-wrap { display: flex; align-items: center; gap: 8px; min-width: 140px; } .updater-progress-bar { flex: 1; height: 6px; background: #334155; border-radius: 9999px; overflow: hidden; } .updater-progress-fill { height: 100%; background: linear-gradient(90deg, #6366f1, #4f46e5); border-radius: 9999px; transition: width 0.2s ease; } .updater-progress-label { font-size: 12px; color: #94a3b8; min-width: 30px; text-align: right; } .updater-error { margin-top: 8px; font-size: 11.5px; color: #f87171; padding: 6px 8px; background: rgba(239, 68, 68, 0.1); border-radius: 6px; } /* ========================================================================== Android TV Fullscreen Centered Update Modal ========================================================================== */ .has-tv-updater-overlay { position: fixed; inset: 0; width: 100vw; height: 100vh; background: rgba(3, 7, 18, 0.92); backdrop-filter: blur(20px); display: flex; align-items: center; justify-content: center; z-index: 99999; animation: tvModalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards; user-select: none; } @keyframes tvModalFadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } } .has-tv-updater-card { width: 620px; max-width: 90vw; background: radial-gradient(circle at top, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%); border: 2px solid rgba(99, 102, 241, 0.5); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 50px rgba(99, 102, 241, 0.35); border-radius: 28px; padding: 44px 48px; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; } .has-tv-updater-icon-ring { width: 90px; height: 90px; border-radius: 50%; background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(147, 51, 234, 0.3) 100%); border: 2px solid rgba(165, 180, 252, 0.4); display: flex; align-items: center; justify-content: center; font-size: 42px; margin-bottom: 22px; box-shadow: 0 0 30px rgba(99, 102, 241, 0.5); animation: tvIconPulse 2.5s infinite alternate ease-in-out; } @keyframes tvIconPulse { from { transform: scale(1); box-shadow: 0 0 25px rgba(99, 102, 241, 0.4); } to { transform: scale(1.06); box-shadow: 0 0 45px rgba(99, 102, 241, 0.8); } } .has-tv-updater-title { font-size: 32px; font-weight: 800; color: #ffffff; margin: 0 0 8px 0; letter-spacing: -0.5px; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); } .has-tv-updater-version-tag { display: inline-flex; align-items: center; gap: 8px; background: rgba(99, 102, 241, 0.2); border: 1px solid rgba(165, 180, 252, 0.35); color: #c7d2fe; font-size: 15px; font-weight: 700; padding: 6px 16px; border-radius: 9999px; margin-bottom: 16px; } .has-tv-updater-desc { font-size: 15px; color: #94a3b8; line-height: 1.6; margin: 0 0 28px 0; max-height: 120px; overflow-y: auto; padding: 0 10px; } /* Exactly Two Buttons Container for TV Remote Control */ .has-tv-updater-buttons { display: flex; align-items: center; justify-content: center; gap: 20px; width: 100%; } .has-tv-updater-btn { flex: 1; height: 64px; border-radius: 18px; font-size: 18px; font-weight: 800; letter-spacing: 0.3px; cursor: pointer; outline: none; display: flex; align-items: center; justify-content: center; gap: 10px; transition: all 0.2s cubic-bezier(0.2, 0.9, 0.3, 1.2); } /* Button 1: Обновить */ .has-tv-updater-btn.btn-update { background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); border: 2px solid transparent; color: #ffffff; box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4); } /* Button 2: Пропустить */ .has-tv-updater-btn.btn-skip { background: rgba(30, 41, 59, 0.85); border: 2px solid rgba(255, 255, 255, 0.15); color: #cbd5e1; } /* Button 3: Выход из приложения (Exit) */ .has-tv-updater-btn.btn-exit { background: rgba(239, 68, 68, 0.15); border: 2px solid rgba(239, 68, 68, 0.35); color: #fca5a5; } /* D-Pad Remote Control Focused Glow */ .has-tv-updater-btn.focused { transform: scale(1.08); border-color: #ffffff !important; box-shadow: 0 0 0 4px #ffffff, 0 0 40px rgba(99, 102, 241, 0.9) !important; color: #ffffff; } .has-tv-updater-btn.btn-skip.focused { background: rgba(51, 65, 85, 1); box-shadow: 0 0 0 4px #ffffff, 0 0 30px rgba(255, 255, 255, 0.4) !important; } .has-tv-updater-btn.btn-exit.focused { background: rgba(220, 38, 38, 0.9); box-shadow: 0 0 0 4px #ffffff, 0 0 35px rgba(239, 68, 68, 0.8) !important; color: #ffffff; } /* TV Progress View */ .has-tv-updater-progress-container { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 10px; } .has-tv-updater-progress-track { width: 100%; height: 14px; background: rgba(255, 255, 255, 0.1); border-radius: 9999px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.15); } .has-tv-updater-progress-bar { height: 100%; background: linear-gradient(90deg, #38bdf8 0%, #6366f1 50%, #a855f7 100%); border-radius: 9999px; transition: width 0.25s ease; } .has-tv-updater-progress-text { font-size: 16px; font-weight: 700; color: #ffffff; } .has-tv-updater-remote-hint { margin-top: 24px; font-size: 13px; color: #64748b; font-weight: 600; } /* Center Content Area */ .auth-main-container { flex: 1; display: flex; align-items: center; justify-content: center; padding: 60px 20px 40px 20px; } .auth-card { width: 100%; max-width: 440px; display: flex; flex-direction: column; align-items: center; text-align: center; } /* Brand header */ .brand-header { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 24px; } .brand-logo-img { width: 44px; height: 44px; border-radius: 12px; object-fit: contain; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); } .brand-title { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; color: #111827; } .auth-heading { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; color: #111827; margin-bottom: 8px; } .auth-subheading { font-size: 14px; color: #6b7280; margin-bottom: 30px; } /* Forms */ .auth-form { width: 100%; display: flex; flex-direction: column; gap: 18px; text-align: left; } .form-group { display: flex; flex-direction: column; gap: 6px; } .form-label { font-size: 13px; font-weight: 600; color: var(--text-label); } .input-container { position: relative; display: flex; align-items: center; width: 100%; } .input-icon-left { position: absolute; left: 16px; display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; color: #9ca3af; pointer-events: none; } .input-icon-left svg { width: 18px !important; height: 18px !important; max-width: 18px !important; max-height: 18px !important; flex-shrink: 0 !important; } .input-icon-right { position: absolute; right: 16px; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; background: none; border: none; color: #9ca3af; cursor: pointer; padding: 0; border-radius: 4px; transition: color 0.15s ease; } .input-icon-right svg { width: 18px !important; height: 18px !important; max-width: 18px !important; max-height: 18px !important; flex-shrink: 0 !important; } .input-icon-right:hover { color: #4b5563; } .form-input { width: 100%; height: 48px; border: 1.5px solid var(--border-color); border-radius: 9999px; padding: 0 18px 0 44px; font-family: inherit; font-size: 14px; color: var(--text-main); background-color: #ffffff; outline: none; transition: border-color 0.15s ease, box-shadow 0.15s ease; } .form-input.has-right-icon { padding-right: 46px; } .form-input::placeholder { color: #9ca3af; } .form-input:focus { border-color: var(--border-focus); box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1); } /* Remember me row */ .form-options-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin-top: 4px; font-size: 13px; } .remember-label { display: flex; align-items: center; gap: 8px; color: #374151; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; flex-shrink: 0; user-select: none; } .custom-checkbox { appearance: none; -webkit-appearance: none; width: 17px; height: 17px; border: 1.5px solid #d1d5db; border-radius: 4px; cursor: pointer; display: grid; place-content: center; transition: all 0.15s ease; background: #ffffff; } .custom-checkbox:checked { background-color: var(--primary); border-color: var(--primary); } .custom-checkbox:checked::before { content: ""; width: 9px; height: 5px; border-left: 2px solid white; border-bottom: 2px solid white; transform: rotate(-45deg) translate(1px, -1px); } .forgot-link { color: var(--primary); font-weight: 600; text-decoration: none; cursor: pointer; transition: opacity 0.15s ease; white-space: nowrap; flex-shrink: 0; } .forgot-link:hover { text-decoration: underline; } /* Primary Button */ .btn-primary { width: 100%; height: 48px; background-color: var(--primary); color: #ffffff; border: none; border-radius: 9999px; font-family: inherit; font-size: 15px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease; box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25); margin-top: 6px; overflow: hidden; } .btn-primary svg { width: 18px !important; height: 18px !important; min-width: 18px !important; max-width: 18px !important; max-height: 18px !important; flex-shrink: 0 !important; display: block; } .btn-primary:hover:not(:disabled) { background-color: var(--primary-hover); box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35); } .btn-primary:active:not(:disabled) { transform: scale(0.99); } .btn-primary:disabled { opacity: 0.65; cursor: not-allowed; } /* Switch between sign-in / sign-up */ .signup-hint { font-size: 13.5px; color: #4b5563; margin-top: 4px; } .signup-link { color: var(--primary); font-weight: 600; cursor: pointer; text-decoration: none; } .signup-link:hover { text-decoration: underline; } .back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-size: 13.5px; font-weight: 600; cursor: pointer; margin-top: 16px; text-decoration: none; transition: opacity 0.15s ease; } .back-link:hover { text-decoration: underline; } .code-input { letter-spacing: 0.3em; font-size: 18px; font-weight: 700; text-align: center; } /* 6-Digit OTP Container matching mockup */ .otp-container { display: flex; justify-content: center; align-items: center; gap: 10px; width: 100%; margin: 14px 0 22px 0; } .otp-digit-input { width: 50px; height: 60px; border: 1.5px solid #d1d5db; border-radius: 18px; text-align: center; font-size: 26px; font-weight: 700; color: #334155; background-color: #ffffff; outline: none; transition: all 0.15s ease; font-family: inherit; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02); } .otp-digit-input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12); transform: translateY(-1px); } .otp-digit-input:hover:not(:focus) { border-color: #9ca3af; } .resend-countdown-text { font-size: 13.5px; color: #475569; text-align: center; margin-top: 14px; } .resend-countdown-link { color: var(--primary); font-weight: 600; cursor: pointer; text-decoration: none; margin-left: 4px; } .resend-countdown-link:hover { text-decoration: underline; } .resend-countdown-timer { color: var(--primary); font-weight: 700; margin-left: 4px; } /* Alert Notification */ .alert-box { width: 100%; padding: 12px 16px; border-radius: 12px; font-size: 13px; display: flex; align-items: flex-start; gap: 10px; margin-bottom: 6px; text-align: left; } .alert-error { background-color: #fef2f2; border: 1px solid #fee2e2; color: #991b1b; } .alert-success { background-color: #ecfdf5; border: 1px solid #d1fae5; color: #065f46; } /* Footer */ .app-footer { display: flex; align-items: center; justify-content: space-between; padding: 20px 32px; border-top: 1px solid #f3f4f6; font-size: 12.5px; color: #6b7280; } .footer-links { display: flex; gap: 20px; } .footer-links a, .footer-links span { color: #4f46e5; text-decoration: none; cursor: pointer; } .footer-links a:hover, .footer-links span:hover { text-decoration: underline; } /* Modal styles for DB details / diagnostics */ .modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 20px; } .modal-content { background: #ffffff; border-radius: 20px; max-width: 500px; width: 100%; padding: 28px; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); text-align: left; } .modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; } .modal-title { font-size: 18px; font-weight: 700; color: #111827; } .modal-close { background: none; border: none; font-size: 20px; color: #9ca3af; cursor: pointer; padding: 4px; } .modal-body { font-size: 13.5px; color: #374151; line-height: 1.6; } .code-block { background: #1e293b; color: #f8fafc; padding: 12px; border-radius: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 12px; margin: 12px 0; overflow-x: auto; } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } .animate-spin { animation: spin 1s linear infinite; } /* Responsive adjustment for small screens */ @media (max-width: 640px) { .auth-main-container { padding: 50px 16px 30px 16px; } .app-footer { flex-direction: column; gap: 10px; text-align: center; padding: 16px; } .info-grid { grid-template-columns: 1fr; } .auth-heading { font-size: 26px; } }