/* ==================== 登录页美化样式 v2.0 ==================== */

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: #333;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

a { text-decoration: none; color: inherit; transition: all 0.2s ease; }

/* ==================== 主背景 ==================== */
.login-wrapper {
    width: 100%;
    height: 100vh;
    background: linear-gradient(110deg, #0c1e3c 0%, #0f2a52 35%, #1565c0 75%, #1e88e5 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 深蓝背景光晕 */
.login-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(30, 136, 229, 0.35) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(21, 101, 192, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(12, 30, 60, 0.4) 0%, transparent 55%);
    pointer-events: none;
}

/* ==================== 背景装饰元素 ==================== */
.bg-decorations {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.deco {
    position: absolute;
    opacity: 0.35;
}

.deco-ship {
    width: 180px;
    left: 4%;
    bottom: 12%;
    animation: float 6s ease-in-out infinite;
}

.deco-plane {
    width: 140px;
    right: 6%;
    top: 12%;
    animation: fly 10s ease-in-out infinite;
}

.deco-box {
    width: 100px;
    left: 18%;
    top: 18%;
    animation: float 5s ease-in-out infinite 1s;
}

.deco-box2 {
    width: 90px;
    right: 14%;
    bottom: 18%;
    animation: float 5.5s ease-in-out infinite 0.5s;
}

.deco-cloud {
    width: 180px;
    left: -2%;
    top: 10%;
    opacity: 0.4;
    animation: drift 25s linear infinite;
}

.deco-cloud2 {
    width: 150px;
    right: -3%;
    bottom: 12%;
    opacity: 0.35;
    animation: drift 30s linear infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes fly {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(8px, -6px) rotate(1deg); }
    50% { transform: translate(0, -10px) rotate(0deg); }
    75% { transform: translate(-6px, -4px) rotate(-1deg); }
}

@keyframes drift {
    0% { transform: translateX(0); }
    100% { transform: translateX(60px); }
}

/* ==================== 登录卡片 ==================== */
.container-bg {
    position: relative;
    z-index: 1;
    width: 920px;
    height: 560px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    box-shadow:
        0 28px 80px rgba(30, 58, 95, 0.14),
        0 10px 28px rgba(30, 58, 95, 0.08);
    display: flex;
    overflow: hidden;
    animation: cardIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==================== 左侧品牌区 ==================== */
.brand-panel {
    flex: 1;
    position: relative;
    color: #fff;
    padding: 48px 44px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(160deg, rgba(12, 30, 60, 0.92) 0%, rgba(21, 60, 120, 0.88) 100%);
    overflow: hidden;
}

.brand-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 25% 25%, rgba(30, 136, 229, 0.25) 0%, transparent 45%),
        radial-gradient(circle at 80% 85%, rgba(0, 0, 0, 0.15) 0%, transparent 40%);
    pointer-events: none;
}

.brand-header {
    position: relative;
    z-index: 1;
}

.brand-logo {
    width: auto;
    height: 48px;
    max-width: 200px;
    object-fit: contain;
    margin-bottom: 32px;
}

.brand-slogan {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 2px;
    margin-bottom: 12px;
    margin-top: 60px;
}

.brand-slogan span {
    display: block;
}

.brand-tagline {
    font-size: 13px;
    opacity: 0.75;
    line-height: 1.6;
    letter-spacing: 1px;
    margin-bottom: 32px;
}

/* 服务特点列表 */
.brand-features {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 36px;
}

.brand-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    opacity: 0.9;
}

.brand-feature-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(100, 181, 246, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-feature-icon::after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #64b5f6;
}

/* 运输图标 */
.brand-transport {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    padding: 20px 0;
}

.brand-transport-icon {
    width: 48px;
    height: 48px;
    opacity: 0.9;
}

.brand-footer {
    position: relative;
    z-index: 1;
    font-size: 12px;
    opacity: 0.6;
    letter-spacing: 1px;
}

/* ==================== 右侧表单区 ==================== */
.login-container-wrapper {
    width: 440px;
    padding: 56px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.form-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.5px;
}

.form-logo {
    width: auto;
    height: 40px;
    max-width: 140px;
    object-fit: contain;
}

