511 lines
9.1 KiB
CSS
511 lines
9.1 KiB
CSS
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
body {
|
|
font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
|
|
line-height: 1.5;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* 背景包装器 */
|
|
.login-wrapper {
|
|
position: relative;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
overflow: hidden;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
|
|
}
|
|
|
|
.login-wrapper::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-image:
|
|
repeating-linear-gradient(
|
|
0deg,
|
|
transparent,
|
|
transparent 2px,
|
|
rgba(255, 255, 255, 0.02) 2px,
|
|
rgba(255, 255, 255, 0.02) 4px
|
|
),
|
|
repeating-linear-gradient(
|
|
90deg,
|
|
transparent,
|
|
transparent 2px,
|
|
rgba(255, 255, 255, 0.02) 2px,
|
|
rgba(255, 255, 255, 0.02) 4px
|
|
);
|
|
background-size: 60px 60px;
|
|
}
|
|
|
|
.login-wrapper::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: -30%;
|
|
left: -20%;
|
|
width: 70%;
|
|
height: 70%;
|
|
background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, rgba(255, 200, 255, 0.1) 40%, transparent 70%);
|
|
border-radius: 50%;
|
|
animation: float-bg 10s ease-in-out infinite;
|
|
}
|
|
|
|
/* 额外的动态光斑 */
|
|
.login-wrapper .container::before {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: -40%;
|
|
right: -30%;
|
|
width: 60%;
|
|
height: 60%;
|
|
background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.15) 50%, transparent 70%);
|
|
border-radius: 50%;
|
|
animation: float-bg2 12s ease-in-out infinite;
|
|
z-index: -2;
|
|
}
|
|
|
|
@keyframes float-bg {
|
|
0%, 100% {
|
|
transform: translate(0, 0) scale(1);
|
|
opacity: 0.8;
|
|
}
|
|
50% {
|
|
transform: translate(80px, 60px) scale(1.2);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
@keyframes float-bg2 {
|
|
0%, 100% {
|
|
transform: translate(0, 0) scale(1);
|
|
opacity: 0.7;
|
|
}
|
|
50% {
|
|
transform: translate(-60px, -50px) scale(1.15);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
/* 主容器 - Uiverse.io 风格 */
|
|
.container {
|
|
display: flex;
|
|
width: 620px;
|
|
height: 520px;
|
|
max-width: 95%;
|
|
align-items: center;
|
|
justify-content: center;
|
|
position: relative;
|
|
overflow: hidden;
|
|
background-color: rgba(255, 255, 255, 0.15);
|
|
border-radius: 20px;
|
|
box-shadow: 0px 0px 40px rgba(0, 0, 0, 0.08);
|
|
border: 1px solid rgba(255, 255, 255, 0.25);
|
|
backdrop-filter: blur(10px);
|
|
animation: slideUp 0.6s ease-out;
|
|
}
|
|
|
|
@keyframes slideUp {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(30px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.container::after {
|
|
position: absolute;
|
|
content: "";
|
|
width: 80%;
|
|
height: 80%;
|
|
right: -40%;
|
|
background: rgb(157, 173, 203);
|
|
background: radial-gradient(
|
|
circle,
|
|
rgba(157, 173, 203, 0.6) 61%,
|
|
rgba(99, 122, 159, 0.4) 100%
|
|
);
|
|
border-radius: 50%;
|
|
z-index: -1;
|
|
}
|
|
|
|
/* 左侧表单区域 */
|
|
.left {
|
|
width: 60%;
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
padding: 40px;
|
|
}
|
|
|
|
/* 表单头部 */
|
|
.form-header {
|
|
text-align: center;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.system-title {
|
|
font-size: 22px;
|
|
font-weight: 700;
|
|
color: #ffffff;
|
|
margin: 0 0 6px 0;
|
|
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.system-subtitle {
|
|
font-size: 12px;
|
|
color: rgba(255, 255, 255, 0.85);
|
|
letter-spacing: 1px;
|
|
text-transform: uppercase;
|
|
margin: 0;
|
|
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
/* 表单样式 */
|
|
.form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
width: 100%;
|
|
position: relative;
|
|
}
|
|
|
|
.form::before {
|
|
position: absolute;
|
|
content: "";
|
|
width: 50%;
|
|
height: 50%;
|
|
right: -10%;
|
|
top: 10%;
|
|
z-index: -1;
|
|
pointer-events: none;
|
|
background: radial-gradient(
|
|
circle,
|
|
rgba(194, 13, 170, 0.3) 20%,
|
|
rgba(26, 186, 235, 0.2) 60%,
|
|
rgba(26, 186, 235, 0.1) 100%
|
|
);
|
|
filter: blur(60px);
|
|
border-radius: 50%;
|
|
}
|
|
|
|
/* 输入框块 */
|
|
.input-block {
|
|
position: relative;
|
|
margin-bottom: 8px;
|
|
z-index: 1;
|
|
}
|
|
|
|
.input,
|
|
button {
|
|
background: rgba(255, 255, 255, 0.95);
|
|
outline: none;
|
|
border: 1px solid rgba(200, 200, 200, 0.4);
|
|
border-radius: 0.5rem;
|
|
padding: 12px 14px;
|
|
margin: 8px auto;
|
|
width: 100%;
|
|
display: block;
|
|
color: #2d3748;
|
|
font-weight: 500;
|
|
font-size: 1em;
|
|
font-family: inherit;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.input-block label {
|
|
position: absolute;
|
|
left: 14px;
|
|
top: 37%;
|
|
pointer-events: none;
|
|
color: #5a6a7a;
|
|
font-size: 0.95em;
|
|
transition: all 0.4s ease;
|
|
}
|
|
|
|
.input:focus + label,
|
|
.input:valid + label {
|
|
transform: translateY(-120%) scale(0.9);
|
|
color: #ffffff;
|
|
font-weight: 600;
|
|
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.input:focus {
|
|
background: rgba(255, 255, 255, 1);
|
|
border-color: #5e7eb6;
|
|
box-shadow: 0 0 0 3px rgba(94, 126, 182, 0.15);
|
|
}
|
|
|
|
.input {
|
|
box-shadow: inset 2px 2px 4px rgba(165, 163, 163, 0.15),
|
|
2px 2px 4px rgba(218, 218, 218, 0.1);
|
|
}
|
|
|
|
/* 验证码区域 */
|
|
.captcha-block {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
flex-wrap: nowrap;
|
|
}
|
|
|
|
.captcha-block .captcha-input {
|
|
flex: 1;
|
|
width: auto;
|
|
min-width: 0;
|
|
}
|
|
|
|
.captcha-block label {
|
|
left: 14px;
|
|
top: 37%;
|
|
}
|
|
|
|
.captcha-block .input:focus + label,
|
|
.captcha-block .input:valid + label {
|
|
transform: translateY(-120%) scale(0.9);
|
|
}
|
|
|
|
.captcha-image-wrapper {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 110px;
|
|
height: 48px;
|
|
background: rgba(255, 255, 255, 0.95);
|
|
border: 1px solid rgba(200, 200, 200, 0.4);
|
|
border-radius: 0.5rem;
|
|
overflow: hidden;
|
|
flex-shrink: 0;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
margin-top: 0;
|
|
box-shadow: inset 2px 2px 4px rgba(165, 163, 163, 0.15),
|
|
2px 2px 6px rgba(218, 218, 218, 0.15);
|
|
}
|
|
|
|
.captcha-image-wrapper:hover {
|
|
border-color: #5e7eb6;
|
|
box-shadow: 0 0 0 3px rgba(94, 126, 182, 0.15),
|
|
inset 2px 2px 4px rgba(165, 163, 163, 0.1);
|
|
transform: scale(1.03);
|
|
}
|
|
|
|
.captcha-image-wrapper:active {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
.captcha-image-wrapper.refreshing {
|
|
animation: captcha-refresh 0.4s ease;
|
|
}
|
|
|
|
@keyframes captcha-refresh {
|
|
0% { transform: scale(1); opacity: 1; }
|
|
50% { transform: scale(0.95); opacity: 0.7; }
|
|
100% { transform: scale(1); opacity: 1; }
|
|
}
|
|
|
|
.captcha-image {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
display: block;
|
|
pointer-events: none;
|
|
background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
|
|
}
|
|
|
|
/* 底部链接 */
|
|
.forgot {
|
|
display: block;
|
|
margin: 5px 0 10px 0;
|
|
color: rgba(255, 255, 255, 0.9);
|
|
font-size: 0.85em;
|
|
}
|
|
|
|
.forgot a {
|
|
color: rgba(255, 255, 255, 0.9);
|
|
text-decoration: none;
|
|
transition: color 0.3s ease;
|
|
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.forgot a:hover {
|
|
color: #ffffff;
|
|
}
|
|
|
|
/* 登录按钮 */
|
|
button {
|
|
background-color: #5e7eb6;
|
|
color: white;
|
|
font-size: 1em;
|
|
font-weight: 600;
|
|
box-shadow: 2px 4px 12px rgba(94, 126, 182, 0.3);
|
|
cursor: pointer;
|
|
border: none;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
button::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: -100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
|
|
transition: left 0.5s ease;
|
|
}
|
|
|
|
button:hover {
|
|
background-color: #4a6da8;
|
|
transform: translateY(-2px);
|
|
box-shadow: 2px 6px 16px rgba(94, 126, 182, 0.4);
|
|
}
|
|
|
|
button:hover::before {
|
|
left: 100%;
|
|
}
|
|
|
|
button:active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
button:disabled {
|
|
opacity: 0.7;
|
|
cursor: not-allowed;
|
|
transform: none;
|
|
}
|
|
|
|
/* 加载动画 */
|
|
.btn-loader {
|
|
display: flex;
|
|
gap: 6px;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.btn-loader .dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
background: #ffffff;
|
|
animation: bounce 0.9s ease infinite;
|
|
}
|
|
|
|
.btn-loader .dot:nth-child(2) {
|
|
animation-delay: 0.15s;
|
|
}
|
|
|
|
.btn-loader .dot:nth-child(3) {
|
|
animation-delay: 0.3s;
|
|
}
|
|
|
|
@keyframes bounce {
|
|
0%, 100% {
|
|
transform: translateY(0);
|
|
opacity: 0.7;
|
|
}
|
|
50% {
|
|
transform: translateY(-8px);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
/* 错误消息 */
|
|
.error-message {
|
|
background: rgba(254, 242, 242, 0.95);
|
|
border: 1px solid #fecaca;
|
|
color: #dc2626;
|
|
padding: 10px 14px;
|
|
border-radius: 8px;
|
|
font-size: 13px;
|
|
margin-bottom: 10px;
|
|
animation: shake 0.4s ease;
|
|
}
|
|
|
|
@keyframes shake {
|
|
0%, 100% { transform: translateX(0); }
|
|
25% { transform: translateX(-8px); }
|
|
75% { transform: translateX(8px); }
|
|
}
|
|
|
|
/* 右侧插图区域 */
|
|
.right {
|
|
width: 40%;
|
|
height: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 20px;
|
|
}
|
|
|
|
.img {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.img svg {
|
|
max-width: 100%;
|
|
max-height: 100%;
|
|
filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
|
|
}
|
|
|
|
/* 响应式设计 */
|
|
@media (max-width: 768px) {
|
|
.container {
|
|
flex-direction: column;
|
|
width: 95%;
|
|
height: auto;
|
|
max-height: 90vh;
|
|
}
|
|
|
|
.left {
|
|
width: 100%;
|
|
padding: 30px 25px;
|
|
}
|
|
|
|
.right {
|
|
display: none;
|
|
}
|
|
|
|
.system-title {
|
|
font-size: 20px;
|
|
}
|
|
|
|
.container::after {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.left {
|
|
padding: 25px 20px;
|
|
}
|
|
|
|
.system-title {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.input, button {
|
|
padding: 10px 12px;
|
|
font-size: 0.95em;
|
|
}
|
|
}
|