html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    /* 设置背景图路径，需替换为实际图片路径 */
    background-image: url('../static/img/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(246, 246, 246);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
}

.login-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box {
    width: 90%;
    max-width: 400px;
    height: auto;
    /* 让高度自适应内容 */
    /* min-height: 400px; */
    /* 设置最小高度，可根据实际情况调整 */
    background-color: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.login-box h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.input-group {
    margin-bottom: 25px;
    vertical-align: middle;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: #666;
    font-size: 0.9rem;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
    box-sizing: border-box;
    vertical-align: middle;
    font-family: Arial, sans-serif;
}

.input-group input:focus {
    outline: none;
    border-color: #f2855d;
    box-shadow: 0 0 5px rgba(242, 133, 93, 0.5);
}

/* 新增保持登录状态样式 */
.input-group.remember {
    display: flex;
    align-items: center;
    justify-content: left;
    text-align: center;
    line-height: 1.5;
}

.remember input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.remember label {
    display: inline;
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.login-box button {
    width: 100%;
    /* min-height: 2.5rem; */
    box-sizing: border-box;
    padding: 10px;
    background-color: #f2855d;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-box button:hover {
    background-color: #f9c2a0;
}

.message {
    width: 100%;
    height: 1.5rem;
    font-size: 0.9rem;
    color: red;
    text-align: center;
    line-height: 1.5rem;
}

.error-box {
    width: 50%;
    height: auto;
    /* 让高度自适应内容 */
    /* min-height: 400px; */
    /* 设置最小高度，可根据实际情况调整 */
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}