/* 防止页面扩展 */
.dcat-admin-body {
    overflow: hidden !important;
    height: 100vh !important;
    max-height: 100vh !important;
}

/* 兼容IE（防止页面扩展） */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .dcat-admin-body {
        height: 100% !important;
        max-height: 100% !important;
    }
}

.login_main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)),
    url('/vendor/assets/images/bg-auth1.jpg') center/cover no-repeat;
    margin: 0;
    padding: 20px;
}

.col-md-12, .col-md-3 {
    padding: 0;
}

.row {
    margin: 0;
    width: 100%;
}

.login-box {
    width: 100%;
    max-width: 400px;
}

.login_main .login-page {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px 30px;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-height: 90vh;
}

.login_main .card {
    box-shadow: none;
    border: none;
    background: transparent;
}

.login_main .auth-brand {
    position: absolute;
    top: 2rem;
    left: 2rem;
    font-size: 22px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login_main .auth-brand img {
    width: 35px;
    height: 35px;
    border-radius: 8px;
}

.login_main .login-logo {
    margin-bottom: 1.5rem;
    text-align: left;
}

.login_main .login-logo h4 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.login_main .login-box-msg {
    margin: 0;
    padding: 0;
    color: #666 !important;
    font-size: 0.95rem;
    font-weight: 400;
    text-align: left;
    line-height: 1.5;
}

/* 记住我和忘记密码样式 */
.form-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
}

.remember-section {
    display: flex;
    align-items: center;
}

.forgot-section a {
    color: var(--primary, #2575fc);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-section a:hover {
    color: var(--primary, #1a68e8);
    text-decoration: underline;
}

/* 登录按钮样式 */
.login-btn {
    height: 50px;
    background: linear-gradient(135deg, var(--primary, #2575fc), #4dabf5);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
    width: 100%;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 117, 252, 0.3);
    background: linear-gradient(135deg, #1a68e8, #3d9df2);
}

.login-btn:active {
    transform: translateY(0);
}

/* 标签页样式 */

/* 标签页容器固定高度 */
.login-tabs-container {
    position: relative;
    min-height: 50px;
    margin-bottom: 1.5rem;
}

.login-tabs {
    display: flex;
    border-bottom: 1px solid #e9ecef;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 10;
}

.login-tabs .tab {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.login-tabs .tab.active {
    color: var(--primary, #2575fc);
    font-weight: 600;
}

.login-tabs .tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary, #2575fc);
}

/* 表单内容区域 */
.tab-content {
    position: relative;
    min-height: 280px;
}

.tab-pane {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.tab-pane.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

/* 快捷登录样式 */
.quick-login-container {
    margin: 25px 0 10px;
}

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #999;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #eee;
}

.divider span {
    padding: 0 15px;
}

.quick-login-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.quick-login-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    position: relative;
}
.wechat-btn {
    background-image: url("/vendor/assets/images/weixin.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.3);
}

.dingtalk-btn {
    background-image: url("/vendor/assets/images/dingtalk.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.3);
}

.quick-login-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.quick-login-btn:active {
    transform: translateY(-1px) scale(1.05);
}

/* 验证码输入组 */
.code-group {
    display: flex;
    gap: 10px;
}

.code-group .form-control {
    flex: 1;
}

.send-code-btn {
    background-color: #f8f9fa;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    color: #2575fc;
    font-size: 14px;
    white-space: nowrap;
    padding: 0 12px;
    transition: all 0.3s ease;
}

.send-code-btn:hover {
    background-color: #e9ecef;
}

.send-code-btn:disabled {
    background-color: #f8f9fa;
    color: #999;
    cursor: not-allowed;
}

/* 错误提示样式 */
.invalid-feedback {
    display: block;
    margin-top: 8px;
    font-size: 12px;
}

.control-label {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login_main {
        padding: 10px;
        justify-content: center;
    }

    .login_main .login-page {
        padding: 30px 20px;
        margin: 0 auto;
    }

    .login_main .auth-brand {
        position: relative;
        top: auto;
        left: auto;
        justify-content: center;
        margin-bottom: 2rem;
    }

    .login-box {
        max-width: 100%;
    }

    .form-actions-row {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .forgot-section {
        align-self: flex-end;
    }
}

@media (max-width: 576px) {
    .login_main .login-page {
        padding: 25px 15px;
    }

    .form-label-group .form-control {
        height: 45px;
    }

    .login-btn {
        height: 45px;
    }

    .quick-login-buttons {
        gap: 10px;
    }

    .quick-login-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* 暗色主题支持 */
@media (prefers-color-scheme: dark) {
    .login_main .login-page {
        background-color: #2d3748;
        color: #fff;
        border-color: #4a5568;
    }

    .form-label-group .form-control {
        background: #4a5568;
        border-color: #718096;
        color: #fff;
    }

    .form-label-group label {
        background: #4a5568;
        color: #a0aec0;
    }

    .form-label-group .form-control:focus + label {
        color: var(--primary, #63b3ed);
    }

    .vs-checkbox-con span:last-child {
        color: #a0aec0;
    }

    .login-tabs {
        border-bottom-color: #4a5568;
        background: #2d3748;
    }

    .divider::before,
    .divider::after {
        background-color: #4a5568;
    }
}

/* 加载动画 */
.login-btn .feather {
    transition: transform 0.3s ease;
}

.login-btn:hover .feather {
    transform: translateX(3px);
}

/* 协议同意样式 */
.agreement-checkbox input[type="checkbox"] {
    margin-top: 2px;
}

.agreement-links {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.agreement-links a {
    color: var(--primary, #2575fc);
    text-decoration: none;
    transition: color 0.3s ease;
}

.agreement-links a:hover {
    color: var(--primary, #1a68e8);
    text-decoration: underline;
}

/* 协议模态框样式 */
.agreement-modal .modal-content {
    border-radius: 12px;
}

.agreement-modal .modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 20px;
}

.agreement-modal .modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
    line-height: 1.6;
}

.agreement-modal .modal-title {
    font-weight: 600;
    color: #333;
}

/* 暗色主题适配 */
@media (prefers-color-scheme: dark) {
    .agreement-section {
        background: #2d3748;
        border-color: #4a5568;
    }

    .agreement-links {
        color: #a0aec0;
    }

    .agreement-modal .modal-header {
        border-bottom-color: #4a5568;
    }

    .agreement-modal .modal-body {
        color: #e2e8f0;
    }
}
