/* 登录页 · 参考图:居中双栏卡 + 多列门店(与 pos-unified 配色 --pos-* 一致) */ body.pos-page--login { background: #f4f6fb !important; position: relative; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; } body.pos-page--login::before { content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(ellipse 55% 45% at 8% 25%, rgba(167, 139, 250, 0.22), transparent 58%), radial-gradient(ellipse 50% 42% at 92% 78%, rgba(255, 183, 140, 0.2), transparent 55%), radial-gradient(ellipse 60% 50% at 50% -10%, rgba(92, 124, 250, 0.12), transparent 55%); } .pos-page--login #app { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; } .pos-login-page { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: max(16px, env(safe-area-inset-top, 0px)) 20px max(16px, env(safe-area-inset-bottom, 0px)); padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); box-sizing: border-box; } .pos-login-center { width: 100%; max-width: 1320px; margin: 0 auto; } /* 双栏主卡片 */ .pos-login-split { display: flex; flex-direction: column; width: 100%; border-radius: 28px; overflow: hidden; background: #fff; box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 25px 50px -12px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(92, 124, 250, 0.06); box-sizing: border-box; } @media (min-width: 900px) { .pos-login-split { flex-direction: row; align-items: stretch; min-height: min(600px, calc(100dvh - 48px)); min-height: min(600px, calc(100vh - 48px)); max-height: min(820px, calc(100dvh - 32px)); max-height: min(820px, calc(100vh - 32px)); border-radius: 32px; box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 32px 64px -24px rgba(30, 58, 95, 0.22), 0 0 0 1px rgba(92, 124, 250, 0.07); } } /* 左:品牌区加重(与右侧信息量平衡) */ .pos-login-split__brand { position: relative; flex: 1 1 auto; display: flex; flex-direction: column; justify-content: space-between; padding: 36px 28px 30px; min-height: 280px; color: #fff; background: linear-gradient(165deg, #9aa8ff 0%, var(--pos-blue) 32%, #4f5fd4 68%, #3d4aa8 100%); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); } @media (min-width: 900px) { .pos-login-split__brand { flex: 0 0 38%; min-width: 320px; max-width: 460px; padding: 48px 36px 36px; min-height: 0; border-right: 1px solid rgba(255, 255, 255, 0.14); } } .pos-login-split__brand-bg { position: absolute; inset: 0; pointer-events: none; opacity: 0.5; background: radial-gradient(ellipse 70% 55% at 88% 8%, rgba(255, 255, 255, 0.38), transparent 50%), radial-gradient(ellipse 55% 50% at 5% 92%, rgba(255, 107, 53, 0.28), transparent 52%), radial-gradient(circle at 50% 50%, rgba(30, 58, 95, 0.15), transparent 65%); } .pos-login-split__brand-inner { position: relative; z-index: 1; } .pos-login-split__logo { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 24px; border-radius: 18px; background: rgba(255, 255, 255, 0.22); border: 1px solid rgba(255, 255, 255, 0.4); box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); } .pos-login-split__logo .pos-inline-svg { width: 32px; height: 32px; color: #fff; } /* PongGame 与「收银台」同一字号、同字重,仅字距区分 */ .pos-login-split__title { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 0 0 16px; font-size: clamp(24px, 3.2vw, 32px); font-weight: 800; line-height: 1.2; letter-spacing: 0.02em; text-shadow: 0 3px 24px rgba(15, 23, 42, 0.22); } .pos-login-split__title-main, .pos-login-split__title-sub { font-size: inherit; font-weight: inherit; line-height: inherit; } .pos-login-split__title-sub { letter-spacing: 0.28em; padding-left: 0.28em; opacity: 0.98; } .pos-login-split__welcome { margin: 0; font-size: 15px; line-height: 1.6; font-weight: 500; color: rgba(255, 255, 255, 0.9); max-width: 22em; } .pos-login-split__pill { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; letter-spacing: 0.03em; color: rgba(255, 255, 255, 0.97); background: rgba(255, 255, 255, 0.22); border: 1px solid rgba(255, 255, 255, 0.32); box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12); } .pos-login-split__pill .pos-inline-svg { width: 20px; height: 20px; flex-shrink: 0; opacity: 0.95; } /* 右:表单区加宽(约 64% 剩余空间) */ .pos-login-split__panel { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; background: linear-gradient(180deg, #fdfdfe 0%, #f4f7fb 100%); } .pos-login-split__panel-inner { flex: 1; display: flex; flex-direction: column; padding: 26px 22px 22px; min-height: 0; } @media (min-width: 900px) { .pos-login-split__panel-inner { padding: 40px 48px 36px; overflow: hidden; } } .pos-login-welcome-head { margin-bottom: 18px; } .pos-login-welcome-head__title { margin: 0 0 6px; font-size: clamp(19px, 2vw, 24px); font-weight: 800; color: #1e293b; letter-spacing: 0.02em; } .pos-login-welcome-head__sub { margin: 0; font-size: 13px; color: #64748b; font-weight: 500; line-height: 1.5; } .pos-login-split__panel-inner #loginForm { display: flex; flex-direction: column; flex: 1; min-height: 0; } .pos-page--login .pos-login-fieldset { padding: 0; margin: 0 0 12px; border: none; background: transparent; } .pos-page--login .pos-login-fieldset .pos-form-group { margin-bottom: 14px; } @media (min-width: 900px) { .pos-login-welcome-head { margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid rgba(226, 232, 240, 0.85); } .pos-login-welcome-head__title { font-size: clamp(22px, 1.8vw, 28px); margin-bottom: 8px; } .pos-login-welcome-head__sub { font-size: 14px; } .pos-page--login .pos-login-fieldset { margin-bottom: 18px; } .pos-page--login .pos-login-fieldset .pos-form-group { margin-bottom: 20px; } .pos-page--login .pos-form-group label { margin-bottom: 8px; font-size: 13px; color: #64748b; } } .pos-page--login .pos-login-fieldset .pos-form-group:last-child { margin-bottom: 0; } .pos-page--login .pos-form-group label { margin-bottom: 6px; font-size: 12px; font-weight: 600; color: #94a3b8; letter-spacing: 0.04em; } /* 带图标输入行 */ .pos-login-input-row { position: relative; display: flex; align-items: center; gap: 0; } .pos-login-input-row__icon { position: absolute; left: 14px; z-index: 1; display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; color: rgba(92, 124, 250, 0.75); pointer-events: none; } .pos-login-input-row__icon .pos-inline-svg { width: 20px; height: 20px; } .pos-page--login .pos-login-input-row .pos-input { width: 100%; padding-left: 44px; border-radius: 10px; min-height: 44px; border: 1px solid #e8ecf0; font-size: 14px; background: #fff; } .pos-page--login .pos-login-input-row .pos-input:focus { border-color: var(--pos-blue); background: #fff; box-shadow: 0 0 0 3px rgba(92, 124, 250, 0.18); } .pos-page--login .pos-login-input-row:focus-within .pos-login-input-row__icon { color: var(--pos-blue); } @media (min-width: 900px) { .pos-page--login .pos-login-input-row .pos-input { min-height: 48px; padding-left: 48px; border-radius: 12px; border-color: #e2e8f0; font-size: 15px; transition: border-color 0.2s ease, box-shadow 0.2s ease; } .pos-login-input-row__icon { left: 16px; width: 24px; height: 24px; } .pos-login-input-row__icon .pos-inline-svg { width: 22px; height: 22px; } .pos-page--login .pos-login-store-shell { padding: 20px 22px 18px; border-radius: 20px; } } .pos-page--login .pos-form-group--store { flex: 1 1 auto; display: flex; flex-direction: column; margin-bottom: 10px; min-height: 0; } .pos-page--login .pos-login-store-shell { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; padding: 16px 18px 14px; border-radius: 18px; background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 55%); border: 1px solid #dce3eb; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 6px 24px rgba(15, 23, 42, 0.05); } .pos-page--login .pos-login-store-shell .pos-store-label { flex-shrink: 0; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid rgba(226, 232, 240, 0.9); } .pos-page--login .pos-store-label { font-weight: 800; font-size: 15px; color: var(--pos-text); letter-spacing: 0.03em; } .pos-page--login .pos-store-label__hint { font-size: 13px; font-weight: 500; color: var(--pos-muted); } /* 门店矩阵:大屏 4 列;滚动条隐藏 */ .pos-page--login .pos-store-grid--matrix { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; overflow-x: hidden; padding: 4px 2px 6px; margin: 0; scrollbar-width: none; -ms-overflow-style: none; } .pos-page--login .pos-store-grid--matrix::-webkit-scrollbar { display: none; width: 0; height: 0; } @media (min-width: 640px) { .pos-page--login .pos-store-grid--matrix { grid-template-columns: repeat(2, 1fr); gap: 12px; } } @media (min-width: 900px) { .pos-page--login .pos-store-grid--matrix { grid-template-columns: repeat(4, 1fr); gap: 10px; } } .pos-page--login .pos-store-grid--loading, .pos-page--login .pos-store-grid--empty { display: flex; align-items: center; justify-content: center; min-height: 120px; padding: 16px; text-align: center; font-size: 14px; color: var(--pos-muted); background: #fff; border: 2px dashed #cbd5e1; border-radius: 12px; } /* 门店卡片:大卡、左侧选中条、层次阴影 */ .pos-page--login .pos-store-tile--cell { position: relative; display: flex; flex-direction: column; align-items: stretch; justify-content: center; min-height: 56px; padding: 14px 16px 14px 18px; text-align: left; font-family: inherit; border: 2px solid #e8edf2; border-radius: 14px; background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%); box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04); cursor: pointer; touch-action: manipulation; transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.12s ease; box-sizing: border-box; overflow: hidden; } .pos-page--login .pos-store-tile--cell::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 0; border-radius: 0 6px 6px 0; background: linear-gradient(180deg, var(--pos-blue) 0%, var(--pos-orange) 100%); opacity: 0; transition: width 0.2s ease, opacity 0.2s ease; pointer-events: none; } .pos-page--login .pos-store-tile--cell.pos-store-tile--active::before { width: 4px; opacity: 1; } .pos-page--login .pos-store-tile--cell .pos-store-tile__name { display: block; width: 100%; font-size: 14px; font-weight: 700; line-height: 1.35; color: var(--pos-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pos-page--login .pos-store-tile--cell.pos-store-tile--active { border-color: rgba(92, 124, 250, 0.55); background: linear-gradient(180deg, #eef2ff 0%, #ffffff 100%); box-shadow: 0 4px 18px rgba(79, 108, 248, 0.14), 0 0 0 1px rgba(92, 124, 250, 0.08); } .pos-page--login .pos-store-tile--cell.pos-store-tile--active .pos-store-tile__name { color: var(--pos-navy); } @media (hover: hover) and (pointer: fine) { .pos-page--login .pos-store-tile--cell:hover:not(.pos-store-tile--active) { border-color: #cbd5e1; background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%); box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06); } .pos-page--login .pos-store-tile--cell.pos-store-tile--active:hover { box-shadow: 0 6px 22px rgba(79, 108, 248, 0.18), 0 0 0 1px rgba(92, 124, 250, 0.1); } } .pos-page--login .pos-store-tile--cell:active { transform: scale(0.99); } .pos-page--login .pos-store-tile--cell:focus-visible { outline: none; border-color: var(--pos-blue); box-shadow: 0 0 0 3px rgba(92, 124, 250, 0.22); } /* 登录校验 / 接口错误(WebView 常屏蔽 alert,须页内可见) */ .pos-page--login .pos-login-form-error { flex-shrink: 0; margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; font-size: 13px; line-height: 1.45; color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; text-align: left; } .pos-page--login .pos-btn--primary { flex-shrink: 0; margin-top: 6px; min-height: 46px; border-radius: 10px; font-size: 15px; font-weight: 700; letter-spacing: 0.1em; background: linear-gradient(180deg, var(--pos-blue) 0%, var(--pos-blue-dark) 100%); box-shadow: 0 6px 20px rgba(79, 108, 248, 0.26); transition: filter 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease; } @media (min-width: 900px) { .pos-page--login .pos-btn--primary { margin-top: 14px; min-height: 50px; border-radius: 999px; font-size: 16px; letter-spacing: 0.12em; box-shadow: 0 8px 28px rgba(79, 108, 248, 0.3); } .pos-page--login .pos-btn--primary:active { transform: scale(0.99); } } @media (hover: hover) and (pointer: fine) { .pos-page--login .pos-btn--primary:hover { filter: brightness(1.04); box-shadow: 0 8px 24px rgba(79, 108, 248, 0.32); } } .pos-login-footnote { flex-shrink: 0; margin: 10px 0 0; text-align: center; font-size: 11px; color: #cbd5e1; line-height: 1.4; } @media (min-width: 900px) { .pos-login-footnote { margin-top: 16px; font-size: 12px; color: #94a3b8; } .pos-login-page { padding-top: max(24px, env(safe-area-inset-top, 0px)); padding-bottom: max(24px, env(safe-area-inset-bottom, 0px)); } .pos-login-center { max-width: 1180px; } .pos-login-split__logo { width: 72px; height: 72px; margin-bottom: 28px; border-radius: 20px; } .pos-login-split__logo .pos-inline-svg { width: 36px; height: 36px; } .pos-login-split__welcome { font-size: 16px; max-width: 24em; } } @media (prefers-reduced-motion: reduce) { .pos-page--login .pos-store-tile--cell, .pos-page--login .pos-btn--primary { transition: none; } .pos-page--login .pos-store-tile--cell::before { transition: none; } .pos-page--login .pos-store-tile--cell:active, .pos-page--login .pos-btn--primary:active { transform: none; } }