body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #282c34;
    overflow: hidden;
}

.snowflakes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.snowflake {
    position: absolute;
    top: -10%;
    color: white;
    font-size: 1em;
    opacity: 0.8;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateX(0);
        top: -10%;
    }
    100% {
        transform: translateX(20px);
        top: 100%;
    }
}

/* 使雪花飘落更具随机性 */
.snowflake:nth-of-type(1) { left: 10%; animation-duration: 3s; }
.snowflake:nth-of-type(2) { left: 20%; animation-duration: 5s; }
.snowflake:nth-of-type(3) { left: 30%; animation-duration: 6s; }
.snowflake:nth-of-type(4) { left: 40%; animation-duration: 4s; }
.snowflake:nth-of-type(5) { left: 50%; animation-duration: 7s; }
.snowflake:nth-of-type(6) { left: 60%; animation-duration: 5s; }
.snowflake:nth-of-type(7) { left: 70%; animation-duration: 3.5s; }
.snowflake:nth-of-type(8) { left: 80%; animation-duration: 6.5s; }
.snowflake:nth-of-type(9) { left: 90%; animation-duration: 7s; }
.snowflake:nth-of-type(10) { left: 15%; animation-duration: 4.5s; }

.login-container {
    position: relative;
    z-index: 2;
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #333;
}

input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* 确保padding不超出宽度 */
}

button {
    padding: 10px;
    width: 100%;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

.message {
    text-align: center;
    margin-top: 10px;
    color: red;
}