body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
}

header {
    background-color: #333;
    color: #fff;
    padding: 10px 0;
    text-align: center; /* 让标题居中 */
}

main {
    padding: 20px; /* 添加主内容区域的内边距 */
}

.login {
    background-color: #fff;
    padding: 30px; /* 增加内边距以改善外观 */
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 0 auto; /* 水平居中 */
}

h2 {
    margin-bottom: 20px;
    text-align: center; /* 标题居中 */
}

.form-group {
    margin-bottom: 20px; /* 调整表单组件之间的垂直间距 */
}

label {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 10px; /* 调整输入框的内边距 */
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* 让输入框宽度包括边框和内边距 */
}

input[type="text"]#captcha {
    width: calc(100% - 110px); /* 调整验证码输入框的宽度 */
    display: inline-block;
    vertical-align: middle;
}

#captchaDisplay {
    display: inline-block;
    vertical-align: middle;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #e9ecef;
    margin-left: 10px;
    width: 80px;
    text-align: center;
    user-select: none;
}

button[type="submit"] {
    background-color: #007bff;
    color: #fff;
    padding: 12px 20px; /* 调整按钮的内边距 */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box; /* 让按钮宽度包括边框和内边距 */
    transition: background-color 0.3s; /* 添加背景颜色过渡效果 */
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

.login-links {
    text-align: center;
    margin-top: 20px;
}

.login-links a {
    color: #007bff;
    text-decoration: none;
}

.login-links a:hover {
    text-decoration: underline;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
}
