/* 登录弹窗 Modal 遮罩层 */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.login-modal.active {
    display: flex;
}

/* 登录表单容器 */
.login-form {
    background: linear-gradient(135deg, #fdf6e3 0%, #f5e6c8 100%);
    border: 2px solid #d4a017;
    border-radius: 12px;
    padding: 30px;
    width: 320px;
    box-shadow: 0 4px 20px rgba(212, 160, 23, 0.3);
    position: relative;
}

/* 标题 */
.login-form h2 {
    color: #8b6914;
    text-align: center;
    margin-bottom: 20px;
    font-size: 22px;
}

/* 输入框组 */
.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    color: #8b6914;
    font-size: 14px;
    margin-bottom: 5px;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #d4a017;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fffef8;
}

.input-group input:focus {
    outline: none;
    border-color: #b8860b;
    box-shadow: 0 0 5px rgba(212, 160, 23, 0.3);
}

/* 提交按钮 */
.submit-btn {
    width: 100%;
    background: #d4a017;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #b8860b;
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 关闭按钮 */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #8b6914;
    cursor: pointer;
}

/* 提示信息 */
.tip {
    color: #c0392b;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.tip.show {
    display: block;
}

/* 加载动画 */
.loading {
    text-align: center;
    color: #8b6914;
    font-size: 14px;
    padding: 10px;
}

/* 表单底部链接 */
.form-footer {
    text-align: center;
    margin-top: 15px;
}

.form-footer a {
    color: #d4a017;
    text-decoration: none;
    font-size: 14px;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* 验证码图片 */
.captcha-group img {
    height: 36px;
    border-radius: 4px;
}