.form-subtitle {
    font-size: 14px;
    color: #999;
    margin-bottom: 36px;
}

/* ==================== 输入框 ==================== */
.input-wrapper {
    margin-bottom: 20px;
}

.iw_title {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.input-box {
    height: 48px;
    background: #f7f8fa;
    border: 1.5px solid transparent;
    border-radius: 10px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.input-box:hover {
    background: #f0f2f5;
}

.input-box:focus-within {
    background: #fff;
    border-color: #0077b6;
    box-shadow: 0 0 0 4px rgba(0, 119, 182, 0.08);
}

.input-box .ib_icon {
    width: 20px;
    height: 20px;
    background: url(../../common/images/icon1.png) no-repeat center;
    background-size: contain;
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.input-wrapper:nth-child(2) .ib_icon {
    background: url(../../common/images/icon2.png) no-repeat center;
    background-size: contain;
}

.input-box:focus-within .ib_icon {
    opacity: 1;
}

.input-box input {
    flex: 1;
    margin-left: 12px;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: #333;
}

.input-box input::placeholder {
    color: #bbb;
    font-size: 14px;
}

/* ==================== 错误提示 ==================== */
.font-red {
    color: #ff3b30;
    text-align: center;
    font-size: 13px;
    min-height: 2px;
    margin: 2px 0 8px;
}

/* ==================== 登录按钮 ==================== */
.button {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #00a8e8 0%, #0077b6 100%);
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-top: 8px;
    margin-bottom: 16px;
    border: none;
    outline: none;
    box-shadow: 0 6px 16px rgba(0, 119, 182, 0.28);
    transition: all 0.2s ease;
    letter-spacing: 1px;
    user-select: none;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 119, 182, 0.38);
    background: linear-gradient(135deg, #00b4f5 0%, #0088d1 100%);
}

.button:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.28);
}

/* ==================== LINE 登录按钮 ==================== */
.line-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #00d318 0%, #00b900 100%);
    border-radius: 10px;
    color: #fff;
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(0, 185, 0, 0.22);
    transition: all 0.2s ease;
    letter-spacing: 1px;
}

.line-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 185, 0, 0.32);
    background: linear-gradient(135deg, #00e61c 0%, #00c400 100%);
}

.line-btn img {
    width: auto;
    height: 28px;
    vertical-align: middle;
    margin-right: 8px;
}

/* ==================== 其他登录方式 ==================== */
.other-way {
    display: flex;
    justify-content: space-between;
    padding: 0 4px;
    margin-top: 4px;
}

.other-way a {
    font-size: 13px;
    color: #999;
    transition: color 0.2s;
    position: relative;
}

.other-way a:hover {
    color: #0077b6;
}

.other-way a:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 12px;
    background: #e5e5e5;
}

/* ==================== 底部分隔线 ==================== */
.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #ccc;
    font-size: 12px;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #eee;
}

.divider::before { margin-right: 12px; }
.divider::after  { margin-left: 12px; }

