@charset "utf-8";

/* ========================================
   左右分栏商务登录页样式
   Business Split Login Page Style
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: "Source Han Sans CN", "Source Han Sans SC", "Noto Sans SC",
                 "Noto Sans CJK SC", "Alibaba PuHuiTi", "PingFang SC",
                 "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.layui-layout-body {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%) !important;
    overflow: hidden;
    /* 防止高DPI缩放时自动调整字体大小导致比例失调 */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* ========================================
   主容器 - 左右分栏
   ======================================== */
.split-login-page {
    display: flex;
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
    min-width: 1200px;
}

/* ========================================
   左侧品牌区域
   ======================================== */
.split-left {
    flex: 1.2;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: transparent;
    padding: 44px;
    z-index: 10;
}

.split-left::before {
    display: none;
}

@keyframes glow-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

.split-brand-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 600px;
}

/* Logo区域 */
.split-logo-wrapper {
    margin-bottom: 36px;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.split-logo {
    width: 88px;
    height: 88px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.split-logo:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.15);
}

.split-logo img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

/* 系统名称 */
.split-system-name {
    font-size: 46px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: 4px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 公司名称 */
.split-brand-name {
    font-size: 28px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
    letter-spacing: 2px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* 底部装饰点 */
.split-decoration {
    position: absolute;
    bottom: 44px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.split-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: dot-pulse 2s ease-in-out infinite;
}

.split-dot:nth-child(2) { animation-delay: 0.3s; }
.split-dot:nth-child(3) { animation-delay: 0.6s; }

@keyframes dot-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* ========================================
   右侧登录表单区域
   ======================================== */
.split-right {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    z-index: 10;
    padding: 0 32px;
}

.split-form-wrapper {
    width: 100%;
    max-width: 500px;
    padding: 40px 36px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(30, 64, 175, 0.12), 0 4px 20px rgba(0, 0, 0, 0.04);
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.split-form-header {
    margin-bottom: 36px;
}

.split-form-title {
    font-size: 32px;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.split-form-subtitle {
    font-size: 13px;
    color: #64748b;
    letter-spacing: 1px;
}

/* 表单样式 */
.split-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.split-field-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.split-field-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 600;
    color: #334155;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.split-label-icon {
    width: 18px;
    height: 18px;
    color: #1e40af;
}

.split-label-icon svg {
    width: 100%;
    height: 100%;
}

.split-input-wrapper {
    position: relative;
}

.split-input {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 44px;
    font-size: 15px;
    color: #1e293b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    transition: all 0.3s ease;
}

.split-input::placeholder {
    color: #94a3b8;
}

.split-input:focus {
    background: #ffffff;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.split-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #64748b;
    transition: color 0.3s ease;
}

.split-input:focus ~ .split-input-icon {
    color: #1e40af;
}

/* 验证码 */
.split-verify-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.split-verify-input {
    flex: 1;
    position: relative;
}

.split-verify-input .split-input {
    padding: 0 14px;
}

.split-verify-img {
    flex-shrink: 0;
    height: 42px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.split-verify-img:hover {
    border-color: #1e40af;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.15);
}

.split-verify-img img {
    height: 100%;
    width: auto;
    max-width: 140px;
    display: block;
}

/* 提交按钮 */
.split-submit-btn {
    width: 100%;
    height: 50px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    letter-spacing: 4px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(30, 58, 138, 0.25);
}

.split-submit-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.6s ease;
}

.split-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.35);
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

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

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

.split-btn-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.split-submit-btn:hover .split-btn-arrow {
    transform: translateX(5px);
}

/* 底部信息 */
.split-footer {
    margin-top: 36px;
    text-align: center;
}

.split-footer-text {
    font-size: 12px;
    color: #94a3b8;
    letter-spacing: 1px;
}

/* ========================================
   科技感动态元素
   ======================================== */

/* 科技网格背景 */
.tech-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
    z-index: 1;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* 扫描光线 */
.tech-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    animation: scan-down 6s linear infinite;
    z-index: 2;
}

@keyframes scan-down {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* 浮动粒子 */
.tech-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.tech-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 255, 255, 0.4);
    animation: particle-float 8s ease-in-out infinite;
}

.tech-particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.tech-particle:nth-child(2) { left: 30%; top: 60%; animation-delay: 1s; }
.tech-particle:nth-child(3) { left: 50%; top: 30%; animation-delay: 2s; }
.tech-particle:nth-child(4) { left: 70%; top: 70%; animation-delay: 3s; }
.tech-particle:nth-child(5) { left: 85%; top: 25%; animation-delay: 4s; }
.tech-particle:nth-child(6) { left: 20%; top: 80%; animation-delay: 5s; }
.tech-particle:nth-child(7) { left: 60%; top: 15%; animation-delay: 6s; }
.tech-particle:nth-child(8) { left: 90%; top: 55%; animation-delay: 7s; }

@keyframes particle-float {
    0%, 100% { transform: translate(0, 0); opacity: 0.3; }
    25% { transform: translate(30px, -20px); opacity: 0.8; }
    50% { transform: translate(-20px, -40px); opacity: 0.5; }
    75% { transform: translate(20px, -20px); opacity: 0.9; }
}

/* 数据流线条 */
.tech-data-flow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.tech-flow-line {
    position: absolute;
    width: 2px;
    height: 120px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: flow-down 4s linear infinite;
}

