feat: 背景:极为柔和的淡蓝色渐变,搭配流动的粉蓝光斑。

卡片:通透的白色磨砂玻璃,带有细腻的阴影,像漂浮在空中一样。
配色:主色调是靛蓝到紫色的渐变(Linear Gradient),既专业又不失活力。
字体:使用了 Plus Jakarta Sans,这是近年来非常流行的几何无衬线字体。
This commit is contained in:
2026-01-26 15:57:38 +08:00
parent 5d4d477d07
commit bd3e2ba6a5

View File

@@ -1,10 +1,13 @@
/* "Ethereal Void" Ultra-Modern Theme */ /* "Morning Mist" Premium Light Theme */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap'); @import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');
:root { :root {
--primary-glow: conic-gradient(from 180deg at 50% 50%, #2a8af6 0deg, #a853ba 180deg, #e92a67 360deg); --glass-bg: rgba(255, 255, 255, 0.7);
--glass-surface: rgba(255, 255, 255, 0.03); --glass-border: rgba(255, 255, 255, 0.8);
--glass-border: rgba(255, 255, 255, 0.08); --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
--text-primary: #1e293b;
--text-secondary: #64748b;
--accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
} }
.login-page { .login-page {
@@ -12,105 +15,86 @@
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
background-color: #000000; /* Luxurious light gradient */
background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f5f3ff 100%);
position: relative; position: relative;
overflow: hidden; overflow: hidden;
font-family: 'Inter', sans-serif; font-family: 'Plus Jakarta Sans', sans-serif;
color: #fff; color: var(--text-primary);
} }
/* 1. Dynamic "Void" Background */ /* 1. Artistic Background Elements */
.login-page::before { .login-page::before {
content: ''; content: '';
position: absolute; position: absolute;
width: 150vw; top: -10%;
height: 150vw; right: -5%;
background: radial-gradient(circle at center, rgba(56, 189, 248, 0.08) 0%, rgba(0, 0, 0, 0) 50%); width: 50vw;
top: 50%; height: 50vw;
left: 50%; background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
transform: translate(-50%, -50%); filter: blur(60px);
animation: pulseLight 8s ease-in-out infinite alternate; animation: floatBlue 20s ease-in-out infinite alternate;
pointer-events: none;
} }
.login-page::after { .login-page::after {
content: ''; content: '';
position: absolute; position: absolute;
top: -20%; bottom: -10%;
left: -10%; left: -10%;
width: 50vw; width: 60vw;
height: 50vw; height: 60vw;
background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, rgba(0, 0, 0, 0) 70%); background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
filter: blur(60px); filter: blur(80px);
animation: floatOrb 15s ease-in-out infinite; animation: floatPink 25s ease-in-out infinite alternate-reverse;
} }
@keyframes pulseLight { @keyframes floatBlue {
0% { 0% {
opacity: 0.5;
transform: translate(-50%, -50%) scale(1);
}
100% {
opacity: 1;
transform: translate(-50%, -50%) scale(1.2);
}
}
@keyframes floatOrb {
0%,
100% {
transform: translate(0, 0); transform: translate(0, 0);
} }
50% { 100% {
transform: translate(20px, 40px); transform: translate(-30px, 50px);
} }
} }
/* 2. The Monolith Card */ @keyframes floatPink {
0% {
transform: translate(0, 0);
}
100% {
transform: translate(30px, -50px);
}
}
/* 2. Frosted Glass Card */
.login-container { .login-container {
width: 100%; width: 100%;
max-width: 400px; max-width: 420px;
padding: 3rem; padding: 3rem;
margin: 1rem; margin: 1rem;
position: relative;
z-index: 10;
/* Ultra-refined Glass */ /* Lighter, brighter glass */
background: rgba(10, 10, 10, 0.6); background: var(--glass-bg);
backdrop-filter: blur(40px); backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(20px);
border-radius: 32px; border-radius: 24px;
border: 1px solid var(--glass-border); border: 1px solid var(--glass-border);
box-shadow: box-shadow:
0 0 0 1px rgba(0, 0, 0, 1), var(--glass-shadow),
/* inner black line */ 0 1px 2px 0 rgba(255, 255, 255, 0.5) inset;
0 20px 60px rgba(0, 0, 0, 0.8),
0 0 0 1px rgba(255, 255, 255, 0.05) inset;
/* subtle inner highlight */
animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) backwards; animation: cardEntrance 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
position: relative;
z-index: 10;
} }
/* Top "Spotlight" Border Effect */ @keyframes cardEntrance {
.login-container::after {
content: "";
position: absolute;
top: 0;
left: 20%;
right: 20%;
height: 1px;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
width: 60%;
}
@keyframes slideUpFade {
from { from {
opacity: 0; opacity: 0;
transform: translateY(40px) scale(0.98); transform: translateY(20px) scale(0.98);
} }
to { to {
@@ -119,56 +103,56 @@
} }
} }
/* 3. Minimalist Header */ /* 3. Header & Logo */
.login-header { .login-header {
text-align: center; text-align: center;
margin-bottom: 3rem; margin-bottom: 2.5rem;
} }
.login-logo { .login-logo {
width: 64px; width: 68px;
height: 64px; height: 68px;
margin: 0 auto 1.5rem; margin: 0 auto 1.5rem;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
/* Gem-like appearance */ background: white;
background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.01)); border-radius: 18px;
border: 1px solid rgba(255, 255, 255, 0.2); color: #6366f1;
border-radius: 20px; /* Indigo 500 */
color: #fff; border: 1px solid rgba(226, 232, 240, 0.8);
position: relative;
box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.15);
transform: rotate(-3deg);
transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
} }
/* The neon ring */ .login-container:hover .login-logo {
.login-logo::before { transform: rotate(0deg) scale(1.05);
content: ''; box-shadow: 0 15px 30px -5px rgba(99, 102, 241, 0.25);
position: absolute; background: var(--accent-gradient);
inset: -1px; color: white;
z-index: -1; border-color: transparent;
border-radius: 21px;
background: var(--primary-glow);
opacity: 0.5;
filter: blur(8px);
} }
.login-title { .login-title {
font-family: 'Space Grotesk', sans-serif; font-size: 1.875rem;
font-size: 1.75rem; font-weight: 700;
font-weight: 600; background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
color: white; -webkit-background-clip: text;
-webkit-text-fill-color: transparent;
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
letter-spacing: -0.03em; letter-spacing: -0.025em;
} }
.login-subtitle { .login-subtitle {
color: #8899a6; color: var(--text-secondary);
font-size: 0.9rem; font-size: 0.95rem;
letter-spacing: 0.01em; font-weight: 400;
} }
/* 4. "Carved" Inputs */ /* 4. Soft Form Inputs */
.login-form { .login-form {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@@ -178,50 +162,42 @@
.login-field { .login-field {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 0.6rem; gap: 0.5rem;
} }
.login-label { .login-label {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 0.5rem; gap: 0.5rem;
font-size: 0.8rem; font-size: 0.85rem;
font-weight: 500; font-weight: 600;
font-family: 'Space Grotesk', sans-serif; color: #475569;
text-transform: uppercase; margin-left: 0.25rem;
letter-spacing: 0.05em;
color: #6b7280;
margin-left: 4px;
} }
.login-input { .login-input {
width: 100%; width: 100%;
padding: 1rem 1.25rem; padding: 0.875rem 1rem;
font-size: 0.95rem; font-size: 0.95rem;
font-family: 'Inter', sans-serif; font-family: inherit;
/* Seamless dark background */ background: white;
background: rgba(0, 0, 0, 0.4); border: 1px solid #e2e8f0;
color: #fff; border-radius: 12px;
color: #1e293b;
/* No visible border initially, just depth */
border: 1px solid transparent;
border-radius: 16px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) inset;
/* Inner shadow depth */
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
} }
.login-input:focus { .login-input:focus {
outline: none; outline: none;
background: rgba(0, 0, 0, 0.6); border-color: #8b5cf6;
border-color: rgba(255, 255, 255, 0.1); background: #fff;
box-shadow: box-shadow:
0 4px 12px rgba(0, 0, 0, 0.4) inset, 0 0 0 4px rgba(139, 92, 246, 0.1),
0 0 0 1px rgba(255, 255, 255, 0.05); 0 4px 12px rgba(0, 0, 0, 0.05);
/* Subtle ring */ transform: translateY(-1px);
color: #fff;
} }
/* Password Toggle */ /* Password Toggle */
@@ -231,98 +207,83 @@
.login-password-toggle { .login-password-toggle {
position: absolute; position: absolute;
right: 1.25rem; right: 1rem;
top: 50%; top: 50%;
transform: translateY(-50%); transform: translateY(-50%);
background: none; background: none;
border: none; border: none;
color: #4b5563; color: #94a3b8;
cursor: pointer; cursor: pointer;
padding: 4px; padding: 4px;
transition: color 0.2s; transition: color 0.2s;
} }
.login-password-toggle:hover { .login-password-toggle:hover {
color: #e5e7eb; color: #64748b;
} }
/* 5. Holographic Button */ /* 5. Elegant Buttons */
.login-button { .login-button {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
gap: 0.75rem; gap: 0.6rem;
padding: 1.1rem; padding: 0.875rem;
border: none; border: none;
border-radius: 16px; border-radius: 12px;
font-size: 0.95rem; font-size: 1rem;
font-weight: 600; font-weight: 600;
font-family: 'Space Grotesk', sans-serif;
cursor: pointer; cursor: pointer;
margin-top: 1rem; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
position: relative; margin-top: 0.5rem;
overflow: hidden;
transition: all 0.3s;
} }
/* Primary "Glow" Button */ /* Gradient Primary */
.login-button--primary { .login-button--primary {
color: white; color: white;
background: #fff; background: var(--accent-gradient);
color: #000; background-size: 200% auto;
z-index: 1; box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}
/* The gradient hover effect sits behind */
.login-button--primary::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
z-index: -1;
opacity: 0;
transition: opacity 0.3s ease;
} }
.login-button--primary:hover:not(:disabled) { .login-button--primary:hover:not(:disabled) {
color: white; background-position: right center;
transform: translateY(-2px); transform: translateY(-1px);
box-shadow: 0 10px 30px -4px rgba(139, 92, 246, 0.5); box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
} }
.login-button--primary:hover:not(:disabled)::before { .login-button--primary:disabled {
opacity: 1; opacity: 0.7;
cursor: not-allowed;
filter: grayscale(0.5);
} }
/* Minimal GitHub Button */ /* Clean GitHub Button */
.login-button--github { .login-button--github {
background: transparent; background: #ffffff;
color: #94a3b8; color: #1e293b;
border: 1px dashed rgba(255, 255, 255, 0.2); border: 1px solid #e2e8f0;
margin-top: 0.5rem; margin-top: 0;
padding: 0.9rem; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
} }
.login-button--github:hover { .login-button--github:hover {
background: rgba(255, 255, 255, 0.03); background: #f8fafc;
border-color: rgba(255, 255, 255, 0.5); border-color: #cbd5e1;
border-style: solid; color: #0f172a;
color: #fff; transform: translateY(-1px);
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
} }
/* 6. Refined Footer */ /* 6. Footer & Utils */
.login-divider { .login-divider {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 1.5rem; gap: 1rem;
color: #4b5563; color: #94a3b8;
font-size: 0.75rem; font-size: 0.85rem;
margin: 1rem 0; margin: 0.75rem 0;
font-weight: 500; font-weight: 500;
text-transform: uppercase;
} }
.login-divider::before, .login-divider::before,
@@ -330,41 +291,50 @@
content: ''; content: '';
flex: 1; flex: 1;
height: 1px; height: 1px;
background: #1f2937; background: #e2e8f0;
} }
.login-footer { .login-footer {
text-align: center; text-align: center;
margin-top: 2rem; margin-top: 2rem;
font-size: 0.9rem; padding-top: 1.5rem;
border-top: 1px solid #f1f5f9;
} }
.login-footer p { .login-footer p {
color: #6b7280; color: #64748b;
font-size: 0.95rem;
} }
.login-footer a { .login-footer a {
color: white; color: #6366f1;
font-weight: 500;
text-decoration: none; text-decoration: none;
border-bottom: 1px solid rgba(255, 255, 255, 0.3); font-weight: 600;
padding-bottom: 2px; margin-left: 0.4rem;
transition: border-color 0.2s; transition: color 0.2s;
margin-left: 4px;
} }
.login-footer a:hover { .login-footer a:hover {
border-color: white; color: #4f46e5;
text-decoration: underline;
text-decoration-color: rgba(79, 70, 229, 0.4);
text-underline-offset: 4px;
} }
/* Errors */ /* Error Message */
.login-error { .login-error {
background: rgba(255, 59, 48, 0.1); background: #fef2f2;
color: #ff3b30; border: 1px solid #fecaca;
padding: 0.8rem; color: #ef4444;
border-radius: 12px; padding: 0.75rem 1rem;
font-size: 0.85rem; border-radius: 10px;
font-size: 0.875rem;
text-align: center; text-align: center;
margin-bottom: 0.5rem; box-shadow: 0 2px 4px rgba(239, 68, 68, 0.05);
border: 1px solid rgba(255, 59, 48, 0.2); }
.login-hint {
font-size: 0.8rem;
color: #94a3b8;
margin-top: 0.25rem;
} }