/* * REQ-USR-004 登录页 scoped 样式。 * 语义色(按钮/文字/边框/背景/错误)一律 var(--color-*); * 主视觉深蓝渐变 / 网格透视为登录页局部装饰(D7),不挪用语义 token、不新增全局 token。 */ .wrap { position: absolute; inset: 0; background: var(--color-bg-base); display: flex; flex-direction: column; } /* 品牌头 */ .head { display: flex; align-items: center; gap: 12px; padding: 18px 36px; background: var(--color-bg-base); } .logo { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; } .brandName { font-size: 24px; font-weight: 700; letter-spacing: 2px; color: var(--color-primary); } .brandSub { color: var(--color-text); font-size: 14px; margin-left: 6px; } /* 主视觉(深蓝装饰,D7 scoped,不使用语义 token) */ .hero { flex: 1; position: relative; overflow: hidden; background: radial-gradient( ellipse at center, #1a4ea0 0%, #0a1d44 60%, #050d20 100% ); } .hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(80, 160, 255, 0.18) 1px, transparent 1px), linear-gradient(90deg, rgba(80, 160, 255, 0.18) 1px, transparent 1px); background-size: 80px 80px; transform: perspective(800px) rotateX(55deg) translateY(20%); transform-origin: center; opacity: 0.55; } .hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient( ellipse 800px 300px at 50% 50%, rgba(140, 200, 255, 0.35), transparent 60% ), radial-gradient(circle 200px at 30% 40%, rgba(255, 255, 255, 0.15), transparent 70%), radial-gradient(circle 160px at 70% 60%, rgba(255, 255, 255, 0.12), transparent 70%); } .heroText { position: absolute; left: 8%; top: 35%; color: #fff; z-index: 2; } .heroEn { font-size: 30px; font-weight: 300; letter-spacing: 1px; color: #cfe1ff; margin-bottom: 6px; } .heroZh { font-size: 54px; font-weight: 700; color: #fff; letter-spacing: 4px; margin-bottom: 4px; } .heroErp { font-size: 90px; font-weight: 800; color: #fff; letter-spacing: 8px; line-height: 0.9; } /* 右侧浮层登录卡 */ .card { position: absolute; right: 8%; top: 50%; transform: translateY(-50%); background: var(--color-form-bg-edit); width: 380px; padding: 36px 32px; border-radius: 2px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3); z-index: 3; } .cardTitle { margin: 0 0 22px; font-size: 18px; color: var(--color-text); font-weight: 500; } .submitBtn { letter-spacing: 8px; } .emptyHint { margin-top: -6px; margin-bottom: 12px; color: var(--color-text-secondary); font-size: 12px; } .retryBox { margin-top: -6px; margin-bottom: 12px; color: var(--color-error); font-size: 12px; display: flex; align-items: center; gap: 8px; } /* 页脚版权 */ .foot { background: var(--color-bg-base); text-align: center; padding: 14px 8px; color: var(--color-text-secondary); font-size: 12px; border-top: 1px solid var(--color-border); } .footIcp { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; } /* 响应式回流:窄视口卡片居中(D4 默认行为) */ @media (max-width: 768px) { .card { position: static; transform: none; margin: 24px auto; width: calc(100% - 48px); max-width: 380px; } .heroText { position: static; padding: 24px 8%; } }