body {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    overflow: hidden;
    position: relative;
    height: 100vh;
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
}

/* 动态背景效果 */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 150, 255, 0.15) 0%, transparent 40%),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="none" stroke="rgba(0,255,255,0.03)" stroke-width="1" x="0" y="0" width="100" height="100"/></svg>');
    background-size: 100px 100px, 100px 100px, auto;
    z-index: -1;
}

/* 动态光效 */
.light-pulse {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(20px);
    animation: pulse 4s infinite alternate;
    z-index: -1;
}

.light-pulse:nth-child(1) {
    top: -150px;
    right: -150px;
    animation-delay: 0s;
}

.light-pulse:nth-child(2) {
    bottom: -100px;
    left: -100px;
    background: radial-gradient(circle, rgba(100, 0, 255, 0.3) 0%, transparent 70%);
    animation-delay: 1s;
}

/* 登录表单样式 */
.login-form {
    background: rgba(10, 15, 30, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 255, 0.2);
    width: 350px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.login-form::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00cfde, #8800ff, #00cfde, #8800ff);
    background-size: 400% 400%;
    z-index: -1;
    border-radius: 17px;
    animation: gradientBorder 3s ease infinite;
}

.login-title {
    color: #00f3ff;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.7);
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
}

.register-title {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.7);
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
}

.form-label {
    color: #e0f7fa;
    font-weight: 500;
}

.form-control {
    background: rgba(20, 25, 50, 0.5);
    border: 1px solid rgba(0, 255, 255, 0.4);
    color: #fff;
    border-radius: 8px;
    padding: 10px 15px;
    transition: all 0.3s;
}

.form-control:focus {
    background: rgba(30, 35, 60, 0.7);
    border-color: #00f3ff;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
    color: #fff;
}

.btn-primary {
    background: linear-gradient(45deg, #00c6ff, #0072ff);
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #00dbde, #0072ff);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 114, 255, 0.4);
}

/* 动画效果 */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}