/* 全局样式，设置背景图，适应所有分辨率 */
body {
    font-family: Arial, sans-serif;
    background: url('background.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

/* 顶部导航链接（右上角） */
.top-links {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 14px;
}

.top-links a {
    margin-left: 15px;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.top-links a:hover {
    text-decoration: underline;
}

/* 登录容器样式 */
.login-container {
    background-color: rgba(255, 255, 255, 0.9); /* 半透明背景增强可读性 */
    padding: 30px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    border-radius: 10px;
    width: 400px;
    text-align: center;
}

/* 登录页面标题 */
.system-name {
    font-size: 28px;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.system-title {
    font-size: 20px;
    font-weight: normal;
    color: #333;
    margin-bottom: 20px;
}

/* 输入框样式 */
input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
}

/* 登录按钮样式 */
button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #0056b3;
}

/* 错误消息 */
#errorMsg {
    color: red;
    display: none;
    margin-top: 15px;
    font-size: 14px;
}

/* 页脚样式 */
footer {
    margin-top: 20px;
    font-size: 12px;
    color: #666;
    text-align: center;
}

/* 错误页面样式 */
.error-container {
    text-align: center;
    margin-top: 15%;
    font-family: Arial, sans-serif;
    color: #333;
}

.error-container h1 {
    font-size: 100px;
    color: #e74c3c;
    margin-bottom: 10px;
}

.error-container h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #555;
}

.error-container p {
    font-size: 18px;
    margin-bottom: 30px;
}

.error-container a {
    text-decoration: none;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
}

.error-container a:hover {
    background-color: #0056b3;
}

/* 响应式设计，适配小屏幕设备 */
@media (max-width: 768px) {
    .login-container {
        width: 90%;
    }

    .top-links {
        position: static;
        text-align: center;
        margin-top: 10px;
    }
}
