661 lines
12 KiB
CSS
Executable File
661 lines
12 KiB
CSS
Executable File
* {
|
|
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: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: radial-gradient(
|
|
ellipse at 20% 30%,
|
|
rgba(138, 43, 226, 0.8) 0%,
|
|
rgba(138, 43, 226, 0) 60%
|
|
),
|
|
radial-gradient(
|
|
ellipse at 80% 50%,
|
|
rgba(0, 191, 255, 0.7) 0%,
|
|
rgba(0, 191, 255, 0) 70%
|
|
),
|
|
radial-gradient(
|
|
ellipse at 50% 80%,
|
|
rgba(50, 205, 50, 0.6) 0%,
|
|
rgba(50, 205, 50, 0) 65%
|
|
),
|
|
linear-gradient(135deg, #000000 0%, #0a0520 100%);
|
|
background-blend-mode: overlay, screen, hard-light;
|
|
overflow: hidden;
|
|
animation: aurora-drift 25s infinite alternate ease-in-out;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.login-wrapper::before {
|
|
content: "";
|
|
position: absolute;
|
|
width: 200%;
|
|
height: 200%;
|
|
top: -50%;
|
|
left: -50%;
|
|
background: repeating-linear-gradient(
|
|
45deg,
|
|
rgba(255, 255, 255, 0.02) 0px,
|
|
rgba(255, 255, 255, 0.02) 1px,
|
|
transparent 1px,
|
|
transparent 40px
|
|
),
|
|
repeating-linear-gradient(
|
|
-45deg,
|
|
rgba(255, 255, 255, 0.03) 0px,
|
|
rgba(255, 255, 255, 0.03) 1px,
|
|
transparent 1px,
|
|
transparent 60px
|
|
);
|
|
animation: grid-shift 20s linear infinite;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.login-wrapper::after {
|
|
content: "";
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: radial-gradient(
|
|
circle at center,
|
|
transparent 70%,
|
|
rgba(10, 5, 32, 0.9) 100%
|
|
);
|
|
animation: aurora-pulse 8s infinite alternate;
|
|
pointer-events: none;
|
|
}
|
|
|
|
@keyframes aurora-drift {
|
|
0% {
|
|
background-position:
|
|
0% 0%,
|
|
0% 0%,
|
|
0% 0%;
|
|
filter: hue-rotate(0deg) brightness(1);
|
|
}
|
|
50% {
|
|
background-position:
|
|
-10% -5%,
|
|
5% 10%,
|
|
0% 15%;
|
|
filter: hue-rotate(30deg) brightness(1.2);
|
|
}
|
|
100% {
|
|
background-position:
|
|
5% 10%,
|
|
-10% -5%,
|
|
15% 0%;
|
|
filter: hue-rotate(60deg) brightness(1);
|
|
}
|
|
}
|
|
|
|
@keyframes grid-shift {
|
|
0% {
|
|
transform: translate(0, 0);
|
|
}
|
|
100% {
|
|
transform: translate(-50%, -50%);
|
|
}
|
|
}
|
|
|
|
@keyframes aurora-pulse {
|
|
0% {
|
|
opacity: 0.8;
|
|
transform: scale(1);
|
|
}
|
|
50% {
|
|
opacity: 0.5;
|
|
transform: scale(1.05);
|
|
}
|
|
100% {
|
|
opacity: 0.8;
|
|
transform: scale(1);
|
|
}
|
|
}
|
|
|
|
/* 主容器 - 适配极光背景 */
|
|
.container {
|
|
display: flex;
|
|
width: 620px;
|
|
height: 520px;
|
|
max-width: 95%;
|
|
align-items: center;
|
|
justify-content: center;
|
|
position: relative;
|
|
overflow: hidden;
|
|
background-color: rgba(10, 5, 32, 0.25);
|
|
border-radius: 20px;
|
|
box-shadow: 0px 0px 60px rgba(138, 43, 226, 0.2),
|
|
0px 0px 40px rgba(0, 191, 255, 0.1),
|
|
inset 0 0 30px rgba(255, 255, 255, 0.05);
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
backdrop-filter: blur(20px);
|
|
animation: slideUp 0.6s ease-out, container-glow 4s ease-in-out infinite alternate;
|
|
}
|
|
|
|
@keyframes slideUp {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(30px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
@keyframes container-glow {
|
|
0% {
|
|
box-shadow: 0px 0px 60px rgba(138, 43, 226, 0.2),
|
|
0px 0px 40px rgba(0, 191, 255, 0.1),
|
|
inset 0 0 30px rgba(255, 255, 255, 0.05);
|
|
}
|
|
50% {
|
|
box-shadow: 0px 0px 80px rgba(138, 43, 226, 0.3),
|
|
0px 0px 60px rgba(0, 191, 255, 0.2),
|
|
inset 0 0 40px rgba(255, 255, 255, 0.08);
|
|
}
|
|
100% {
|
|
box-shadow: 0px 0px 60px rgba(50, 205, 50, 0.2),
|
|
0px 0px 40px rgba(0, 191, 255, 0.15),
|
|
inset 0 0 30px rgba(255, 255, 255, 0.05);
|
|
}
|
|
}
|
|
|
|
.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;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* 左侧表单区域 */
|
|
.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-block:has(.password-toggle) {
|
|
position: relative;
|
|
}
|
|
|
|
.input,
|
|
button {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
outline: none;
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
border-radius: 0.5rem;
|
|
padding: 12px 14px;
|
|
margin: 8px auto;
|
|
width: 100%;
|
|
display: block;
|
|
color: #ffffff;
|
|
font-weight: 500;
|
|
font-size: 1em;
|
|
font-family: inherit;
|
|
transition: all 0.3s ease;
|
|
backdrop-filter: blur(10px);
|
|
}
|
|
|
|
.input-block label {
|
|
position: absolute;
|
|
left: 14px;
|
|
top: 37%;
|
|
pointer-events: none;
|
|
color: rgba(255, 255, 255, 0.7);
|
|
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(138, 43, 226, 0.5);
|
|
}
|
|
|
|
.input:focus {
|
|
background: rgba(255, 255, 255, 0.15);
|
|
border-color: rgba(138, 43, 226, 0.5);
|
|
box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.2);
|
|
}
|
|
|
|
.input-block:has(.password-toggle) .input {
|
|
padding-right: 45px;
|
|
}
|
|
|
|
.input {
|
|
box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.2),
|
|
2px 2px 4px rgba(138, 43, 226, 0.1);
|
|
}
|
|
|
|
/* 密码显示/隐藏按钮 */
|
|
.password-toggle {
|
|
position: absolute;
|
|
right: 12px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
background: transparent;
|
|
border: none;
|
|
padding: 8px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: rgba(255, 255, 255, 0.6);
|
|
transition: all 0.3s ease;
|
|
z-index: 10;
|
|
margin: 0;
|
|
width: auto;
|
|
height: auto;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.password-toggle:hover {
|
|
color: rgba(255, 255, 255, 0.9);
|
|
background: transparent;
|
|
transform: translateY(-50%) scale(1.1);
|
|
box-shadow: none;
|
|
}
|
|
|
|
.password-toggle:active {
|
|
transform: translateY(-50%) scale(0.95);
|
|
}
|
|
|
|
.password-toggle::before {
|
|
display: none;
|
|
}
|
|
|
|
.eye-icon {
|
|
width: 20px;
|
|
height: 20px;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* 验证码区域 */
|
|
.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.1);
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
border-radius: 0.5rem;
|
|
overflow: hidden;
|
|
flex-shrink: 0;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
margin-top: 0;
|
|
backdrop-filter: blur(10px);
|
|
box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.2),
|
|
2px 2px 6px rgba(138, 43, 226, 0.1);
|
|
}
|
|
|
|
.captcha-image-wrapper:hover {
|
|
border-color: rgba(138, 43, 226, 0.5);
|
|
box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.2),
|
|
inset 2px 2px 4px rgba(0, 0, 0, 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: linear-gradient(135deg, rgba(138, 43, 226, 0.8) 0%, rgba(0, 191, 255, 0.8) 100%);
|
|
color: white;
|
|
font-size: 1em;
|
|
font-weight: 600;
|
|
box-shadow: 0 4px 20px rgba(138, 43, 226, 0.3),
|
|
0 2px 10px rgba(0, 191, 255, 0.2);
|
|
cursor: pointer;
|
|
border: none;
|
|
position: relative;
|
|
overflow: hidden;
|
|
backdrop-filter: blur(10px);
|
|
}
|
|
|
|
button::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: -100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
|
|
transition: left 0.5s ease;
|
|
}
|
|
|
|
button:hover {
|
|
background: linear-gradient(135deg, rgba(138, 43, 226, 0.9) 0%, rgba(0, 191, 255, 0.9) 100%);
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 6px 30px rgba(138, 43, 226, 0.4),
|
|
0 4px 20px rgba(0, 191, 255, 0.3);
|
|
}
|
|
|
|
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));
|
|
}
|
|
|
|
/* 角色容器 */
|
|
.character-container {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 20px;
|
|
}
|
|
|
|
.character {
|
|
width: 200px;
|
|
height: 200px;
|
|
filter: drop-shadow(0 4px 12px rgba(138, 43, 226, 0.3));
|
|
transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
|
|
}
|
|
|
|
#char-head,
|
|
#char-body,
|
|
#char-hands ellipse,
|
|
#char-eyes ellipse {
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
#char-mouth {
|
|
transition: d 0.3s ease;
|
|
}
|
|
|
|
#hand-left,
|
|
#hand-right {
|
|
transition: cx 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55),
|
|
cy 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55),
|
|
transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
|
|
}
|
|
|
|
#eye-left,
|
|
#eye-right {
|
|
transition: ry 0.15s ease, cx 0.3s ease;
|
|
}
|
|
|
|
/* 响应式设计 */
|
|
@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;
|
|
}
|
|
}
|