391 lines
7.2 KiB
CSS
391 lines
7.2 KiB
CSS
/* ============================================
|
|
忘记密码页面 — 与登录/注册页统一暗色极简风格
|
|
============================================ */
|
|
|
|
[v-cloak] {
|
|
display: none !important;
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
#forget {
|
|
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%);
|
|
}
|
|
|
|
/* Logo */
|
|
.back-home-link {
|
|
position: fixed;
|
|
top: 24px;
|
|
left: 32px;
|
|
z-index: 20;
|
|
text-decoration: none;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
transition: opacity 0.2s;
|
|
}
|
|
|
|
.back-home-link:hover {
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.back-home-logo {
|
|
height: 28px;
|
|
width: auto;
|
|
opacity: 1;
|
|
transition: opacity 0.2s;
|
|
}
|
|
|
|
.back-home-link:hover .back-home-logo {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* ---- 容器 ---- */
|
|
.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) !important;
|
|
border: 1px solid rgba(22, 93, 255, 0.25) !important;
|
|
color: #165DFF !important;
|
|
border-radius: 6px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.login-jump-btn .btn a {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
|
|
/* ---- 表单区域 — 无卡片 ---- */
|
|
.container-before {
|
|
width: 100%;
|
|
position: static;
|
|
background: transparent;
|
|
box-shadow: none;
|
|
border: none;
|
|
}
|
|
|
|
.login {
|
|
padding: 0;
|
|
font-size: 14px;
|
|
font-family: PingFang SC, -apple-system, sans-serif;
|
|
}
|
|
|
|
/* 标题 */
|
|
.login-text {
|
|
text-align: center;
|
|
margin-bottom: 32px;
|
|
}
|
|
|
|
.login-text-title {
|
|
font-size: 28px;
|
|
font-weight: 700;
|
|
color: #FFFFFF;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.login-text-regist {
|
|
margin-top: 10px;
|
|
color: #8B949E;
|
|
font-size: 14px;
|
|
line-height: 1;
|
|
}
|
|
|
|
.login-text-regist a {
|
|
color: #165DFF;
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
margin-left: 4px;
|
|
}
|
|
|
|
.login-text-regist a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* ---- 邮箱/手机切换 Tab ---- */
|
|
.login-form {
|
|
margin-top: 24px;
|
|
}
|
|
|
|
.login-top {
|
|
display: flex;
|
|
gap: 0;
|
|
margin-bottom: 20px;
|
|
background: rgba(255, 255, 255, 0.03);
|
|
border-radius: 8px;
|
|
padding: 3px;
|
|
border: 1px solid rgba(255, 255, 255, 0.04);
|
|
}
|
|
|
|
.login-email,
|
|
.login-phone {
|
|
flex: 1;
|
|
height: 36px;
|
|
line-height: 36px;
|
|
text-align: center;
|
|
border-radius: 6px;
|
|
font-size: 14px;
|
|
color: #8B949E;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
border: none;
|
|
}
|
|
|
|
.login-email:hover,
|
|
.login-phone:hover {
|
|
color: #E6E8EB;
|
|
}
|
|
|
|
.login-email.active,
|
|
.login-phone.active {
|
|
background: rgba(22, 93, 255, 0.15);
|
|
color: #FFFFFF;
|
|
font-weight: 500;
|
|
border: none;
|
|
border-bottom: none;
|
|
}
|
|
|
|
/* ---- 表单 ---- */
|
|
.form-main {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.form-item {
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.form-item:first-child {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.form-main .el-input__inner {
|
|
height: 46px;
|
|
background: #1c2028 !important;
|
|
border: 1px solid rgba(255, 255, 255, 0.06) !important;
|
|
border-radius: 8px !important;
|
|
color: #E6E8EB !important;
|
|
font-size: 14px;
|
|
transition: border-color 0.2s;
|
|
}
|
|
|
|
.form-main .el-input__inner:hover {
|
|
border-color: rgba(22, 93, 255, 0.2) !important;
|
|
}
|
|
|
|
.form-main .el-input__inner:focus {
|
|
border-color: #165DFF !important;
|
|
box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.15) !important;
|
|
}
|
|
|
|
.form-main .el-input__inner::placeholder {
|
|
color: rgba(139, 148, 158, 0.5) !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 rgba(255,255,255,0.06) !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 {
|
|
margin-left: 0 !important;
|
|
min-width: 110px;
|
|
height: 46px !important;
|
|
background: rgba(22, 93, 255, 0.12) !important;
|
|
border: 1px solid rgba(22, 93, 255, 0.25) !important;
|
|
border-radius: 8px !important;
|
|
color: #165DFF !important;
|
|
font-size: 13px !important;
|
|
white-space: nowrap;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.code-btn:hover {
|
|
background: rgba(22, 93, 255, 0.2) !important;
|
|
}
|
|
|
|
/* 协议与提示 */
|
|
.read-item {
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.read-item a {
|
|
color: #165DFF;
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.read-item a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.el-checkbox__label {
|
|
color: #8B949E !important;
|
|
font-size: 13px;
|
|
}
|
|
|
|
/* 登录按钮 */
|
|
.login-btn {
|
|
width: 100% !important;
|
|
height: 46px !important;
|
|
background: #165DFF !important;
|
|
border: none !important;
|
|
border-radius: 8px !important;
|
|
font-size: 15px !important;
|
|
font-weight: 500 !important;
|
|
color: #FFFFFF !important;
|
|
letter-spacing: 1px;
|
|
transition: background 0.2s;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.login-btn:hover {
|
|
background: #0E42D2 !important;
|
|
}
|
|
|
|
/* ---- 移动端适配 ---- */
|
|
@media screen and (max-width: 750px) {
|
|
.login-container {
|
|
width: 100%;
|
|
max-width: 100%;
|
|
padding: 80px 24px 40px;
|
|
}
|
|
|
|
.container-back {
|
|
display: none;
|
|
}
|
|
|
|
.container-before {
|
|
width: 100%;
|
|
position: static;
|
|
background: transparent;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.login {
|
|
padding: 0;
|
|
}
|
|
|
|
.login-text-title {
|
|
font-size: 24px;
|
|
}
|
|
|
|
.login-text-regist {
|
|
font-size: 13px;
|
|
}
|
|
|
|
.login-btn {
|
|
height: 46px !important;
|
|
font-size: 15px !important;
|
|
}
|
|
}
|