/* 登录页面样式 - 使用指定颜色主题 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #2f1f0e; /* 背景色 */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    padding: 30px;
    width: 400px;
}

.login-container h2 {
    text-align: center;
    color: #2f1f0e; /* 背景色 */
    margin-bottom: 20px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.login-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.login-form input:focus {
    outline: none;
    border-color: #f4b940; /* 主题色 */
    box-shadow: 0 0 0 2px rgba(244, 185, 64, 0.1);
}

.login-form button {
    width: 100%;
    padding: 12px;
    background-color: #f4b940; /* 主题色 */
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-form button:hover {
    background-color: #e89629; /* 辅助色 */
}

.error-message {
    background-color: #fff2f2;
    color: #d9534f;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}

.footer {
    text-align: center;
    margin-top: 20px;
    color: #999;
    font-size: 14px;
}

/* 验证码样式 */
.form-check-group {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
}

.form-check-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 14px;
}

.form-check-group input[type="checkbox"] {
    margin: 0;
    width: auto;
}

/* 登录结果弹窗样式 */
#loginResultModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

#loginResultModal > div {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    width: 400px;
    text-align: center;
}

#modalIcon {
    font-size: 48px;
    margin-bottom: 20px;
}

#modalTitle {
    margin-bottom: 15px;
}

#modalMessage {
    margin-bottom: 20px;
}

#modalOkBtn {
    padding: 10px 20px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}