/* ========================================
   LMS 登录页面专用样式
   用于 home/index/index 路由的登录页
   ======================================== */

/* 登录布局 body - 撑满视口，背景透明 */
body.login-page-layout {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: transparent;
}
body.login-page-layout .lms-login-wrapper {
    min-height: 100vh;
    display: block;
}

.lms-login-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #f0f2f5;
}

/* 背景图层 */
.lms-login-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 0;
}

/* 半透明遮罩层（提升文字可读性） */
.lms-login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.35) 0%, rgba(40, 167, 69, 0.35) 100%);
    z-index: 1;
}

/* 内容容器 */
.lms-login-wrap {
    position: relative;
    z-index: 2;
}

/* 登录卡片 */
.lms-login-card {
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.lms-login-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
}

/* 左部品牌展示区 */
.lms-login-brand {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 50%, #1a8d4a 100%);
    color: #fff;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    min-height: 480px;
    position: relative;
    overflow: hidden;
}
.lms-login-brand::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}
.lms-login-brand-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}
.lms-login-brand-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.9;
    display: block;
}
.lms-login-brand-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 1px;
}
.lms-login-brand-slogan {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 32px;
    letter-spacing: 0.5px;
}
.lms-login-features {
    text-align: left;
    max-width: 260px;
    margin: 0 auto;
}
.lms-login-features li {
    padding: 8px 0;
    font-size: 13px;
    opacity: 0.9;
    display: flex;
    align-items: center;
}
.lms-login-features li i {
    margin-right: 10px;
    color: #d4edda;
    font-size: 14px;
}

/* 右部表单区域 */
.lms-login-form-col {
    background: #fff;
    display: flex;
    align-items: center;
}
.lms-login-title {
    font-size: 26px;
    font-weight: 600;
    color: #343a40;
}

/* 表单字段 */
.lms-login-field {
    margin-bottom: 20px;
}
.lms-login-field .input-group-text {
    background-color: #f8f9fa;
    border-right: 0;
    color: #6c757d;
    min-width: 50px;
    justify-content: center;
}
.lms-login-field .form-control {
    border-left: 0;
    padding-left: 0.5rem;
    box-shadow: none;
    background: #fafbfc;
    height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
}
.lms-login-field .form-control:focus {
    background: #fff;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
}
.lms-login-field .input-group:focus-within .input-group-text {
    background-color: #e9ecef;
    border-color: #80bdff;
}

/* 登录按钮 */
.lms-login-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: 0;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}
.lms-login-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #0056b3 0%, #003d80 100%);
    box-shadow: 0 6px 18px rgba(0, 123, 255, 0.4);
    transform: translateY(-1px);
}
.lms-login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* 链接区域 */
.lms-login-links a {
    text-decoration: none;
    transition: color 0.2s;
}
.lms-login-links a:hover {
    color: #007bff !important;
    text-decoration: none;
}

/* 移动端适配 */
@media (max-width: 767.98px) {
    .lms-login-card {
        margin: 20px;
    }
    .lms-login-brand {
        display: none !important;
    }
    .lms-login-form-col .card-body {
        padding: 1.5rem !important;
    }
}

/* ===== 登录相关 Modal 增强 ===== */
.modal-content {
    border-radius: 12px;
    border: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}
.modal-header {
    border-bottom: 0;
    padding: 18px 24px;
}
.modal-header .modal-title {
    font-size: 18px;
    font-weight: 600;
}
.modal-header.bg-info,
.modal-header.bg-success {
    color: #fff;
}
.modal-header .close {
    text-shadow: none;
    opacity: 0.9;
}
.modal-header .close:hover {
    opacity: 1;
}
.modal-body {
    padding: 24px;
}
.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 14px 24px;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}
.modal-body .input-group-text {
    background-color: #f8f9fa;
    color: #6c757d;
}
.modal-body .form-control:focus + .input-group-append .input-group-text,
.modal-body .input-group:focus-within .input-group-text {
    background-color: #e9ecef;
    border-color: #80bdff;
}