/* ==================== 页脚 ==================== */
.footer {
    text-align: center;
    position: fixed;
    bottom: 16px;
    width: 100%;
    color: rgba(255, 255, 255, 0.85);
    z-index: 2;
    font-size: 12px;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.footer a { color: rgba(255, 255, 255, 0.95); }
.footer a:hover { color: #64b5f6; }

.footer .sitesmsg { margin-bottom: 4px; }
.footer .service { font-size: 11px; opacity: 0.85; }

/* ==================== 右侧固定客服条 ==================== */
.float-wrappper {
    display: flex;
    position: fixed;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    z-index: 20;
    height: auto;
    gap: 12px;
}

.float-item,
.codeBox {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    cursor: pointer;
    background: #fff;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.12),
        0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
}

.float-item:hover,
.codeBox:hover {
    transform: translateY(-3px);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.16),
        0 2px 6px rgba(0, 0, 0, 0.1);
}

.float-item .fi-icon,
.codeBox .fi-icon {
    width: 26px;
    height: 26px;
    background: url(../images/wangwang.png) no-repeat center;
    background-size: contain;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.float-item:hover .fi-icon,
.codeBox:hover .fi-icon {
    transform: scale(1.08);
}

.float-item .fi-text {
    display: none;
}

.float-item1 { background: linear-gradient(135deg, #ff9a00 0%, #ff7200 100%); }
.float-item1 .fi-icon { background-image: url(../images/wangwang.png); filter: brightness(0) invert(1); }

.float-item2 { background: linear-gradient(135deg, #4facfe 0%, #2b94ff 100%); }
.float-item2 .fi-icon { background-image: url(../images/qq.png); filter: brightness(0) invert(1); }

.float-item3 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.float-item3 .fi-icon { background-image: url(../images/tel.png); filter: brightness(0) invert(1); }

.float-item4 { background: linear-gradient(135deg, #667eea 0%, #425f9b 100%); }
.float-item4 .fi-icon { background-image: url(../images/Facebook.png); filter: brightness(0) invert(1); }

.float-item5 { background: linear-gradient(135deg, #00e676 0%, #00c300 100%); }
.float-item5 .fi-icon { background-image: url(../images/line.png); filter: brightness(0) invert(1); }

.codeBox {
    background: linear-gradient(135deg, #00e676 0%, #00c300 100%);
    padding: 0;
}

.codeBox .fi-icon {
    background-image: url(../images/line.png);
    filter: brightness(0) invert(1);
}

/* 三个二维码入口：LINE / 微信 / 公众号 */
.codeBox-line {
    background: linear-gradient(135deg, #00e676 0%, #00c300 100%);
}
.codeBox-line .fi-icon { background-image: url(../images/line.png); }

.codeBox-wx {
    background: linear-gradient(135deg, #43e97b 0%, #2ea44f 100%);
}
.codeBox-wx .fi-icon { background-image: url(/Content/Phone/src/images/weixin.png); }

.codeBox-gzh {
    background: linear-gradient(135deg, #ff6b6b 0%, #fd4c5d 100%);
}
.codeBox-gzh .fi-icon { background-image: url(../images/erweima2.png); }

.codeBox .iconbox {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.codeBox img {
    position: absolute;
    right: 62px;
    top: 50%;
    transform: translateY(-50%);
    width: 110px;
    height: 110px;
    display: none;
    background: #fff;
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    box-sizing: content-box;
    z-index: 30;
}

.codeBox:hover > img { display: block; }

/* 提示标签 */
.float-item::after,
.codeBox::after {
    content: attr(data-tip);
    position: absolute;
    right: 62px;
    top: 50%;
    transform: translateY(-50%) scale(0.9);
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.float-item:hover::after,
.codeBox:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1);
}

.float-item[data-tip=""]::after,
.codeBox[data-tip=""]::after {
    display: none;
}

/* ==================== 响应式 ==================== */
@media (max-width: 960px) {
    .container-bg {
        width: 90%;
        max-width: 920px;
    }
    .brand-panel {
        padding: 40px 32px;
    }
    .brand-slogan { font-size: 26px; }
    .login-container-wrapper {
        padding: 40px 36px;
    }
}

@media (max-width: 768px) {
    .container-bg {
        width: 92%;
        height: auto;
        flex-direction: column;
    }
    .brand-panel {
        padding: 32px 28px;
    }
    .brand-logo { display: none; }
    .brand-slogan { font-size: 22px; }
    .brand-tagline { display: none; }
    .brand-footer { display: none; }
    .login-container-wrapper {
        width: 100%;
        padding: 32px 28px;
    }
    .form-header {
        justify-content: flex-start;
        gap: 12px;
    }
    .form-logo {
        height: 32px;
        max-width: 110px;
    }
    .deco-ship { width: 100px; left: 3%; bottom: 8%; }
    .deco-plane { width: 80px; right: 5%; top: 8%; }
    .deco-box, .deco-box2 { display: none; }
    .deco-cloud, .deco-cloud2 { opacity: 0.3; }
    .float-wrappper { display: none; }
    .brand-features { display: none; }
    .brand-transport { gap: 32px; padding: 12px 0; }
    .brand-transport-icon { width: 36px; height: 36px; }
    .footer { font-size: 11px; bottom: 8px; color: rgba(255, 255, 255, 0.85); }
}
