/* 全局样式与背景设置 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 背景图设置：这里使用一个类似的办公场景图，并叠加深蓝色遮罩 */
    background:url('/assets/img/loginbg.jpg');
    background-size: cover;
    background-position: center;
}
main.content{width:420px;padding-top: 60px;}
/* 卡片容器 */
.login-card {
    background: #fff;
    width: 420px; /* 限制最大宽度，模仿图片中的比例 */
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden; /* 确保底部圆角不被子元素溢出遮挡 */
    position: relative;
}

/* 顶部 Tab 切换区域 */
.login-header {
    padding: 30px 30px 10px 30px;
    text-align: center;
}

.nav-tabs {
    border-bottom: none;
    justify-content: center;
    gap: 40px;
}

.nav-link {
    border: none;
    color: #333;
    font-size: 18px;
    font-weight: 500;
    padding: 10px 0;
    background: transparent !important;
    position: relative;
}

.nav-link.active {
    color: #0d6efd; /* Bootstrap Primary Blue */
    font-weight: 600;
}

/* 模拟选中状态的蓝色下划线 */
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background-color: #0d6efd;
    border-radius: 2px;
}

.nav-link:hover {
    color: #0d6efd;
    border: none;
}

/* 表单区域 */
.login-body {
    padding: 20px 40px 30px 40px;
}

/* 自定义输入框样式 */
.custom-input-group {
    background-color: #ebf2f8; /* 图片中淡蓝灰色的背景 */
    border-radius: 8px;
    padding: 5px 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    position: relative;
}

.custom-input-group .input-icon {
    color: #0d6efd;
    width: 30px;
    text-align: center;
    font-size: 14px;
}

.custom-input-group input {
    border: none;
    background: transparent;
    box-shadow: none !important; /* 去除 Bootstrap 聚焦蓝框 */
    font-size: 14px;
    color: #666;
    padding: 10px;
}

.custom-input-group input::placeholder {
    color: #999;
}
.custom-input-group.has-error{
    border:1px solid #f75444;
}
.custom-input-group .msg-box{
    position: absolute;
    top: 40px;
    left: -10px;
}


/* 保持会话复选框 */
.form-check-input {
    width: 16px;
    height: 16px;
    margin-top: 0.25em;
}
.form-check-label {
    font-size: 13px;
    color: #666;
    margin-left: 5px;
}
.check-container {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}
.check-container i {
    color: #0d6efd;
    margin-right: 5px;
}

/* 登录按钮 */
.btn-submit {
    width: 100%;
    background-color: #0d6efd;
    border: none;
    padding: 12px;
    border-radius: 25px; /* 大圆角按钮 */
    font-size: 16px;
    letter-spacing: 2px;
    transition: all 0.3s;
}

.btn-submit:hover {
    background-color: #0b5ed7;
}

/* 底部链接区域 (灰色背景) */
.login-footer {
    background-color: #ecf2f8; /* 浅灰色底 */
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #888;
}

.login-footer a {
    text-decoration: none;
    color: #666;
    transition: color 0.2s;
}

.login-footer a span {
    color: #0d6efd; /* 蓝色高亮文字 */
    margin-left: 2px;
}

.login-footer a:hover {
    color: #333;
}
.wrapper{height: auto !important;min-height:auto !important;background:unset !important;}
.content-wrapper{ margin-left:0; background-color:unset;}
.btn-reg{border-radius: 25px;}

/* 移动端适配微调 */
@media (max-width: 576px) {
    .login-card {
        width: 90%;
        margin: 0 auto;
    }
    .login-body {
        padding: 20px 25px;
    }
    .login-footer {
        padding: 15px 25px;
        font-size: 12px;
    }
}