/* ===================================================
   login.css  v3.0  —  现代极简登录页（双栏卡片布局）
   主色：深海蓝 #0f172a / 天空蓝 #0ea5e9
   风格与 register.css 保持一致
   v3.0: 背景添加物流主题装饰元素
   =================================================== */

/* ---------- 全屏背景容器 ---------- */
.login-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 40%, #0ea5e9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* ---------- 背景装饰：点阵网格 ---------- */
.login-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(14,165,233,0.18) 1.5px, transparent 1.5px);
    background-size: 44px 44px;
    pointer-events: none;
    z-index: 0;
}

/* ---------- 背景装饰：光晕 ---------- */
.login-wrapper::after {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14,165,233,0.12) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    pointer-events: none;
    z-index: 0;
}

/* ---------- 背景装饰层（浮动元素容器） ---------- */
.login-bg-deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* 大圆环 */
.login-bg-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(14,165,233,0.15);
    animation: bgCirclePulse 8s ease-in-out infinite;
}
@keyframes bgCirclePulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50%       { transform: scale(1.06); opacity: 1; }
}

/* 浮动SVG物流图标 */
.login-bg-icon {
    position: absolute;
    opacity: 0.07;
    animation: bgIconFloat linear infinite;
}
@keyframes bgIconFloat {
    0%   { transform: translateY(0) rotate(0deg);   opacity: 0.04; }
    40%  { opacity: 0.1; }
    100% { transform: translateY(-120px) rotate(20deg); opacity: 0; }
}

/* 飞行线条（航线） */
.login-bg-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(14,165,233,0.4), transparent);
    animation: bgLineSweep 6s ease-in-out infinite;
    transform-origin: left center;
}
@keyframes bgLineSweep {
    0%   { width: 0;    opacity: 0; }
    30%  { opacity: 1; }
    100% { width: 340px; opacity: 0; }
}

/* 小菱形装饰 */
.login-bg-diamond {
    position: absolute;
    width: 10px;
    height: 10px;
    border: 1px solid rgba(14,165,233,0.3);
    transform: rotate(45deg);
    animation: bgDiamondSpin 10s linear infinite;
}
@keyframes bgDiamondSpin {
    0%   { transform: rotate(45deg) scale(1);   opacity: 0.3; }
    50%  { transform: rotate(225deg) scale(1.5); opacity: 0.7; }
    100% { transform: rotate(405deg) scale(1);   opacity: 0.3; }
}

/* 让主卡片在装饰层之上 */
.login-wrapper > form,
.login-wrapper > .footer,
.login-wrapper > .float-wrappper {
    position: relative;
    z-index: 1;
}

/* ---------- 主卡片（双栏） ---------- */
.container-bg {
    width: 860px;
    min-height: 520px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(15,23,42,0.22);
    display: flex;
    overflow: hidden;
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    z-index: 1;
}

/* ---------- 左侧品牌区 ---------- */
.login-brand {
    width: 380px;
    flex-shrink: 0;
    background: linear-gradient(160deg, #0f172a 0%, #1e40af 60%, #0ea5e9 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.login-brand::before {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.08);
    top: -60px;
    right: -60px;
}

.login-brand::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.06);
    bottom: -50px;
    left: -50px;
}

/* ---------- 左侧品牌内容 ---------- */
.login-brand-logo {
    width: 200px;
    height: 80px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 28px;
}

.login-brand-slogan {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    line-height: 1.5;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.login-brand-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    text-align: center;
    line-height: 1.7;
}

.login-brand-features {
    margin-top: 36px;
    width: 100%;
}

.login-brand-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.75);
    font-size: 13px;
}

.login-brand-feature-item:last-child {
    border-bottom: none;
}

.login-brand-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0ea5e9;
    flex-shrink: 0;
}

/* ---------- 右侧表单区 ---------- */
.login-container-wrapper {
    flex: 1;
    padding: 48px 52px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: auto;
    margin-left: 0;
    height: auto;
}

/* ---------- 顶部 Logo + 标题 ---------- */
.login-container-wrapper > .logo {
    width: 180px;
    height: 72px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
    margin-bottom: 8px;
}

.login-form-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.login-form-sub {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 32px;
}

/* ---------- 输入框区域 ---------- */
.input-wrapper {
    width: 100%;
    margin-bottom: 18px;
}

