html,body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    min-height: 600px; /* 设置最小高度，防止在小屏幕上内容被压缩 */
    overflow-x: hidden; /* 防止水平滚动 */
}

.bg-100 {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: #f5f5f5; /* 底色 */
    margin: 0px;
    background-attachment: fixed;
    /* 添加渐变背景 */
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
    /* 添加背景图案 */
    background-image: 
        linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%),
        repeating-linear-gradient(45deg, rgba(90, 120, 190, 0.03) 0px, rgba(90, 120, 190, 0.03) 1px, transparent 1px, transparent 10px),
        repeating-linear-gradient(135deg, rgba(90, 120, 190, 0.03) 0px, rgba(90, 120, 190, 0.03) 1px, transparent 1px, transparent 10px);
}

/* 添加页面顶部装饰条 */
/* .bg-100:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #1a3c64, #5d9de6);
    z-index: 1000;
} */
.container{
    width: 380px; /* 增加宽度从320px到380px */
    min-height: 400px; /* 设置最小高度 */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* 使用transform居中 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform-origin: center center; /* 确保变换原点在中心 */
}
.fl{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 380px; /* 增加最大宽度从320px到380px */
    margin-top: 50px; /* 向下移动20px */
}
/* 统一标签和输入框样式 */
.main {
    margin-bottom: 15px; /* 减小底部间距 */
    width: 100%;
}

/* 标签样式统一 */
.title {
    display: block;
    margin-bottom: 6px; /* 减小标签和输入框之间的间距 */
    font-size: 14px;
    color: #333;
    font-weight: 700; /* 修改：从500改为700，使标签加粗 */
    text-align: left;
}

/* 输入框容器样式 */
.input-container {
    position: relative;
    width: 100%;
}

