* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 添加背景图片 */
    background-image: url('images/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.container {
    display: flex;
    width: 100%;
    min-height: 100vh;
    align-items: center;
}

.login-form {
    background-color: rgba(255, 255, 255, 0.5); /* 添加半透明背景使表单更易读 */
    padding: 30px;
    width: 350px;
    margin-left: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-right: 50px;
    backdrop-filter: blur(10px); /* 添加模糊效果 */
}

#loginForm h2 {
    margin-bottom: 25px;
    color: #333;
    text-align: center;
    font-size: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: rgba(255, 255, 255, 0.8);
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.login-button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.login-button:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .container {
        justify-content: center;
        padding: 20px;
    }

    .login-form {
        margin: 0;
        width: 100%;
        max-width: 350px;
    }

    body {
        background-image: url('images/background.jpg');
        background-size: cover;
        background-position: center;
    }
}
