/* ==================== 登录页专属样式 ==================== */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    position: relative;
}

/* 背景动画粒子 */
body::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: particle 20s linear infinite;
}

@keyframes particle {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-50px, -50px); }
}

/* 登录容器 */
.login-container {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 50px 40px;
    width: 420px;
    max-width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
    -webkit-animation: slideUp 0.6s ease-out;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo {
    font-size: 56px;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.login-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
}

/* 表单输入框 */
.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    pointer-events: none;
    z-index: 2;
}

.form-input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-input::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-input::-moz-placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-input:-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* 登录按钮 */
.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    color: #667eea;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

/* 错误提示 */
.error-message {
    background: rgba(244, 67, 54, 0.2);
    border-left: 4px solid #f44336;
    padding: 12px 15px;
    border-radius: 8px;
    color: #ffffff;
    margin-bottom: 20px;
    display: none;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.error-message.show {
    display: block;
}

/* 页脚提示 */
.login-footer {
    text-align: center;
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* 响应式 */
@media (max-width: 480px) {
    .login-container {
        width: 90%;
        padding: 40px 25px;
    }
    
    .login-title {
        font-size: 26px;
    }
}