/* 统一所有输入框样式 */
.text {
    box-sizing: border-box;
    width: 100%;
    height: 36px; /* 减小输入框高度 */
    line-height: 36px; /* 减小行高 */
    padding: 0 15px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.text:focus {
    border-color: #409eff;
    outline: none;
}

/* 登录按钮样式优化 */
.login {
    width: 100%;
    height: 36px;
    background: linear-gradient(135deg, #1a3c64, #5d9de6); /* 修改：与整体配色方案一致的蓝色渐变 */
    border: none;
    border-radius: 18px; /* 圆角更大 */
    color: white;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 2px; /* 字间距 */
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.login:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.login:hover {
    background: linear-gradient(135deg, #15325a, #4a89d1); /* 修改：悬停时颜色加深 */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.login:hover:before {
    left: 100%;
}

.login:active {
    transform: translateY(1px);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
}

.change{
    display: block;
    width: 65%;
    font-size: 12px;
    color: #2CAEC8;
    text-align: left;
    text-decoration: none;
    margin-top: 20px;
}
button:hover{
    cursor: pointer;
}
button:active{
    background-color: #0F3B56;
}
a:active{
    color: #0F3B56;
}
.logo{
    position: absolute;
    bottom: 2%;
    right: 2%;
}

/* 移除固定宽度的媒体查询，改为响应式设计 */
@media screen and (max-width: 1920px) {
    html, body {
        width: 100%;
        overflow-x: hidden;
    }
}

@media screen and (max-width: 1440px) {
    html, body {
        width: 100%;
        overflow-x: hidden;
    }
}

@media screen and (max-width: 1366px) {
    html, body {
        width: 100%;
        overflow-x: hidden;
    }
}

/* 添加更多的响应式断点 */
@media screen and (max-width: 768px) {
    .container {
        width: 90%;
        margin-left: 0;
        transform: translate(-50%, -50%);
    }
}

/* 修复验证码输入框对齐问题 */
#captcha-field {
    width: 100%;
}

/* 验证码容器样式 - 垂直布局 */
.captcha-container-column {
    display: flex;
    flex-direction: column; /* 改为垂直布局 */
    width: 100%;
    gap: 8px; /* 减小输入框和图片之间的间距 */
}

/* 验证码输入框容器 */
.captcha-input-container {
    width: 100%;
    margin-bottom: 8px; /* 减小底部间距 */
}

/* 验证码输入框样式 */
.captcha-input {
    width: 100% !important;
    box-sizing: border-box !important;
    height: 36px !important; /* 减小高度 */
    line-height: 36px !important; /* 减小行高 */
    margin: 0 !important;
    background-color: rgba(255, 255, 255, 0.5); /* 添加：半透明背景 */
}

/* 验证码图片容器 */
.captcha-image-container {
    display: flex;
    justify-content: center; /* 居中对齐 */
    width: 100%; /* 占满整行 */
}

/* 验证码图片样式 */
.captcha-image {
    height: 36px; /* 减小高度 */
    width: 180px;
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.5); /* 修改：与输入框一致的边框 */
    background-color: rgba(255, 255, 255, 0.7); /* 添加：轻微半透明背景 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 添加：轻微阴影 */
}

/* 验证码图片悬停效果 */
.captcha-image:hover {
    opacity: 0.9;
    transform: scale(1.02); /* 添加：轻微放大效果 */
    transition: all 0.2s ease; /* 添加：平滑过渡 */
}

/* 确保验证码字段与其他字段保持一致的样式 */
#captcha-field {
    margin-left: 0;
    padding-left: 0;
}

/* 版权信息响应式样式 */
.copyright-info {
    position: fixed;
    bottom: 5px; /* 修改：调整到更靠近页面底部 */
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    text-align: center;
    color: white;
    font-size: 14px;
    padding: 8px 15px;
    box-sizing: border-box;
    z-index: 99999 !important; /* 提高z-index确保显示在最上层 */
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.copyright-info span, .copyright-info a {
    display: inline-block;
    margin: 0 5px;
    color: white;
    font-size: 14px;
    font-weight: bold; /* 加粗字体 */
    white-space: nowrap; /* 防止换行 */
}

.copyright-info .spacer {
    flex-grow: 1; /* 占据剩余空间，将下载链接推到右边 */
}

.copyright-info .app-download {
    margin-right: 50px; /* 右边距 */
    font-size: 18px; /* 更大的字体 */
}

/* 防止在小屏幕上溢出 */
@media (max-width: 1366px) {
    .copyright-info {
        width: auto; /* 修改：不再固定左边距，使用auto宽度 */
        padding: 10px 15px; /* 调整内边距 */
    }
}

/* 防止在更小屏幕上溢出 */
@media (max-width: 768px) {
    .copyright-info {
        flex-wrap: wrap; /* 允许在小屏幕上换行 */
        padding: 10px 15px; /* 调整内边距 */
        width: 90%; /* 修改：从100%改为90%，两边留一点空间 */
        max-width: 450px; /* 添加：设置最大宽度 */
    }
    
    .copyright-info .spacer {
        display: none; /* 在小屏幕上不显示间隔 */
    }
    
    .copyright-info .app-download {
        margin: 10px auto 0; /* 在小屏幕上居中显示 */
        width: 100%; /* 占据整行 */
    }
}

/* 错误和成功消息样式 */
.d-sm-flex.justify-content-between {
    position: relative;
    width: 100%;
    max-width: 380px; /* 增加最大宽度从320px到380px */
    margin-bottom: 10px;
    z-index: 100;
}

/* 确保错误和成功消息正确显示 */
.alert {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 0;
    font-size: 14px;
    padding: 8px 10px;
    border-radius: 4px;
    text-align: center;
}

/* 防止缩放影响 */
@media (min-width: 320px) and (max-width: 1920px) {
    .container {
        width: 380px !important; /* 增加宽度从320px到380px */
        transform: translate(-50%, -50%) !important;
    }
    
    /* 确保登录表单容器居中 */
    .login-form-container {
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
    
    .fl {
        width: 100% !important;
        max-width: 380px !important; /* 增加最大宽度从320px到380px */
    }
    
    .main, .input-container, .text {
        width: 100% !important;
    }
}

/* 确保在极小屏幕上也能正常显示 */
@media (max-width: 320px) {
    .container {
        margin-left: 0 !important;
    }
}

/* 登录按钮下方的下载按钮容器 */
.form-download-container {
    width: 100%;
    text-align: center;
    margin-top: 20px;
    }

/* 登录按钮下方的下载按钮 */
.form-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    background: linear-gradient(135deg, #1a3c64, #5d9de6); /* 修改：与登录按钮一致的蓝色渐变 */
    color: white;
    border-radius: 18px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3); /* 添加：轻微边框 */
}

.form-download-btn:hover {
    background: linear-gradient(135deg, #15325a, #4a89d1); /* 修改：与登录按钮一致的悬停效果 */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    color: white;
    text-decoration: none;
}

.form-download-btn .fa {
    margin-right: 8px;
    font-size: 16px;
    animation: pulse-icon 1.5s infinite;
}

@keyframes pulse-icon {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* 登录按钮图标样式 */
.login .fa {
    margin-right: 8px;
    font-size: 18px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

/* 登录按钮脉冲效果 */
@keyframes pulse-button {
    0% {
        box-shadow: 0 0 0 0 rgba(26, 60, 100, 0.7); /* 修改：与按钮颜色一致 */
    }
    70% {
        box-shadow: 0 0 0 10px rgba(26, 60, 100, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(26, 60, 100, 0);
    }
}

/* 添加脉冲效果到登录按钮 */
.login {
    animation: pulse-button 2s infinite;
    }

/* 登录表单背景框 */
.login-form-container {
    position: fixed !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 420px; /* 增加宽度从380px到420px */
    height: 560px;
    background-color: rgba(255, 255, 255, 0.2); /* 修改：更高透明度的背景 */
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(26, 60, 100, 0.1), 0 5px 15px rgba(0, 0, 0, 0.05); /* 修改：更轻微的阴影 */
    padding: 30px;
    z-index: 100;
    border: 1px solid rgba(255, 255, 255, 0.3); /* 修改：更明显的白色边框 */
    backdrop-filter: blur(15px); /* 增强：更强的背景模糊效果 */
    -webkit-backdrop-filter: blur(15px); /* 兼容Safari */
}

/* 调整表单内部布局 */
.fl {
    margin-top: 0 !important;
    width: 100%;
}

/* 标签样式统一 - 增强对比度以适应透明背景 */
.title {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #1a3c64; /* 修改：更深的颜色增加对比度 */
    font-weight: 700;
    text-align: left;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5); /* 添加：文字阴影增加可读性 */
}

/* 统一所有输入框样式 - 适应透明背景 */
.text {
    box-sizing: border-box;
    width: 100%;
    height: 36px;
    line-height: 36px;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.5); /* 修改：更明显的边框 */
    background-color: rgba(255, 255, 255, 0.5); /* 添加：半透明背景 */
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s, background-color 0.2s;
    color: #1a3c64; /* 修改：更深的文字颜色 */
}

.text:focus {
    border-color: #5d9de6;
    background-color: rgba(255, 255, 255, 0.8); /* 修改：聚焦时背景更不透明 */
    outline: none;
    box-shadow: 0 0 0 2px rgba(93, 157, 230, 0.3); /* 添加：聚焦时的光晕效果 */
}

/* 登录表单标题 */
.login-form-title {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 10px; /* 添加顶部边距 */
    padding-left: 60px; /* 为左侧logo腾出空间 */
    color: #1a3c64;
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 3px;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
    font-family: "Arial", sans-serif;
    text-transform: uppercase;
}

/* 移除标题下方装饰线样式 */
/* .login-form-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #1a3c64, #5d9de6);
    border-radius: 3px;
} */

/* 调整错误信息位置 */
.d-sm-flex.justify-content-between {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .login-form-container {
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 420px; /* 增加最大宽度从380px到420px */
    }
}

/* 移除艺术字"好摩托"样式 */
/* .art-text-container {
    position: fixed;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
}

.art-text {
    font-size: 120px;
    font-weight: bold;
    color: #5d9de6;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    font-family: "SimHei", "黑体", "Microsoft YaHei", "微软雅黑", sans-serif;
    letter-spacing: 8px;
    transform: none;
    animation: none;
    opacity: 0.8;
} */

/* 移除公司logo样式 */
/* .company-logo-container {
    position: fixed;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.select-text {
    font-size: 120px;
    font-weight: bold;
    color: #5d9de6;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    font-family: "SimHei", "黑体", "Microsoft YaHei", "微软雅黑", sans-serif;
    opacity: 0.8;
    margin-bottom: 20px;
    text-align: center;
}

.logo-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.company-logo {
    max-width: 240px;
    height: auto;
    opacity: 0.9;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.15);
    border-radius: 5px;
    transition: all 0.3s ease;
} */

/* 移除原有的浮动动画 */
/*
@keyframes float {
    0% {
        transform: rotate(-5deg) translateY(0px);
    }
    50% {
        transform: rotate(-5deg) translateY(-10px);
    }
    100% {
        transform: rotate(-5deg) translateY(0px);
    }
}
*/

/* 响应式调整 - 移除与艺术字和logo相关的部分 */
@media screen and (max-width: 1366px) {
    /* .art-text-container {
        left: 3%;
    }
    
    .art-text {
        font-size: 100px;
    }
    
    .company-logo-container {
        right: 3%;
    }
    
    .company-logo {
        max-width: 200px;
    }
    
    .select-text {
        font-size: 100px;
        margin-bottom: 15px;
    } */
}

@media screen and (max-width: 768px) {
    /* .art-text-container, .company-logo-container {
        display: none;
    } */
}

/* 版权信息固定到页面底部 */
.copyright-info {
    position: fixed !important;
    bottom: 5px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 15px;
    background-color: rgba(0, 0, 0, 0.2) !important; /* 修改：更透明的背景 */
    z-index: 99999 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* 修改：更轻微的阴影 */
    border: 1px solid rgba(255, 255, 255, 0.3); /* 修改：添加白色半透明边框 */
    flex-wrap: nowrap;
    border-radius: 5px;
    backdrop-filter: blur(10px); /* 添加：背景模糊效果 */
    -webkit-backdrop-filter: blur(10px); /* 兼容Safari */
}

.copyright-info span, .copyright-info a {
    color: rgba(255, 255, 255, 0.9) !important; /* 修改：稍微透明的白色 */
    font-weight: bold;
    margin: 0 5px;
    white-space: nowrap;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); /* 修改：更轻微的阴影 */
    transition: all 0.3s ease; /* 添加：过渡效果 */
}

.copyright-info a:hover {
    color: #ffffff !important; /* 添加：悬停时完全不透明 */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* 添加：悬停时增强阴影 */
}

/* 调整下载按钮位置 */
.app-download-container {
    position: fixed;
    bottom: 80px;
    right: 50px;
    z-index: 50;
}

/* 头部容器样式，使logo和标题在同一行 */
.header-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

/* 登录框内logo样式 */
.login-logo-container {
    flex-shrink: 0;
    margin-right: 15px;
}

.login-logo {
    width: 100px; /* 调整为更合适的大小 */
    height: auto;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.login-logo:hover {
    transform: scale(1.05);
}

/* 标题容器样式 */
.title-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 系统代码样式 */
.system-code {
    font-size: 24px;
    font-weight: bold;
    color: #1a3c64;
    margin: 0 0 5px 0;
    padding: 0;
    letter-spacing: 2px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    font-family: "Arial", sans-serif;
}

/* 调整标题位置和样式 */
.login-form-title {
    width: 100%;
    text-align: center; /* 居中对齐 */
    margin: 0; /* 移除边距 */
    padding: 0; /* 移除内边距 */
    color: #1a3c64;
    font-size: 18px; /* 稍微调小一点，因为现在有两行 */
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
    line-height: 1.4;
}
