refactor: 注册页面参考 AkileCloud 极简暗色风格
All checks were successful
continuous-integration/drone/push Build is passing

- 去掉卡片容器/阴影/边框,表单直接浮在背景上
- 深色背景 #0d1117 + 四角蓝色光晕
- 隐藏左侧装饰背景板
- 输入框无边框深灰底 #1c2028,聚焦蓝色边框
- 纯蓝按钮 #165DFF(非渐变)
- 邮箱/手机切换改为胶囊式 Tab
- 验证码按钮深灰底+蓝色文字
- 标题居中白色大字
- 下拉菜单暗色适配
- 移动端响应式
This commit is contained in:
yiqiu
2026-03-19 18:10:21 +08:00
parent 77a3ecddc5
commit 89a60864dc

View File

@@ -1,6 +1,6 @@
/* ============================================ /* ============================================
注册页面 — BlackFruit 暗色科技风 注册页面 — 参考 AkileCloud 极简暗色风格
配色:深蓝 #0a0c16 / 蓝 #38BDF8 / 紫 #6366F1 无显性卡片 / 边缘光晕 / 无边框输入框 / 纯色按钮
============================================ */ ============================================ */
* { * {
@@ -15,34 +15,45 @@
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
background: #0a0c16; background: #0d1117;
/* 四角蓝色光晕 */
background-image: background-image:
radial-gradient(ellipse 80% 60% at 50% 0%, rgba(56, 189, 248, 0.08) 0%, transparent 60%), radial-gradient(ellipse 50% 50% at 0% 0%, rgba(22, 93, 255, 0.12) 0%, transparent 70%),
radial-gradient(ellipse 60% 50% at 80% 100%, rgba(99, 102, 241, 0.06) 0%, transparent 50%); radial-gradient(ellipse 50% 50% at 100% 0%, rgba(22, 93, 255, 0.08) 0%, transparent 70%),
radial-gradient(ellipse 50% 50% at 100% 100%, rgba(99, 102, 241, 0.08) 0%, transparent 70%),
radial-gradient(ellipse 50% 50% at 0% 100%, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
} }
/* ---- 登录容器 ---- */ /* ---- 容器 — 无卡片,居中浮动 ---- */
.login-container { .login-container {
width: 960px; width: 100%;
min-height: 600px; max-width: 420px;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
position: relative; position: relative;
padding: 40px 20px;
} }
/* 隐藏左侧装饰背景板 */
.container-back {
display: none;
}
/* 跳转按钮 */
.login-jump-btn { .login-jump-btn {
position: absolute; position: fixed;
top: 20px; top: 24px;
right: 20px; right: 24px;
z-index: 20; z-index: 20;
} }
.login-jump-btn .btn { .login-jump-btn .btn {
background: rgba(56, 189, 248, 0.15); background: rgba(22, 93, 255, 0.1);
border: 1px solid rgba(56, 189, 248, 0.3); border: 1px solid rgba(22, 93, 255, 0.25);
color: #38BDF8; color: #165DFF;
border-radius: 8px; border-radius: 6px;
font-size: 13px;
} }
.login-jump-btn .btn a { .login-jump-btn .btn a {
@@ -50,118 +61,20 @@
text-decoration: none; text-decoration: none;
} }
/* ---- 左侧装饰背景板 ---- */ /* ---- 表单区域 — 无卡片 ---- */
.container-back {
width: 960px;
height: 560px;
background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
border-radius: 20px;
overflow: hidden;
position: relative;
border: 1px solid rgba(255, 255, 255, 0.06);
}
.back-text {
font-size: 16px;
z-index: 10;
color: #FFFFFF;
margin-top: 140px;
margin-left: 65px;
font-weight: 400;
position: relative;
}
.text-welcome {
font-size: 48px;
font-family: 'Inter', 'Bahnschrift', sans-serif;
line-height: 1;
font-weight: 700;
background: linear-gradient(135deg, #38BDF8 0%, #6366F1 50%, #EC4899 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
letter-spacing: 4px;
}
.text-title {
margin-top: 12px;
font-size: 18px;
color: rgba(226, 232, 240, 0.85);
}
.text-level {
font-size: 13px;
margin-top: 60px;
color: rgba(148, 163, 184, 0.5);
}
/* 装饰光线 */
.back-line1,
.back-line2,
.back-line3 {
width: 60px;
background: linear-gradient(180deg, rgba(56, 189, 248, 0.12) 0%, transparent 100%);
z-index: 2;
position: absolute;
}
.back-line1 {
height: 500px;
transform: rotate(45deg);
top: -120px;
left: 300px;
}
.back-line2 {
height: 600px;
transform: rotate(110deg);
top: 0;
left: 400px;
background: linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, transparent 100%);
}
.back-line3 {
height: 500px;
transform: rotate(45deg);
top: 200px;
left: 100px;
background: linear-gradient(180deg, rgba(236, 72, 153, 0.08) 0%, transparent 100%);
}
/* ---- 右侧注册表单卡片(毛玻璃) ---- */
.container-before { .container-before {
width: 440px; width: 100%;
max-height: 580px;
overflow-y: auto;
background: rgba(15, 23, 42, 0.85);
backdrop-filter: blur(24px);
-webkit-backdrop-filter: blur(24px);
border: 1px solid rgba(255, 255, 255, 0.08);
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
position: absolute;
right: 60px;
border-radius: 16px;
z-index: 10;
}
/* 自定义滚动条 */
.container-before::-webkit-scrollbar {
width: 4px;
}
.container-before::-webkit-scrollbar-track {
background: transparent; background: transparent;
} box-shadow: none;
border: none;
.container-before::-webkit-scrollbar-thumb { position: static;
background: rgba(56, 189, 248, 0.2); overflow: visible;
border-radius: 4px;
} }
.login { .login {
padding: 48px 40px 36px; padding: 0;
font-size: 14px; font-size: 14px;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
line-height: 1.5; line-height: 1.5;
} }
@@ -169,206 +82,253 @@
.login-text { .login-text {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center;
text-align: center;
margin-bottom: 32px;
} }
.login-text-title { .login-text-title {
font-size: 24px; font-size: 28px;
color: #F1F5F9; color: #FFFFFF;
line-height: 1; line-height: 1.2;
font-weight: 600; font-weight: 700;
letter-spacing: 1px;
} }
.login-text-regist { .login-text-regist {
margin-top: 8px; margin-top: 10px;
color: rgba(148, 163, 184, 0.7); color: rgba(139, 148, 158, 0.8);
font-size: 14px; font-size: 14px;
} }
.login-text-regist a { .login-text-regist a {
color: #38BDF8; color: #165DFF;
cursor: pointer; cursor: pointer;
text-decoration: none; text-decoration: none;
transition: color 0.2s; transition: color 0.2s;
} }
.login-text-regist a:hover { .login-text-regist a:hover {
color: #7DD3FC; color: #4080FF;
} }
/* ---- 切换标签(邮箱/手机) ---- */ /* ---- 切换标签(邮箱/手机) ---- */
.login-form { .login-form {
margin-top: 28px; margin-top: 0;
} }
.login-top { .login-top {
display: flex; display: flex;
gap: 24px; gap: 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.06); margin-bottom: 20px;
padding-bottom: 0; background: rgba(255, 255, 255, 0.04);
border-radius: 8px;
padding: 4px;
} }
.login-email, .login-email,
.login-phone { .login-phone {
padding-bottom: 10px; flex: 1;
color: rgba(148, 163, 184, 0.6); padding: 10px 0;
color: rgba(139, 148, 158, 0.7);
cursor: pointer; cursor: pointer;
font-size: 14px; font-size: 14px;
transition: color 0.2s; text-align: center;
border-bottom: 2px solid transparent; transition: all 0.25s ease;
margin-bottom: -1px; border: none;
border-radius: 6px;
border-bottom: none;
margin-bottom: 0;
} }
.login-email:hover, .login-email:hover,
.login-phone:hover { .login-phone:hover {
color: rgba(226, 232, 240, 0.8); color: rgba(255, 255, 255, 0.8);
} }
.active { .active {
color: #38BDF8 !important; color: #FFFFFF !important;
border-bottom: 2px solid #38BDF8 !important; background: rgba(22, 93, 255, 0.15) !important;
border-bottom: none !important;
} }
/* ---- 表单 ---- */ /* ---- 表单输入 ---- */
.form-main { .form-main {
margin-top: 20px; margin-top: 0;
} }
.form-item { .form-item {
margin-top: 16px; margin-top: 14px;
} }
/* Element UI 输入框覆盖 → 暗色风格 */ .form-item:first-child {
margin-top: 0;
}
/* Element UI 输入框 → 无边框深灰底 */
.form-main .el-input__inner, .form-main .el-input__inner,
.form-main .el-textarea__inner, .form-main .el-textarea__inner,
.form-main .el-select .el-input__inner, .form-main .el-select .el-input__inner,
.custom-form .el-input__inner, .custom-form .el-input__inner,
.custom-form .el-textarea__inner { .custom-form .el-textarea__inner {
background: rgba(30, 41, 59, 0.6) !important; background: #1c2028 !important;
border: 1px solid rgba(255, 255, 255, 0.08) !important; border: 1px solid transparent !important;
color: #E2E8F0 !important; color: #E6E8EB !important;
border-radius: 10px !important; border-radius: 8px !important;
height: 44px !important; height: 46px !important;
line-height: 44px !important; line-height: 46px !important;
font-size: 14px !important;
transition: all 0.2s ease; transition: all 0.2s ease;
} }
.form-main .el-input__inner:hover,
.custom-form .el-input__inner:hover {
border-color: rgba(22, 93, 255, 0.2) !important;
}
.form-main .el-input__inner:focus, .form-main .el-input__inner:focus,
.form-main .el-textarea__inner:focus, .form-main .el-textarea__inner:focus,
.custom-form .el-input__inner:focus, .custom-form .el-input__inner:focus,
.custom-form .el-textarea__inner:focus { .custom-form .el-textarea__inner:focus {
border-color: rgba(56, 189, 248, 0.4) !important; border-color: #165DFF !important;
box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.08) !important; box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.12) !important;
} }
.form-main .el-input__inner::placeholder, .form-main .el-input__inner::placeholder,
.custom-form .el-input__inner::placeholder { .custom-form .el-input__inner::placeholder {
color: rgba(148, 163, 184, 0.4) !important; color: rgba(139, 148, 158, 0.5) !important;
} }
/* 自定义表单 label */ /* 输入框前置图标颜色 */
.form-main .el-input__prefix {
color: rgba(139, 148, 158, 0.5);
}
/* 自定义表单 */
.custom-form { .custom-form {
margin-top: 8px; margin-top: 6px;
}
.custom-form .el-form-item {
margin-bottom: 14px;
} }
.custom-form .el-form-item__label { .custom-form .el-form-item__label {
color: rgba(226, 232, 240, 0.7) !important; color: rgba(226, 232, 240, 0.6) !important;
line-height: 1; line-height: 1;
padding-bottom: 6px !important; padding-bottom: 6px !important;
font-size: 13px; font-size: 13px;
} }
.custom-form .el-select {
width: 100%;
}
.custom-form .el-checkbox__label { .custom-form .el-checkbox__label {
color: rgba(148, 163, 184, 0.7) !important; color: rgba(139, 148, 158, 0.6) !important;
} }
/* 手机号 select 前置 */ /* 手机号 select 前置 */
.input-with-select .el-input-group__prepend { .input-with-select .el-input-group__prepend {
background: rgba(30, 41, 59, 0.6) !important; background: #1c2028 !important;
border: 1px solid rgba(255, 255, 255, 0.08) !important; border: 1px solid transparent !important;
border-right: none !important; border-right: 1px solid rgba(255,255,255,0.06) !important;
border-radius: 10px 0 0 10px !important; border-radius: 8px 0 0 8px !important;
color: #E2E8F0 !important; color: #E6E8EB !important;
} }
/* 验证码按钮 */ /* 验证码 */
.code-item { .code-item {
display: flex; display: flex;
gap: 10px; gap: 10px;
} }
.code-btn { .code-btn {
background: linear-gradient(135deg, #38BDF8, #6366F1) !important; background: #1c2028 !important;
border: none !important; border: none !important;
color: #FFFFFF !important; color: #165DFF !important;
border-radius: 10px !important; border-radius: 8px !important;
white-space: nowrap; white-space: nowrap;
padding: 0 16px !important; padding: 0 16px !important;
font-size: 13px; font-size: 13px;
font-weight: 500;
transition: background 0.2s;
} }
/* ---- 协议勾选 ---- */ .code-btn:hover {
background: rgba(22, 93, 255, 0.12) !important;
}
/* ---- 协议勾选区 ---- */
.read-item { .read-item {
margin-top: 12px; margin-top: 14px;
} }
.read-text { .read-text {
flex: 1; flex: 1;
font-size: 13px; font-size: 13px;
line-height: 1.6; line-height: 1.6;
padding: 0 8px; padding: 0 6px;
color: rgba(148, 163, 184, 0.6); color: rgba(139, 148, 158, 0.55);
font-weight: 400; font-weight: 400;
} }
.read-item a { .read-item a {
color: #38BDF8; color: #165DFF;
cursor: pointer; cursor: pointer;
text-decoration: none; text-decoration: none;
} }
.read-item a:hover { .read-item a:hover {
color: #7DD3FC; color: #4080FF;
text-decoration: underline;
} }
.read-item .el-checkbox__inner { .read-item .el-checkbox__inner {
background: rgba(30, 41, 59, 0.6) !important; background: #1c2028 !important;
border-color: rgba(255, 255, 255, 0.12) !important; border-color: rgba(255, 255, 255, 0.1) !important;
border-radius: 3px;
} }
.read-item .el-checkbox__input.is-checked .el-checkbox__inner { .read-item .el-checkbox__input.is-checked .el-checkbox__inner {
background: #38BDF8 !important; background: #165DFF !important;
border-color: #38BDF8 !important; border-color: #165DFF !important;
} }
/* 错误提示 */ /* 错误提示 */
.read-item .el-alert--error { .read-item .el-alert--error {
background: rgba(239, 68, 68, 0.1) !important; background: rgba(239, 68, 68, 0.08) !important;
border: 1px solid rgba(239, 68, 68, 0.2); border: 1px solid rgba(239, 68, 68, 0.15);
border-radius: 8px; border-radius: 8px;
color: #FCA5A5 !important; color: #F87171 !important;
} }
.read-item .el-alert--error .el-alert__title { .read-item .el-alert--error .el-alert__title {
color: #FCA5A5 !important; color: #F87171 !important;
font-size: 13px;
} }
/* ---- 注册按钮 ---- */ /* ---- 注册按钮 — 纯蓝色 ---- */
.login-btn { .login-btn {
width: 100%; width: 100%;
height: 46px; height: 46px;
background: linear-gradient(135deg, #38BDF8 0%, #6366F1 100%) !important; background: #165DFF !important;
border: none !important; border: none !important;
border-radius: 10px !important; border-radius: 8px !important;
font-size: 15px !important; font-size: 15px !important;
font-weight: 600; font-weight: 600;
letter-spacing: 2px; color: #FFFFFF !important;
transition: all 0.3s ease; letter-spacing: 1px;
box-shadow: 0 4px 16px rgba(56, 189, 248, 0.3); transition: all 0.2s ease;
margin-top: 6px;
} }
.login-btn:hover { .login-btn:hover {
transform: translateY(-1px); background: #4080FF !important;
box-shadow: 0 6px 24px rgba(56, 189, 248, 0.45); }
.login-btn:active {
background: #0E42D2 !important;
} }
/* 隐藏的密码字段 */ /* 隐藏的密码字段 */
@@ -379,34 +339,33 @@
height: 0; height: 0;
} }
/* ---- 移动端适配 ---- */ /* Element UI 下拉菜单暗色 */
.el-select-dropdown {
background: #1c2028 !important;
border: 1px solid rgba(255,255,255,0.06) !important;
}
.el-select-dropdown__item {
color: #E6E8EB !important;
}
.el-select-dropdown__item.hover,
.el-select-dropdown__item:hover {
background: rgba(22, 93, 255, 0.1) !important;
}
/* ---- 移动端 ---- */
@media screen and (max-width: 750px) { @media screen and (max-width: 750px) {
#regist { #regist {
background: #0a0c16; background-image:
radial-gradient(ellipse 80% 40% at 50% 0%, rgba(22, 93, 255, 0.12) 0%, transparent 70%),
radial-gradient(ellipse 80% 40% at 50% 100%, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
} }
.login-container { .login-container {
height: auto; padding: 60px 24px 40px;
min-height: 100vh; max-width: 100%;
width: 100vw; align-items: flex-start;
padding: 20px 16px;
flex-direction: column;
}
.container-back {
display: none;
}
.container-before {
width: 100%;
max-height: none;
position: static;
border-radius: 16px;
background: rgba(15, 23, 42, 0.9);
}
.login {
padding: 36px 24px 28px;
} }
.login-text-title { .login-text-title {
@@ -417,23 +376,14 @@
font-size: 13px; font-size: 13px;
} }
.login-top { .login-text {
gap: 16px; margin-bottom: 24px;
} }
.login-email, .form-main .el-input__inner,
.login-phone { .custom-form .el-input__inner {
font-size: 14px; height: 44px !important;
width: 50%; line-height: 44px !important;
text-align: center;
}
.login-form {
margin-top: 20px;
}
.form-main {
margin-top: 16px;
} }
.login-btn { .login-btn {
@@ -446,11 +396,12 @@
height: 44px; height: 44px;
} }
.login-jump-btn {
top: 16px;
right: 16px;
}
.read-text { .read-text {
font-size: 12px; font-size: 12px;
} }
.el-checkbox__label {
font-size: 13px;
}
} }