/* 关键：清除 html 和 body 的默认边距，避免滚动条 */
html,
body {
    margin: 0;
    padding: 0;
    overflow: hidden; /* 强制隐藏滚动条（兜底方案） */
}

/* 页面整体样式 - 白色调物流扁平化背景 + 靠右布局 */
.login-page {
    width: 100vw; /* 使用100vw代替100%，确保宽度是视口宽度 */
    height: 100vh; /* 视口高度，无溢出 */
    /* 白色调背景：浅灰+白色渐变（扁平化，物流简约风格） */
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
    display: flex;
    /* 登录卡片靠右对齐，左侧留空给元素 */
    justify-content: flex-end;
    align-items: center;
    margin: 0;
    padding: 0;
    /* 相对定位，用于背景网格和左侧元素的绝对定位 */
    position: relative;
    box-sizing: border-box;
}
/* 核心修正：left: 20px 定位到左上角 */
.login-logo {
    position: fixed;
    top: 20px;       /* 距离顶部 20px */
    left: 20px;      /* 距离左侧 20px（原 right 改为 left） */
    z-index: 5;
}
.logo-img {
    width: 50px;
    height: 50px;
    max-width: 150px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    /* 火狐兼容 */
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* 小屏幕适配：Logo 缩小 */
@media (max-width: 768px) {
    .logo-img {
        width: 80px;
    }
}
/* 物流风格背景网格（白色调适配，浅橙色线条，扁平化） */
.logistics-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 网格背景：物流橙浅色调线条，适配白色背景 */
    background-image:
            linear-gradient(to right, rgba(255, 153, 0, 0.05) 1px, transparent 1px),
            linear-gradient(to bottom, rgba(255, 153, 0, 0.05) 1px, transparent 1px);
    /* 网格大小：更稀疏，贴合物流风格 */
    background-size: 60px 60px;
    z-index: 0;
    /* 轻微的网格移动动画，扁平化动态效果 */
    animation: gridMove 30s linear infinite;
}

/* 左侧物流行业扁平化元素区域 - 往中间移动：left从100px改为250px（可根据需求调整） */
.left-logistics-elements {
    position: absolute;
    left: 250px; /* 关键：减小left值，元素向中间移动（原100px，现250px，可调整为300px/200px等） */
    top: 50%;
    transform: translateY(-50%);
    z-index: 0; /* 低于登录卡片，不遮挡 */
    /* 元素整体轻微浮动动画，扁平化动态效果 */
    animation: elementFloat 15s ease-in-out infinite;
}

/* 扁平化圆形元素（物流标识感，橙蓝配色适配白色背景） */
.logistics-circle {
    border: 2px solid rgba(255, 153, 0, 0.5); /* 物流橙边框加深，适配白色背景 */
    border-radius: 50%;
    position: absolute;
    background-color: rgba(255, 153, 0, 0.08); /* 轻微橙填充色，适配白色背景 */
}
/* 圆形1：大尺寸（物流主标识） */
.logistics-circle-1 {
    width: 200px;
    height: 200px;
    top: -100px;
    left: -100px;
}
/* 圆形2：小尺寸（点缀） */
.logistics-circle-2 {
    width: 80px;
    height: 80px;
    bottom: -40px;
    right: -40px;
}

/* 扁平化矩形线条（物流箱体感，橙蓝配色适配白色背景） */
.logistics-rect {
    border: 2px solid rgba(255, 153, 0, 0.5); /* 物流橙边框加深，适配白色背景 */
    border-radius: 4px; /* 轻微圆角，扁平化 */
    position: absolute;
    background-color: rgba(255, 153, 0, 0.08);
}
/* 矩形1：长条形（物流箱体） */
.logistics-rect-1 {
    width: 240px;
    height: 40px;
    top: 40px;
    left: 20px;
    /* 轻微旋转，增加动感 */
    transform: rotate(-10deg);
}

/* 扁平化物流主图标（货车图标，物流核心元素，适配白色背景） */
.logistics-icon {
    position: relative;
    z-index: 1; /* 高于几何元素，显示在中间 */
    color: rgba(255, 153, 0, 0.7); /* 物流橙加深，适配白色背景 */
    /* 图标轻微旋转动画 */
    animation: iconRotate 25s linear infinite;
}

/* 扁平化物流辅助图标（包裹图标，点缀，适配白色背景） */
.logistics-sub-icon {
    position: absolute;
    bottom: -20px;
    right: -30px;
    color: rgba(255, 153, 0, 0.6);
    z-index: 1;
    /* 轻微浮动动画 */
    animation: subIconFloat 8s ease-in-out infinite;
}

/* 网格移动动画（缓慢，扁平化） */
@keyframes gridMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 60px 60px;
    }
}

/* 左侧元素浮动动画（扁平化） */
@keyframes elementFloat {
    0%, 100% {
        transform: translateY(-50%) translateX(0);
    }
    50% {
        transform: translateY(-50%) translateX(20px);
    }
}

/* 图标旋转动画（缓慢，扁平化） */
@keyframes iconRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 辅助图标浮动动画 */
@keyframes subIconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 登录卡片 - 物流行业扁平化设计（适配白色背景） */
.login-card {
    width: 400px;
    padding: 30px;
    background-color: #ffffff; /* 纯白色，适配白色背景 */
    border: 1px solid rgba(255, 153, 0, 0.3); /* 物流橙边框，扁平化 */
    border-radius: 8px; /* 轻微圆角，扁平化 */
    box-sizing: border-box; /* 确保padding不影响宽度和高度 */
    /* 右侧间距 */
    margin-right: 300px;
    /* 轻微阴影，突出卡片（扁平化阴影，适配白色背景） */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    /* 高于背景元素 */
    position: relative;
    z-index: 1;
}

/* 登录标题（物流配色，扁平化，适配白色背景） */
.login-title {
    font-size: 22px;
    color: #0f4c81; /* 物流深蓝主色，增加对比 */
    text-align: center;
    margin-bottom: 25px;
    font-weight: 600;
    /* 物流橙下划线，扁平化 */
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 153, 0, 0.2);
}

/* 登录表单 */
.login-form {
    width: 100%;
}

/* 表单操作区（记住密码 + 忘记密码） */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

/* 忘记密码链接（物流深蓝，扁平化，适配白色背景） */
.forget-link {
    font-size: 12px;
    color: #0f4c81; /* 物流深蓝主色 */
}

/* 登录按钮 - 物流行业扁平化样式（橙蓝渐变替换为纯色，适配白色背景） */
.login-btn {
    width: 100%;
    /*background-color: #ff9900; !* 物流橙主色，扁平化纯色 *!*/
    border: none;
    padding: 10px 0;
    font-size: 14px;
    border-radius: 4px;
    /* 扁平化hover效果，颜色加深 */
    transition: background-color 0.3s ease;
}
/*.login-btn:hover {*/
/*    background-color: #e68a00; !* 物流橙加深，扁平化hover反馈 *!*/
/*}*/

/* 响应式适配：小屏幕下调整布局，隐藏左侧元素 */
@media (max-width: 768px) {
    /* 小屏幕时让卡片居中 */
    .login-page {
        justify-content: center;
    }
    /* 小屏幕隐藏左侧元素，避免挤压 */
    .left-logistics-elements {
        display: none;
    }
    .login-card {
        width: 90%;
        padding: 20px;
        /* 小屏幕取消右侧间距 */
        margin-right: 0;
    }
}