.iw_title {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.input-box {
    width: 100%;
    height: 46px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    box-sizing: border-box;
    padding: 0 16px;
    display: flex;
    align-items: center;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.input-box:focus-within {
    border-color: #0ea5e9;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(14,165,233,0.12);
}

.ib_icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.5;
}

.input-wrapper:nth-child(1) .ib_icon {
    background-image: url(../../common/images/icon1.png);
}

.input-wrapper:nth-child(2) .ib_icon {
    background-image: url(../../common/images/icon2.png);
}

.input-box input {
    flex: 1;
    margin-left: 10px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #0f172a;
    outline: none;
}

.input-box input::placeholder {
    color: #cbd5e1;
    font-size: 13px;
}

/* ---------- 登录按钮 ---------- */
.button {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 100%;
    height: 46px;
    background: linear-gradient(90deg, #0369a1, #0ea5e9);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 2px;
    margin-top: 8px;
    margin-bottom: 18px;
    border: none;
    transition: opacity 0.2s, transform 0.1s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(14,165,233,0.35);
    user-select: none;
    text-decoration: none;
}

.button:hover {
    opacity: 0.92;
    box-shadow: 0 6px 20px rgba(14,165,233,0.45);
    color: #fff;
}

.button:active {
    transform: scale(0.98);
}

/* ---------- LINE 登录按钮 ---------- */
.line-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 46px;
    line-height: 46px;
    text-align: center;
    background-color: #00b900;
    border-radius: 12px;
    color: #fff;
    margin-bottom: 18px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(0,185,0,0.3);
}

.line-btn:hover {
    opacity: 0.9;
    color: #fff;
}

.line-btn img {
    width: auto;
    height: 28px;
    vertical-align: middle;
    margin-right: 8px;
}

/* ---------- 底部链接（注册/忘记密码） ---------- */
.other-way {
    display: flex;
    justify-content: space-between;
    padding: 0 2px;
}

.other-way a {
    font-size: 13px;
    color: #0ea5e9;
    text-decoration: none;
    transition: color 0.2s;
}

.other-way a:hover {
    color: #0369a1;
}

/* ---------- 页脚版权 ---------- */
.footer {
    text-align: center;
    position: fixed;
    bottom: 16px;
    width: 100%;
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    line-height: 20px;
    pointer-events: none;
}

.footer a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
}

.footer a:hover {
    color: #fff;
}

/* ---------- 物流插图区域 ---------- */
.logistics-illustration {
    width: 100%;
    margin: 24px 0 8px;
    position: relative;
    height: 110px;
    flex-shrink: 0;
}

/* 路线轨道 */
.logistics-track {
    position: absolute;
    bottom: 22px;
    left: 10px;
    right: 10px;
    height: 2px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
}

.logistics-track::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 60%;
    background: linear-gradient(90deg, #0ea5e9, rgba(14,165,233,0.2));
    border-radius: 2px;
    animation: trackProgress 3s ease-in-out infinite alternate;
}

@keyframes trackProgress {
    0%   { width: 30%; }
    100% { width: 80%; }
}

/* 节点圆点 */
.logistics-track-dot {
    position: absolute;
    bottom: 18px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0ea5e9;
    box-shadow: 0 0 8px rgba(14,165,233,0.8);
}
.logistics-track-dot:nth-child(1) { left: 10px; background: #fff; }
.logistics-track-dot:nth-child(2) { right: 10px; background: rgba(255,255,255,0.35); }

/* 飞机图标 - SVG inline via background */
.logistics-plane {
    position: absolute;
    top: 0;
    left: 20px;
    animation: flyAcross 4s ease-in-out infinite alternate;
}
@keyframes flyAcross {
    0%   { left: 15px;  top: 8px; }
    100% { left: 200px; top: 0px; }
}

/* 轮船图标 */
.logistics-ship {
    position: absolute;
    bottom: 30px;
    left: 50px;
    animation: sailAcross 5s ease-in-out 0.5s infinite alternate;
}
@keyframes sailAcross {
    0%   { left: 40px; }
    100% { left: 220px; }
}

/* 包裹图标 */
.logistics-box {
    position: absolute;
    bottom: 30px;
    right: 30px;
    animation: bobBox 2.5s ease-in-out infinite;
}
@keyframes bobBox {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-5px); }
}

/* 特性列表图标改为物流图标 */
.login-brand-feature-item .lf-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-brand-feature-item .lf-icon svg {
    width: 16px;
    height: 16px;
}

/* 背景浮动装饰粒子 */
.login-brand-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.lbp-item {
    position: absolute;
    opacity: 0.06;
    animation: floatUp linear infinite;
}
@keyframes floatUp {
    0%   { transform: translateY(0) rotate(0deg); opacity: 0.05; }
    50%  { opacity: 0.1; }
    100% { transform: translateY(-340px) rotate(180deg); opacity: 0; }
}

/* 让左侧品牌内容在粒子之上 */
.login-brand > *:not(.login-brand-particles) {
    position: relative;
    z-index: 1;
}

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
    .container-bg {
        width: 100%;
        flex-direction: column;
    }
    .login-brand {
        width: 100%;
        padding: 32px 24px;
        min-height: auto;
    }
    .login-container-wrapper {
        padding: 32px 24px;
    }
    .logistics-illustration {
        height: 80px;
    }
}
