merge(frontend): sync main styles with auth flow

This commit is contained in:
mac
2026-07-16 15:57:47 +08:00
parent eb2621d914
commit 2ac87e2592
22 changed files with 921 additions and 1698 deletions
+14 -8
View File
@@ -9,7 +9,9 @@
<h2>{{ title }}</h2>
<p>{{ subtitle }}</p>
</div>
<el-button type="primary" size="large" style="width: 100%" @click="redirectToSSO('', '/')">{{ buttonText }}</el-button>
<el-button type="primary" size="large" class="login-btn" @click="redirectToSSO('', '/')">
{{ buttonText }}
</el-button>
<div class="login-footer">
<p>统一 LDAP 账号,同账号同密码</p>
</div>
@@ -48,10 +50,14 @@ onMounted(() => {
width: 400px;
background: var(--bg-panel);
border: 1px solid var(--line);
border-radius: 12px;
border-radius: var(--radius-xl);
padding: 40px;
}
.login-btn {
width: 100%;
}
.login-header {
text-align: center;
margin-bottom: 32px;
@@ -70,15 +76,15 @@ onMounted(() => {
.login-header .brand .mark {
width: 36px;
height: 36px;
border-radius: 8px;
background: linear-gradient(135deg, var(--accent), #1C8F69);
border-radius: var(--radius-lg);
background: linear-gradient(135deg, var(--accent), var(--accent-end));
display: flex;
align-items: center;
justify-content: center;
font-family: var(--mono);
font-size: 16px;
font-weight: 600;
color: #08140F;
color: var(--bg-deep);
}
.login-header h2 {
@@ -117,7 +123,7 @@ onMounted(() => {
}
:deep(.el-input__wrapper:hover) {
border-color: #3A4356;
border-color: var(--hover-border);
}
:deep(.el-input__wrapper.is-focus) {
@@ -131,11 +137,11 @@ onMounted(() => {
:deep(.el-button--primary) {
background: var(--accent);
border-color: var(--accent);
color: #06150F;
color: var(--bg-deep);
font-weight: 600;
}
:deep(.el-button--primary:hover) {
background: #55E8B3;
opacity: 0.9;
}
</style>