Files
shencaisuan/public/css/login-bg.css
T
2026-06-04 11:43:41 +08:00

66 lines
1.6 KiB
CSS

body:has(.auth-container) {
background:
linear-gradient(90deg, rgba(246, 249, 255, 0.9) 0%, rgba(246, 249, 255, 0.74) 48%, rgba(246, 249, 255, 0.62) 100%),
url("../img/auth-login-bg.png") center / cover no-repeat,
linear-gradient(135deg, #eef3fb 0%, #f8fbff 42%, #edf4ff 100%);
background-attachment: fixed;
}
body:has(.auth-container)::before {
content: "";
position: fixed;
inset: 0;
pointer-events: none;
background:
radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0) 36%),
linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(222, 232, 246, 0.12));
opacity: 0.9;
}
.auth-card {
background: rgba(255, 255, 255, 0.94);
border: 1px solid rgba(255, 255, 255, 0.72);
box-shadow: 0 24px 70px rgba(16, 43, 106, 0.18), 0 8px 24px rgba(0, 0, 0, 0.08);
backdrop-filter: blur(14px);
-webkit-backdrop-filter: blur(14px);
}
.auth-header {
padding-top: 28px;
padding-bottom: 26px;
}
.auth-logo--image {
display: flex;
width: 100%;
justify-content: center;
align-items: center;
margin-bottom: 8px;
line-height: 1;
}
.auth-logo--image img {
display: block;
width: min(230px, 70%);
height: auto;
margin: 0 auto;
}
.auth-subtitle {
text-align: center;
}
@media (max-width: 768px) {
body:has(.auth-container) {
background:
linear-gradient(180deg, rgba(246, 249, 255, 0.88) 0%, rgba(246, 249, 255, 0.72) 100%),
url("../img/auth-login-bg.png") center / cover no-repeat,
linear-gradient(135deg, #eef3fb 0%, #f8fbff 48%, #edf4ff 100%);
background-attachment: scroll;
}
.auth-logo--image img {
width: min(210px, 72%);
}
}