/* 重置浏览器默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.login-container {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 300px;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

form {
    display: flex;
    flex-direction: column;
}

form label {
    margin-bottom: 5px;
    color: #666;
}

form input[type="text"],
form input[type="password"] {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
}

form input[type="text"]:focus,
form input[type="password"]:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 1px #007bff;
}

button {
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

/* 为登录提示信息添加样式 */
.alert {
    margin-top: 20px;
    color: red;
    text-align: center;
}

.alert a {
    color: #007bff;
    text-decoration: none;
}

.alert a:hover {
    text-decoration: underline;
}

.flash-messages {
    margin-bottom: 20px; /* 与页面内容保持一定间距 */
}

.flash-messages div {
    color: red; /* 错误消息通常使用红色 */
    margin: 5px 0; /* 消息之间的间距 */
}