* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}
.p1{
    color:#000;
    text-shadow: -1px 0 #fff, 0 1px #fff, 1px 0 #fff, 0 -1px #fff;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
background : url(/images/backImg.jpg) no-repeat center;
    overflow: hidden;
    position: relative;
    background-size: cover;
    height: 100vh;
}

/* 动态粒子背景 */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: float 15s infinite linear;
}

/* 登录卡片 */
.login-card {
    width: 90%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 35px 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    transition: transform 0.3s ease;
    z-index: 10;
}

.login-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 25px;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.logo i {
    font-size: 36px;
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

h2 {
    color: #2d3436;
    font-size: 28px;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c5ce7;
    font-size: 18px;
    z-index: 2;
}

input {
    width: 100%;
    padding: 15px 15px 15px 55px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    color: #2d3436;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    border: 2px solid #dfe6e9;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

input::placeholder {
    color: #b2bec3;
}

input:focus {
    border-color: #6c5ce7;
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.3);
}

.captcha-container {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.captcha-input {
    flex: 1;
    padding: 15px;
    border: 2px solid #dfe6e9;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.captcha-input:focus {
    border-color: #6c5ce7;
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.3);
}

.captcha-display {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 50px;

    border-radius: 10px;
    color: white;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 3px;
    cursor: pointer;
    user-select: none;
    /*background: linear-gradient(45deg, #6c5ce7, #00cec9);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);*/
    transition: transform 0.3s ease;
}

.captcha-display:hover {
    transform: scale(1.05);
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    color: #636e72;
    font-size: 14px;
}

.remember {
    display: flex;
    align-items: center;
}

.remember input {
    width: auto;
    margin-right: 8px;
}

.forgot-password {
    color: #6c5ce7;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.forgot-password:hover {
    color: #ff6b6b;
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(to right, #6c5ce7, #00cec9);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.4);
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    background: linear-gradient(to right, #5d4bd1, #00b5ad);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(108, 92, 231, 0.5);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login::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: 0.5s;
}

.btn-login:hover::before {
    left: 100%;
}

.footer {
    margin-top: 25px;
    color: #636e72;
    font-size: 14px;
}

.footer a {
    color: #6c5ce7;
    text-decoration: none;
    font-weight: 600;
}

/* 动画定义 */
@keyframes float {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(-1000px) rotate(720deg); opacity: 0; }
}

/* 响应式设计 */
@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }

    .captcha-container {
        flex-direction: column;
    }

    .captcha-display {
        width: 100%;
    }

    .options {
        flex-direction: column;
        align-items: flex-start;
    }

    .forgot-password {
        margin-top: 10px;
    }
}