body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
    overflow-y: auto;
    /* 页面可滚动，滚动条在屏幕右边 */
    box-sizing: border-box;
}

.login-container,
.form-container {
    width: 300px;
    padding: 20px;
    max-height: 90vh;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

h2 {
    margin-bottom: 20px;
    text-align: center;
}

label {
    display: block;
    margin-top: 10px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    box-sizing: border-box;
}

button {
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

/* 针对较小屏幕的调整 */
@media (max-height: 600px) {
    .form-container {
        max-height: 80vh;
        /* 进一步限制高度 */
    }
}

#error-message {
    color: red;
    margin-top: 10px;
}