/* 防止页面扩展 */
.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 {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0e17 0%, #1a1f2e 50%, #0a0e17 100%);
    margin: 0;
    padding: 20px;
    overflow: hidden;
}

.login_main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 128, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 255, 128, 0.05) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

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

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

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

.login-page{
    z-index: 999;
}

.login_main .login-page {
    background: rgba(16, 22, 36, 0.85);
    border-radius: 16px;
    padding: 30px 20px;
    position: relative;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(0, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    max-height: 90vh;
    overflow-y: auto;
}

.login_main .login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05) 0%, transparent 50%);
    border-radius: 16px;
    pointer-events: none;
}

.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: 700;
    color: #00ffff;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.login_main .auth-brand img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(175deg);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

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

.login_main .login-logo h4 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #00ffff 0%, #0080ff 50%, #00ff80 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

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

/* 表单样式 */
.form-label-group {
    position: relative;
    margin-bottom: 2.5rem;
}

.form-label-group .form-control {
    height: 45px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
    backdrop-filter: blur(10px);
}

.form-label-group .form-control:focus {
    border-color: #00ffff;
    box-shadow:
        0 0 0 2px rgba(0, 255, 255, 0.2),
        0 0 20px rgba(0, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.form-label-group .form-control-position {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #98a6ad;
    z-index: 2;
    transition: all 0.3s ease;
}

.form-label-group .form-control:focus ~ .form-control-position {
    color: #00ffff;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

.form-label-group label {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    color: #98a6ad;
    font-size: 14px;
    pointer-events: none;
    transition: all 0.3s ease;
    background: transparent;
    padding: 0 4px;
    margin: 0;
}

.form-label-group .form-control:focus + label,
.form-label-group .form-control:not(:placeholder-shown) + label {
    top: 0;
    font-size: 12px;
    color: #00ffff;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

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

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

.forgot-section a {
    color: #00ffff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
}

.forgot-section a:hover {
    color: #00cccc;
    text-decoration: underline;
    text-shadow: 0 0 12px rgba(0, 255, 255, 0.6);
}

/* 登录按钮样式 */
.login-btn {
    height: 55px;
    background: linear-gradient(135deg, #00ffff 0%, #0080ff 100%);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 1.5rem;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow:
        0 8px 25px rgba(0, 255, 255, 0.4),
        0 0 0 1px rgba(0, 255, 255, 0.2);
    background: linear-gradient(135deg, #00cccc 0%, #0066cc 100%);
}

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

.login-btn .feather {
    transition: transform 0.3s ease;
}

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

/* 标签页样式 */
.login-tabs-container {
    position: relative;
    min-height: 60px;
    margin-bottom: 2rem;
}

.login-tabs {
    display: flex;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    z-index: 10;
}

.login-tabs .tab {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #98a6ad;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
}

.login-tabs .tab.active {
    color: #00ffff;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

.login-tabs .tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00ffff, #0080ff);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.login-tabs .tab:hover {
    color: #00cccc;
    background: rgba(0, 255, 255, 0.05);
}

.login-content {
    background: transparent;
}

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

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

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

/* 修改所有输入框的placeholder颜色 */
.form-label-group .form-control::placeholder {
    color: #98a6ad;
    opacity: 1;
}

/* 修改聚焦时的placeholder颜色 */
.form-label-group .form-control:focus::placeholder {
    color: #00ffff;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
}

/* 或者为特定输入框设置不同的placeholder颜色 */
#phone-number::placeholder {
    color: #98a6ad;
}

#phone-code::placeholder {
    color: #98a6ad;
}

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

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

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.3), transparent);
}

.divider span {
    padding: 0 15px;
    background: rgba(16, 22, 36, 0.9);
}

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

.quick-login-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-login-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00ffff, #0080ff, #00ff80);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.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:active {
    transform: translateY(-2px) scale(1.05);
}

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

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

.send-code-btn {
    background: linear-gradient(135deg, #00ffff, #0080ff);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    padding: 0 16px;
    transition: all 0.3s ease;
    min-width: 100px;
}

.send-code-btn:hover {
    background: linear-gradient(135deg, #00cccc, #0066cc);
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
}

.send-code-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 错误提示样式 */
.invalid-feedback {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #ff4757;
    text-shadow: 0 0 8px rgba(255, 71, 87, 0.3);
}

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

/* 复选框样式 */

.vs-checkbox-con .vs-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.vs-checkbox-con input:checked + .vs-checkbox {
    background: #00ffff;
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.vs-checkbox-con input:checked + .vs-checkbox .vs-checkbox--check {
    opacity: 1;
    transform: scale(1);
}

.vs-checkbox--check {
    opacity: 0;
    transition: all 0.3s ease;
}

.vs-checkbox-label, .vs-checkbox-con span:last-child {
    font-size: 14px;
    color: #98a6ad;
    transition: color 0.3s ease;
}

.vs-checkbox-con:hover span:last-child {
    color: #00ffff;
}

.agreement-checkbox input[type="checkbox"] {
    margin-top: 3px;
}

.agreement-links {
    font-size: 13px;
    color: #98a6ad;
    line-height: 1.6;
}

.agreement-links a {
    color: #00ffff;
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
}

.agreement-links a:hover {
    color: #00cccc;
    text-decoration: underline;
    text-shadow: 0 0 12px rgba(0, 255, 255, 0.6);
}

/* 右侧展示区域 */
.auth-fluid-right {
    padding: 6rem 3rem;
    flex: 1;
    position: relative;
    color: #fff;
    text-align: center !important;
    font-family: Nunito, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.auth-user-testimonial {
    position: relative;
    z-index: 2;
    text-align: center;
}

.auth-user-testimonial h1 {
    font-size: 4rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #00ffff 0%, #0080ff 50%, #00ff80 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    line-height: 1.2;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    }
    to {
        text-shadow: 0 0 30px rgba(0, 255, 255, 0.8), 0 0 40px rgba(0, 255, 255, 0.6);
    }
}

.auth-user-testimonial .lead {
    font-size: 1.6rem;
    margin-top: 1.5rem;
    color: #e0e0e0;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* 粒子容器 */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

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

    .auth-fluid-right {
        display: none;
    }

    .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: 12px;
        align-items: flex-start;
    }

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

    .auth-user-testimonial h1 {
        font-size: 2.5rem;
    }

    .auth-user-testimonial .lead {
        font-size: 1.2rem;
    }
}

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

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

    .login-btn {
        height: 50px;
    }

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

    .quick-login-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .auth-user-testimonial h1 {
        font-size: 2rem;
    }
}

/* 滚动条样式 */
.login_main .login-page::-webkit-scrollbar {
    width: 6px;
}

.login_main .login-page::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.login_main .login-page::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00ffff, #0080ff);
    border-radius: 3px;
}

.login_main .login-page::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #00cccc, #0066cc);
}

/* 协议模态框样式 */
.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;
}
