/* 重置/覆盖原有样式，确保登录背景全屏 + 半透明表单 */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* 避免滚动条破坏全屏背景 */
}

.main-content.login-content {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* 表单靠右，与原设计一致 */
    padding: 0 15%;
    box-sizing: border-box;
}

/* 背景图：铺满整个屏幕，不重复，居中 */
.login-bg {
    background: url(../img/login-background.png) center center / cover no-repeat;
    position: fixed;  /* 脱离文档流，覆盖整个视口 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* 移除原来的固定高度/宽度限制 */
}

/* 登录框：半透明玻璃效果，绝对定位在右侧 */
.login-box {
    position: relative;   /* 相对于 .main-content 定位，不再用 absolute 避免覆盖问题 */
    z-index: 2;
    margin: 0;
    padding-bottom: 30px;
    background: rgba(255, 255, 255, 0.72);  /* 半透明背景 */
    backdrop-filter: blur(4px);             /* 毛玻璃效果，提升现代感 */
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    width: 360px;          /* 稍微加宽，更舒适 */
    max-width: 90%;
    transition: all 0.2s;
    right: auto;
    top: auto;
    margin-right: 0;
}

/* 响应式：小屏幕居中显示 */
@media (max-width: 768px) {
    .main-content.login-content {
        justify-content: center;
        padding: 0 20px;
    }
    .login-box {
        width: 100%;
        max-width: 380px;
        margin: 0 auto;
    }
}

.login-form {
    width: 100%;
    float: none;
    padding: 0 26px;
}

.login-form .login-title {
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 500;
    color: #1e2a3a;
    letter-spacing: 2px;
    text-align: center;
}

/* 输入框样式微调，适应半透明背景 */
.login-form .form-control {
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(0,0,0,0.08);
    transition: 0.2s;
}
.login-form .form-control:focus {
    background: rgba(255,255,255,0.9);
    border-color: #3977de;
    box-shadow: 0 0 0 3px rgba(57,119,222,0.15);
}

.login-form .has-feedback .form-control {
    height: 44px;
    padding-left: 42px;
}
.login-form .form-control-feedback {
    width: 44px;
    height: 44px;
    line-height: 44px;
    color: #5a6a7a;
}
.vcode-icon {
    font-weight: 700;
    font-size: 16px;
}

.vcode-content {
    width: 60%;
    display: inline-block;
}
.vcode-input {
    display: inline-block;
    vertical-align: middle;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.vcode-img {
    width: 40%;
    height: 44px;
    position: absolute;
    right: 0;
    top: 0;
    border-radius: 0 4px 4px 0;
    border: 1px solid rgba(0,0,0,0.08);
    border-left: none;
    background: rgba(255,255,255,0.5);
    object-fit: cover;
    cursor: pointer;
}
.vcode {
    position: relative;
}

.checkbox icheck label {
    padding-left: 0;
}
.btn-primary {
    background-color: #3977de;
    border-color: #2a5fa8;
    font-weight: 500;
    letter-spacing: 1px;
    transition: 0.2s;
}
.btn-primary:hover {
    background-color: #2a5fa8;
    border-color: #1d4880;
}

/* 保持原header不干扰，但为了全屏我们把header隐藏 (登录页通常不需要导航) */
#header {
    display: none;
}

/* 若footer没有th:replace，则直接隐藏footer元素 */
footer, .copyright-common {
    display: none;
}

/* 调整iCheck样式适应半透明背景 */
.icheckbox_square-blue, .iradio_square-blue {
    margin-right: 6px;
}
.icheck > label {
    padding-left: 0 !important;
}

/* 记住我 文字颜色 */
.checkbox label {
    color: #1e2a3a;
    font-weight: 400;
}

/* 轻微动画 */
.login-box {
    animation: fadeSlide 0.5s ease;
}
@keyframes fadeSlide {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}
