/* 全局字体统一：优先微软雅黑/苹方，兼容其他字体 */
body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased; /* 抗锯齿，提升字体显示效果 */
    -moz-osx-font-smoothing: grayscale;
}
/* 登录页面自定义样式 */
.login-page {
    background-color: #f5f7fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.form-holder {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* 左侧背景装饰 + 渐变 */
.info {
    background: linear-gradient(135deg, #796AEE 0%, #503ce9 100%) !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 60px 40px !important;
}

.info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
    z-index: 1;
}

.info .content {
    position: relative;
    z-index: 2;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.logo small {
    font-size: 2.2rem;
    font-weight: 600;
    color: #ffffff;
    display: block;
    letter-spacing: 0.5px;
}

.form {
    padding: 60px 40px !important;
}

.form-group {
    margin-bottom: 25px;
}

.input-material {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.input-material:focus {
    border-color: #796AEE;
    box-shadow: 0 0 0 3px rgba(121, 106, 238, 0.1);
    outline: none;
}

.btn-primary {
    background-color: #796AEE;
    border-color: #796AEE;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* 验证码布局 - 确保同行显示 */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.captcha-input {
    flex: 1; /* 输入框自适应剩余宽度 */
    min-width: 0; /* 解决flex子元素最小宽度限制 */
}

.captcha-image-container {
    width: 120px; /* 验证码图片固定宽度 */
    flex-shrink: 0;/* 防止图片被压缩 */
}

.captcha-image {
    width: 100%;
    height: auto;
    cursor: pointer;
    border-radius: 4px;
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
    animation: fadeIn 0.3s ease;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .info {
        padding: 40px 20px !important;
        text-align: center;
    }
    .form {
        padding: 40px 20px !important;
    }
    .captcha-container {
        flex-direction: row;
        gap: 8px;
    }
    .captcha-image-container {
        width: 100px;
    }
}