.tech-flow-line:nth-child(1) { left: 15%; animation-delay: 0s; }
.tech-flow-line:nth-child(2) { left: 55%; animation-delay: 1.5s; }
.tech-flow-line:nth-child(3) { left: 80%; animation-delay: 3s; }

@keyframes flow-down {
    0% { top: -100px; }
    100% { top: 100%; }
}

/* 网络节点装饰 */
.tech-network-nodes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.tech-node {
    position: absolute;
    width: 8px;
    height: 8px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: node-pulse 3s ease-in-out infinite;
}

.tech-node::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
}

.tech-node-1 { left: 12%; top: 25%; animation-delay: 0s; }
.tech-node-2 { left: 78%; top: 20%; animation-delay: 0.8s; }
.tech-node-3 { left: 25%; top: 75%; animation-delay: 1.5s; }
.tech-node-4 { left: 70%; top: 65%; animation-delay: 2.2s; }

@keyframes node-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6); }
    50% { box-shadow: 0 0 0 12px rgba(96, 165, 250, 0); }
}

/* 节点连接线 */
.tech-node-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.3));
    transform-origin: left center;
    animation: line-flicker 4s ease-in-out infinite;
}

.tech-node-line-1 {
    left: 12%; top: 25%;
    width: 200px;
    transform: rotate(-15deg);
}

.tech-node-line-2 {
    left: 25%; top: 75%;
    width: 250px;
    transform: rotate(-25deg);
    animation-delay: 1s;
}

.tech-node-line-3 {
    left: 70%; top: 65%;
    width: 180px;
    transform: rotate(20deg);
    animation-delay: 2s;
}

@keyframes line-flicker {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.6; }
}

/* 右侧表单装饰角标 */
.tech-corner {
    position: absolute;
    width: 50px;
    height: 50px;
    z-index: 1;
}

.tech-corner-tl {
    top: 24px;
    left: 24px;
    border-top: 2px solid #1e40af;
    border-left: 2px solid #1e40af;
    border-radius: 4px 0 0 0;
    opacity: 0.3;
    animation: corner-glow 4s ease-in-out infinite;
}

.tech-corner-br {
    bottom: 24px;
    right: 24px;
    border-bottom: 2px solid #1e40af;
    border-right: 2px solid #1e40af;
    border-radius: 0 0 4px 0;
    opacity: 0.3;
    animation: corner-glow 4s ease-in-out infinite 2s;
}

@keyframes corner-glow {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.5; }
}

/* Logo 科技光环 */
.split-logo::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: logo-ring 3s ease-in-out infinite;
}

@keyframes logo-ring {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.08); opacity: 0.6; }
}

/* 系统名称科技发光 */
.split-system-name {
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.6), 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* 输入框聚焦科技边框光效 */
.split-input:focus {
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1), 0 0 20px rgba(30, 64, 175, 0.15);
}

/* 按钮科技脉冲 */
.split-submit-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: btn-pulse 2s ease-out infinite;
}

@keyframes btn-pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.15); opacity: 0; }
}

/* ========================================
   响应式设计
   ======================================== */

/* 小屏幕 + 高DPI缩放适配
   覆盖 1366×768、1440×900 等分辨率，以及 125%/150%/200% 缩放场景 */
@media (max-width: 1500px) {
    .split-login-page {
        min-width: 1100px;
    }

    .split-left {
        flex: 1;
        padding: 32px;
    }

    .split-logo {
        width: 72px;
        height: 72px;
    }

    .split-logo img {
        width: 44px;
        height: 44px;
    }

    .split-logo::after {
        border-radius: 20px;
    }

    .split-brand-content {
        max-width: 520px;
    }

    .split-system-name {
        margin-bottom: 12px;
    }

    .split-brand-name {
        margin-bottom: 0;
    }

    .split-decoration {
        bottom: 32px;
        gap: 10px;
    }

    .split-right {
        flex: 1;
        padding: 0 24px;
    }

    .split-form-wrapper {
        max-width: 440px;
        padding: 32px 28px;
        border-radius: 14px;
    }

    .split-form-header {
        margin-bottom: 28px;
    }

    .split-form {
        gap: 22px;
    }

    .split-field-group {
        gap: 8px;
    }

    .split-input {
        height: 44px;
        padding: 0 14px 0 40px;
    }

    .split-input-icon {
        left: 12px;
        width: 15px;
        height: 15px;
    }

    .split-verify-img {
        height: 38px;
    }

    .split-verify-img img {
        max-width: 120px;
    }

    .split-submit-btn {
        height: 44px;
        font-size: 16px;
        letter-spacing: 3px;
    }

    .split-submit-btn::after {
        border-radius: 8px;
    }

    .split-footer {
        margin-top: 28px;
    }

    .tech-corner {
        width: 40px;
        height: 40px;
    }

    .tech-corner-tl {
        top: 16px;
        left: 16px;
    }

    .tech-corner-br {
        bottom: 16px;
        right: 16px;
    }
}

@media (max-width: 1024px) {
    .split-login-page {
        flex-direction: column;
    }

    .split-left {
        flex: none;
        padding: 32px;
        min-height: 35vh;
    }

    .split-logo {
        width: 72px;
        height: 72px;
    }

    .split-logo img {
        width: 44px;
        height: 44px;
    }

    .split-system-name {
        font-size: 26px;
    }

    .split-brand-name {
        font-size: 16px;
    }

    .split-right {
        flex: none;
        padding: 32px 20px;
    }

    .split-form-wrapper {
        padding: 0;
        max-width: 100%;
    }

    .split-form-title {
        font-size: 22px;
    }
}
