128 lines
3.0 KiB
Plaintext
128 lines
3.0 KiB
Plaintext
.loginWrapper {
|
|
height: 100vh;
|
|
min-height: 100dvh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background-size: cover;
|
|
background-position: center;
|
|
background-image: url('../../assets/image/admin-login-background.webp');
|
|
overflow-x: hidden;
|
|
overflow-y: auto;
|
|
position: relative;
|
|
&::before,
|
|
&::after {
|
|
content: '';
|
|
position: absolute;
|
|
pointer-events: none;
|
|
z-index: 0;
|
|
}
|
|
// The supplied artwork already provides the visual structure; keep the
|
|
// legacy geometric decorations from competing with its focal subject.
|
|
&::before,
|
|
&::after { display: none; }
|
|
&.dark {
|
|
background-color: var(--td-bg-color-page);
|
|
background-image: linear-gradient(rgba(14, 27, 52, 0.72), rgba(14, 27, 52, 0.72)), url('../../assets/image/admin-login-background.webp');
|
|
&::before { border-color: rgba(111, 146, 255, 0.22); background: rgba(111, 146, 255, 0.08); }
|
|
&::after { border-color: rgba(102, 212, 174, 0.18); }
|
|
}
|
|
&.light {
|
|
background-color: #f7f9fc;
|
|
background-image: url('../../assets/image/admin-login-background.webp');
|
|
&::before { border-color: rgba(54, 91, 220, 0.14); background: rgba(54, 91, 220, 0.045); }
|
|
&::after { border-color: rgba(35, 161, 125, 0.12); }
|
|
}
|
|
&::before { width: 58vw; height: 58vw; right: -20vw; top: -25vw; border: 1px solid; border-radius: 34%; transform: rotate(24deg); }
|
|
&::after { width: 34vw; height: 34vw; right: 12vw; bottom: -21vw; border: 1px solid; border-radius: 50%; }
|
|
}
|
|
|
|
.loginContent {
|
|
position: absolute;
|
|
top: 22%;
|
|
left: 5%;
|
|
width: min(400px, calc(100vw - 10%));
|
|
min-height: 0;
|
|
line-height: 22px;
|
|
z-index: 1;
|
|
/* 仅负责定位;登录页主体直接落在背景图左侧,不创建卡片层。 */
|
|
background: none;
|
|
border: 0;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.titleContainer {
|
|
text-align: left;
|
|
}
|
|
|
|
.title {
|
|
font-size: 36px;
|
|
line-height: 44px;
|
|
color: var(--td-text-color-primary);
|
|
margin-top: 4px;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.subTitle {
|
|
margin-top: 16px;
|
|
text-align: left;
|
|
}
|
|
|
|
.tip {
|
|
display: inline-block;
|
|
margin-right: 8px;
|
|
font-size: 14px;
|
|
margin-top: 0;
|
|
margin-bottom: 0;
|
|
|
|
&.registerTip {
|
|
color: var(--td-text-color-secondary);
|
|
}
|
|
|
|
&.loginTip {
|
|
color: var(--td-text-color-primary);
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
|
|
.copyright {
|
|
font-size: 14px;
|
|
position: absolute;
|
|
left: 5%;
|
|
bottom: 64px;
|
|
color: var(--td-text-color-secondary);
|
|
z-index: 1;
|
|
}
|
|
|
|
@media screen and (max-width: 700px) {
|
|
.loginWrapper {
|
|
height: 100dvh;
|
|
min-height: 100dvh;
|
|
overflow-x: hidden;
|
|
overflow-y: auto;
|
|
// Keep the desktop left-side composition; the artwork remains a full-page
|
|
// background and the form stays directly on its quiet left half.
|
|
background-position: left center;
|
|
background-size: auto 100%;
|
|
background-attachment: initial;
|
|
}
|
|
|
|
.title {
|
|
font-size: 30px;
|
|
line-height: 38px;
|
|
}
|
|
|
|
.copyright {
|
|
right: auto;
|
|
bottom: 64px;
|
|
left: 5%;
|
|
text-align: left;
|
|
}
|
|
|
|
}
|
|
|
|
@media screen and (max-height: 762px) {
|
|
.copyright {
|
|
display: none;
|
|
}
|
|
}
|