507 lines
9.8 KiB
CSS
507 lines
9.8 KiB
CSS
/* ============================================
|
|
注册页面 — 参考 AkileCloud 极简暗色风格
|
|
无显性卡片 / 边缘光晕 / 无边框输入框 / 纯色按钮
|
|
============================================ */
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
#regist {
|
|
min-height: 100vh;
|
|
width: 100%;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
background: #0d1117;
|
|
/* 四角蓝色光晕 */
|
|
background-image:
|
|
radial-gradient(ellipse 50% 50% at 0% 0%, rgba(22, 93, 255, 0.12) 0%, transparent 70%),
|
|
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 {
|
|
width: 100%;
|
|
max-width: 420px;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
position: relative;
|
|
padding: 40px 20px;
|
|
}
|
|
|
|
/* 隐藏左侧装饰背景板 */
|
|
.container-back {
|
|
display: none;
|
|
}
|
|
|
|
/* 跳转按钮 */
|
|
.login-jump-btn {
|
|
position: fixed;
|
|
top: 24px;
|
|
right: 24px;
|
|
z-index: 20;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.login-jump-btn .lang-box {
|
|
display: flex;
|
|
gap: 4px;
|
|
font-size: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.login-jump-btn .lang-box span {
|
|
color: rgba(139, 148, 158, 0.6);
|
|
cursor: pointer;
|
|
font-size: 13px;
|
|
padding: 6px 12px;
|
|
border-radius: 6px;
|
|
transition: all 0.2s;
|
|
line-height: 1;
|
|
display: inline-block;
|
|
}
|
|
|
|
.login-jump-btn .lang-box span:hover {
|
|
color: rgba(255, 255, 255, 0.8);
|
|
}
|
|
|
|
.login-jump-btn .lang-box span.active {
|
|
color: #FFFFFF;
|
|
background: rgba(22, 93, 255, 0.2);
|
|
}
|
|
|
|
.login-jump-btn .btn {
|
|
background: rgba(22, 93, 255, 0.1);
|
|
border: 1px solid rgba(22, 93, 255, 0.25);
|
|
color: #165DFF;
|
|
border-radius: 6px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.login-jump-btn .btn a {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
|
|
/* ---- 表单区域 — 无卡片 ---- */
|
|
.container-before {
|
|
width: 100%;
|
|
background: transparent;
|
|
box-shadow: none;
|
|
border: none;
|
|
position: static;
|
|
overflow: visible;
|
|
}
|
|
|
|
.login {
|
|
padding: 0;
|
|
font-size: 14px;
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
/* ---- 标题区 ---- */
|
|
.login-text {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
text-align: center;
|
|
margin-bottom: 32px;
|
|
}
|
|
|
|
.login-text-title {
|
|
font-size: 28px;
|
|
color: #FFFFFF;
|
|
line-height: 1.2;
|
|
font-weight: 700;
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
.login-text-regist {
|
|
margin-top: 10px;
|
|
color: rgba(139, 148, 158, 0.8);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.login-text-regist a {
|
|
color: #165DFF;
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
transition: color 0.2s;
|
|
}
|
|
|
|
.login-text-regist a:hover {
|
|
color: #4080FF;
|
|
}
|
|
|
|
/* ---- 切换标签(邮箱/手机) ---- */
|
|
.login-form {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.login-top {
|
|
display: flex;
|
|
gap: 0;
|
|
margin-bottom: 20px;
|
|
background: rgba(255, 255, 255, 0.04);
|
|
border-radius: 8px;
|
|
padding: 4px;
|
|
}
|
|
|
|
.login-email,
|
|
.login-phone {
|
|
flex: 1;
|
|
padding: 10px 0;
|
|
color: rgba(139, 148, 158, 0.7);
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
text-align: center;
|
|
transition: all 0.25s ease;
|
|
border: none;
|
|
border-radius: 6px;
|
|
border-bottom: none;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.login-email:hover,
|
|
.login-phone:hover {
|
|
color: rgba(255, 255, 255, 0.8);
|
|
}
|
|
|
|
.active {
|
|
color: #FFFFFF !important;
|
|
background: rgba(22, 93, 255, 0.15) !important;
|
|
border-bottom: none !important;
|
|
}
|
|
|
|
/* ---- 表单输入 ---- */
|
|
.form-main {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.form-item {
|
|
margin-top: 14px;
|
|
}
|
|
|
|
.form-item:first-child {
|
|
margin-top: 0;
|
|
}
|
|
|
|
/* Element UI 输入框 → 无边框深灰底 */
|
|
.form-main .el-input__inner,
|
|
.form-main .el-textarea__inner,
|
|
.form-main .el-select .el-input__inner,
|
|
.custom-form .el-input__inner,
|
|
.custom-form .el-textarea__inner {
|
|
background: #1c2028 !important;
|
|
border: 1px solid transparent !important;
|
|
color: #E6E8EB !important;
|
|
border-radius: 8px !important;
|
|
height: 46px !important;
|
|
line-height: 46px !important;
|
|
font-size: 14px !important;
|
|
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-textarea__inner:focus,
|
|
.custom-form .el-input__inner:focus,
|
|
.custom-form .el-textarea__inner:focus {
|
|
border-color: #165DFF !important;
|
|
box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.12) !important;
|
|
}
|
|
|
|
.form-main .el-input__inner::placeholder,
|
|
.custom-form .el-input__inner::placeholder {
|
|
color: rgba(139, 148, 158, 0.5) !important;
|
|
}
|
|
|
|
/* 输入框前置图标颜色 */
|
|
.form-main .el-input__prefix {
|
|
color: rgba(139, 148, 158, 0.5);
|
|
}
|
|
|
|
/* 自定义表单 */
|
|
.custom-form {
|
|
margin-top: 6px;
|
|
}
|
|
|
|
.custom-form .el-form-item {
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
.custom-form .el-form-item__label {
|
|
color: rgba(226, 232, 240, 0.6) !important;
|
|
line-height: 1;
|
|
padding-bottom: 6px !important;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.custom-form .el-select {
|
|
width: 100%;
|
|
}
|
|
|
|
.custom-form .el-checkbox__label {
|
|
color: rgba(139, 148, 158, 0.6) !important;
|
|
}
|
|
|
|
/* 手机号输入 — 统一暗色框 */
|
|
.input-with-select .el-input-group__prepend {
|
|
background: #1c2028 !important;
|
|
border: none !important;
|
|
border-radius: 8px 0 0 8px !important;
|
|
color: #E6E8EB !important;
|
|
padding: 0 !important;
|
|
width: 80px !important;
|
|
}
|
|
|
|
.input-with-select.el-input-group {
|
|
background: #1c2028 !important;
|
|
border-radius: 8px !important;
|
|
border: 1px solid transparent !important;
|
|
transition: border-color 0.2s;
|
|
}
|
|
|
|
.input-with-select.el-input-group:hover {
|
|
border-color: rgba(22, 93, 255, 0.2) !important;
|
|
}
|
|
|
|
.input-with-select.el-input-group .el-input__inner {
|
|
background: transparent !important;
|
|
border: none !important;
|
|
}
|
|
|
|
.input-with-select .el-input-group__prepend .el-select {
|
|
width: 100% !important;
|
|
margin: 0 !important;
|
|
}
|
|
|
|
.input-with-select .el-input-group__prepend .el-input__inner {
|
|
background: transparent !important;
|
|
border: none !important;
|
|
color: #E6E8EB !important;
|
|
padding-left: 14px !important;
|
|
padding-right: 22px !important;
|
|
}
|
|
|
|
.input-with-select .el-input-group__prepend .el-input__suffix {
|
|
color: rgba(139, 148, 158, 0.4) !important;
|
|
right: 2px !important;
|
|
}
|
|
|
|
/* 验证码 */
|
|
.code-item {
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
.code-btn {
|
|
background: #1c2028 !important;
|
|
border: none !important;
|
|
color: #165DFF !important;
|
|
border-radius: 8px !important;
|
|
white-space: nowrap;
|
|
padding: 0 16px !important;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.code-btn:hover {
|
|
background: rgba(22, 93, 255, 0.12) !important;
|
|
}
|
|
|
|
/* ---- 协议勾选区 ---- */
|
|
.read-item {
|
|
margin-top: 14px;
|
|
}
|
|
|
|
.read-text {
|
|
flex: 1;
|
|
font-size: 13px;
|
|
line-height: 1.6;
|
|
padding: 0 6px;
|
|
color: rgba(139, 148, 158, 0.55);
|
|
font-weight: 400;
|
|
}
|
|
|
|
.read-item a {
|
|
color: #165DFF;
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.read-item a:hover {
|
|
color: #4080FF;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.read-item .el-checkbox__inner {
|
|
background: #1c2028 !important;
|
|
border-color: rgba(255, 255, 255, 0.1) !important;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.read-item .el-checkbox__input.is-checked .el-checkbox__inner {
|
|
background: #165DFF !important;
|
|
border-color: #165DFF !important;
|
|
}
|
|
|
|
/* 错误提示 */
|
|
.read-item .el-alert--error {
|
|
background: rgba(239, 68, 68, 0.08) !important;
|
|
border: 1px solid rgba(239, 68, 68, 0.15);
|
|
border-radius: 8px;
|
|
color: #F87171 !important;
|
|
}
|
|
|
|
.read-item .el-alert--error .el-alert__title {
|
|
color: #F87171 !important;
|
|
font-size: 13px;
|
|
}
|
|
|
|
/* ---- 注册按钮 — 纯蓝色 ---- */
|
|
.login-btn {
|
|
width: 100%;
|
|
height: 46px;
|
|
background: #165DFF !important;
|
|
border: none !important;
|
|
border-radius: 8px !important;
|
|
font-size: 15px !important;
|
|
font-weight: 600;
|
|
color: #FFFFFF !important;
|
|
letter-spacing: 1px;
|
|
transition: all 0.2s ease;
|
|
margin-top: 6px;
|
|
}
|
|
|
|
.login-btn:hover {
|
|
background: #4080FF !important;
|
|
}
|
|
|
|
.login-btn:active {
|
|
background: #0E42D2 !important;
|
|
}
|
|
|
|
/* 隐藏的密码字段 */
|
|
.empty-input {
|
|
position: absolute;
|
|
opacity: 0;
|
|
width: 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) {
|
|
#regist {
|
|
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 {
|
|
padding: 60px 24px 40px;
|
|
max-width: 100%;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.login-text-title {
|
|
font-size: 22px;
|
|
}
|
|
|
|
.login-text-regist {
|
|
font-size: 13px;
|
|
}
|
|
|
|
.login-text {
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.form-main .el-input__inner,
|
|
.custom-form .el-input__inner {
|
|
height: 44px !important;
|
|
line-height: 44px !important;
|
|
}
|
|
|
|
.login-btn {
|
|
height: 44px;
|
|
font-size: 15px !important;
|
|
}
|
|
|
|
.code-btn {
|
|
font-size: 13px;
|
|
height: 44px;
|
|
}
|
|
|
|
.login-jump-btn {
|
|
top: 16px;
|
|
right: 16px;
|
|
}
|
|
|
|
.back-home-link {
|
|
top: 16px;
|
|
left: 16px;
|
|
}
|
|
|
|
.read-text {
|
|
font-size: 12px;
|
|
}
|
|
}
|
|
|
|
/* ---- 左上角 Logo ---- */
|
|
.back-home-link {
|
|
position: fixed;
|
|
top: 16px;
|
|
left: 20px;
|
|
z-index: 20;
|
|
display: flex;
|
|
align-items: center;
|
|
text-decoration: none;
|
|
padding: 12px 14px;
|
|
border-radius: 8px;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.back-home-link:hover {
|
|
background: rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
.back-home-logo {
|
|
height: 28px;
|
|
width: auto;
|
|
opacity: 1;
|
|
transition: opacity 0.2s;
|
|
}
|
|
|
|
.back-home-link:hover .back-home-logo {
|
|
opacity: 1;
|
|
}
|