* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, sans-serif;
    overflow: hidden;
    background: #05050a;
    color: #fff;
    min-height: 100vh;
}

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.login-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.login-box {
    background: rgba(12, 12, 22, 0.7);
    backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 28px;
    padding: 55px 50px;
    width: 420px;
    box-shadow:
        0 0 80px rgba(255, 36, 66, 0.06),
        0 0 160px rgba(168, 85, 247, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    animation: float 8s ease-in-out infinite;
    position: relative;
}

.login-box::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 30px;
    background: linear-gradient(135deg,
        rgba(255, 36, 66, 0.25),
        transparent 40%,
        transparent 60%,
        rgba(168, 85, 247, 0.25));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.6s;
}

.login-box:hover::before {
    opacity: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.login-box h2 {
    text-align: center;
    margin-bottom: 45px;
    font-weight: 200;
    letter-spacing: 10px;
    text-transform: uppercase;
    font-size: 1.1em;
    background: linear-gradient(135deg, #ff2442, #ff6b81, #a855f7, #ff2442);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleShimmer 4s ease infinite;
}

@keyframes titleShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.input-group {
    position: relative;
    margin-bottom: 38px;
}

.input-group input {
    width: 100%;
    padding: 18px 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: #fff;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.input-group input:focus {
    outline: none;
    border-color: rgba(255, 36, 66, 0.5);
    box-shadow:
        0 0 0 4px rgba(255, 36, 66, 0.08),
        0 0 30px rgba(255, 36, 66, 0.15);
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.02);
}

.input-group label {
    position: absolute;
    top: 18px;
    left: 22px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.input-group input:focus + label,
.input-group input:valid + label {
    top: -26px;
    left: 12px;
    font-size: 11px;
    letter-spacing: 3px;
    color: #ff6b81;
    text-shadow: 0 0 12px rgba(255, 36, 66, 0.4);
}

button {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg,
        #ff2442,
        #ff6b81,
        #a855f7);
    background-size: 200% 200%;
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    letter-spacing: 5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    animation: gradientShift 4s ease infinite;
    box-shadow: 0 4px 25px rgba(255, 36, 66, 0.3);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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.6s;
}

button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 12px 40px rgba(255, 36, 66, 0.4),
        0 0 80px rgba(168, 85, 247, 0.15);
}

button:hover::before {
    left: 100%;
}

button:active {
    transform: translateY(-1px) scale(0.98);
}

.login-error {
    color: #ff6b81;
    font-size: 0.85em;
    text-align: center;
    min-height: 1.2em;
    margin-bottom: 16px;
    transition: opacity 0.3s;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.15); }

.showcase-link { display: block; margin-top: 24px; color: #c3b4ff; text-align: center; text-decoration: none; font-size: 14px; }
.showcase-link:hover { color: #fff; text-decoration: underline; }
