Login.module.css
3.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
/*
* 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%;
}
}