/* 中欧班列主题登录页 */
body.ce-signin-page {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background: #071525;
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.ce-particles-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.ce-signin-shell {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 100vh;
}

/* 左侧视觉区 */
.ce-signin-visual {
    flex: 1.15;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 56px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 20% 40%, rgba(30, 120, 220, 0.28), transparent 60%),
        radial-gradient(ellipse 50% 50% at 80% 80%, rgba(212, 168, 83, 0.15), transparent 55%),
        linear-gradient(135deg, #071525 0%, #0f2d4f 45%, #123a62 100%);
}

.ce-signin-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 20%, transparent 100%);
}

.ce-glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
    animation: ce-orb-float 12s ease-in-out infinite;
}

.ce-glow-orb-1 {
    width: 320px;
    height: 320px;
    background: #2b7fd4;
    top: 10%;
    left: 8%;
    animation-delay: 0s;
}

.ce-glow-orb-2 {
    width: 240px;
    height: 240px;
    background: #d4a853;
    bottom: 15%;
    right: 12%;
    animation-delay: -4s;
}

.ce-glow-orb-3 {
    width: 180px;
    height: 180px;
    background: #c41e3a;
    top: 55%;
    left: 35%;
    opacity: 0.25;
    animation-delay: -8s;
}

@keyframes ce-orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(24px, -18px) scale(1.06); }
    66% { transform: translate(-16px, 12px) scale(0.96); }
}

.ce-visual-content {
    position: relative;
    max-width: 560px;
    color: #fff;
    animation: ce-fade-up 0.9s ease-out;
}

@keyframes ce-fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.ce-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #d4e8ff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    margin-bottom: 20px;
}

.ce-brand-badge .ce-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 12px #4ade80;
    animation: ce-pulse 2s ease-in-out infinite;
}

@keyframes ce-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

.ce-visual-title {
    font-size: clamp(28px, 3.2vw, 42px);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 12px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.ce-visual-title span {
    background: linear-gradient(90deg, #7ec8ff, #d4a853);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ce-visual-subtitle {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(220, 235, 255, 0.78);
    margin: 0 0 36px;
}

.ce-route-map {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin-bottom: 28px;
    border-radius: 16px;
    padding: 12px 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.ce-route-map-custom {
    padding: 8px;
    overflow: hidden;
}

.ce-visual-custom-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.ce-map-compass {
    display: flex;
    justify-content: space-between;
    padding: 0 6px 6px;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: rgba(200, 220, 245, 0.45);
    user-select: none;
}

.ce-route-svg {
    width: 100%;
    height: auto;
    display: block;
}

.ce-map-land {
    fill: rgba(126, 200, 255, 0.08);
    stroke: rgba(126, 200, 255, 0.15);
    stroke-width: 1;
}

.ce-map-land-eu { fill: rgba(212, 168, 83, 0.1); stroke: rgba(212, 168, 83, 0.2); }
.ce-map-land-asia { fill: rgba(74, 222, 128, 0.08); stroke: rgba(74, 222, 128, 0.18); }

.ce-map-equator {
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 1;
    stroke-dasharray: 4 6;
}

.ce-map-legend {
    fill: rgba(200, 220, 245, 0.45);
    font-size: 9px;
    letter-spacing: 0.06em;
}

.ce-route-path {
    fill: none;
    stroke: url(#ceRouteGradient);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 7 5;
    animation: ce-dash-flow 22s linear infinite;
    filter: drop-shadow(0 0 5px rgba(126, 200, 255, 0.7));
}

@keyframes ce-dash-flow {
    to { stroke-dashoffset: -240; }
}

.ce-route-glow {
    fill: none;
    stroke: rgba(126, 200, 255, 0.28);
    stroke-width: 7;
    stroke-linecap: round;
    filter: blur(3px);
}

.ce-map-node .ce-node-dot {
    fill: #7ec8ff;
    stroke: rgba(255, 255, 255, 0.5);
    stroke-width: 1;
    animation: ce-node-pulse 3s ease-in-out infinite;
}

.ce-map-node:nth-child(odd) .ce-node-dot { animation-delay: -1s; }

.ce-node-eu { fill: #d4a853; }
.ce-node-hub {
    fill: #4ade80;
    stroke: #fff;
    stroke-width: 1.5;
    filter: drop-shadow(0 0 8px rgba(74, 222, 128, 0.9));
}

@keyframes ce-node-pulse {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 1; }
}

.ce-node-label {
    text-anchor: middle;
    fill: rgba(210, 230, 255, 0.65);
    font-size: 9px;
}

.ce-node-label-hub {
    fill: #a7f3d0;
    font-size: 11px;
    font-weight: 600;
}

.ce-train-marker circle {
    filter: drop-shadow(0 0 8px rgba(212, 168, 83, 0.95));
}

.ce-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ce-stat-chip {
    flex: 1;
    min-width: 120px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.ce-stat-chip strong {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #7ec8ff;
    margin-bottom: 2px;
}

.ce-stat-chip span {
    font-size: 12px;
    color: rgba(220, 235, 255, 0.65);
}

/* 右侧登录区 */
.ce-signin-panel {
    flex: 0 0 min(480px, 42vw);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    background:
        linear-gradient(180deg, rgba(7, 21, 37, 0.92) 0%, rgba(15, 45, 79, 0.88) 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -12px 0 48px rgba(0, 0, 0, 0.2);
}

.ce-glass-card {
    width: 100%;
    max-width: 400px;
    padding: 36px 32px 28px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 1px 0 rgba(255, 255, 255, 0.15) inset;
    animation: ce-glass-in 0.7s ease-out 0.15s both;
}

@keyframes ce-glass-in {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.ce-signin-page .form-signin {
    width: 100%;
    max-width: none;
    margin: 0;
}

.ce-signin-page .ce-signin-form-header {
    text-align: center;
    margin-bottom: 28px;
}

.ce-signin-page .ce-signin-form-header img {
    max-width: 200px;
    max-height: 72px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.ce-signin-page .ce-signin-form-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #f0f6ff;
}

.ce-signin-page .ce-signin-form-header p {
    margin: 8px 0 0;
    font-size: 13px;
    color: rgba(220, 235, 255, 0.6);
}

.ce-signin-page .card.bg-white,
.ce-signin-page .card.mb15,
.ce-signin-page .card.mb-3 {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
}

.ce-signin-page .card-header {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.ce-signin-page .card-body {
    padding: 0 !important;
}

.ce-signin-page .form-control {
    height: 46px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #f0f6ff;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.ce-signin-page .form-control::placeholder {
    color: rgba(200, 220, 245, 0.45);
}

.ce-signin-page .form-control:focus {
    border-color: rgba(126, 200, 255, 0.65);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(126, 200, 255, 0.15), 0 0 20px rgba(126, 200, 255, 0.1);
    color: #fff;
}

.ce-signin-page label {
    color: rgba(220, 235, 255, 0.85);
    font-size: 13px;
}

.ce-signin-page .btn-primary {
    height: 46px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, #2b7fd4 0%, #1a5a9e 50%, #d4a853 150%);
    background-size: 200% auto;
    box-shadow: 0 8px 24px rgba(43, 127, 212, 0.35);
    transition: transform 0.2s, box-shadow 0.2s, background-position 0.4s;
}

.ce-signin-page .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(43, 127, 212, 0.45);
    background-position: right center;
}

.ce-signin-page .btn-default {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: #d4e8ff;
}

.ce-signin-page .alert-danger {
    border-radius: 10px;
    background: rgba(196, 30, 58, 0.15);
    border: 1px solid rgba(196, 30, 58, 0.35);
    color: #ffb4b4;
}

.ce-signin-page a {
    color: #7ec8ff;
    text-decoration: none;
    transition: color 0.2s;
}

.ce-signin-page a:hover {
    color: #d4a853;
}

.ce-signin-page .mt5,
.ce-signin-page .mt20 {
    color: rgba(220, 235, 255, 0.7);
    font-size: 13px;
}

.ce-signin-footer-note {
    margin-top: 24px;
    text-align: center;
    font-size: 11px;
    color: rgba(200, 220, 245, 0.35);
}

/* 响应式 */
@media (max-width: 991px) {
    .ce-signin-shell {
        flex-direction: column;
    }

    .ce-signin-visual {
        flex: none;
        min-height: 38vh;
        padding: 32px 24px;
    }

    .ce-route-map,
    .ce-stats-row {
        display: none;
    }

    .ce-visual-title {
        font-size: 24px;
    }

    .ce-signin-panel {
        flex: 1;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding: 24px 20px 40px;
    }
}

@media (max-width: 480px) {
    .ce-glass-card {
        padding: 28px 20px 22px;
    }
}

/* 注册页 */
.ce-signup-page .ce-signin-panel {
    align-items: flex-start;
    padding-top: 28px;
    padding-bottom: 28px;
    max-height: 100vh;
    overflow-y: auto;
}

.ce-signup-page .ce-glass-card-scroll {
    max-width: 420px;
    margin: 0 auto;
}

.ce-signup-page .form-group {
    margin-bottom: 14px;
}

.ce-signup-page .form-group > label,
.ce-signup-page .form-group label[for] {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: rgba(220, 235, 255, 0.85);
}

.ce-radio-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    padding-top: 4px;
}

.ce-radio-label {
    color: rgba(220, 235, 255, 0.8) !important;
    font-size: 13px;
    margin: 0 !important;
    cursor: pointer;
}

.ce-signin-page .form-check-input {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
}

.ce-signin-page .form-check-input:checked {
    background-color: #2b7fd4;
    border-color: #7ec8ff;
}

.ce-terms-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.ce-terms-label {
    font-size: 12px !important;
    line-height: 1.5;
    color: rgba(220, 235, 255, 0.7) !important;
    margin: 0 !important;
}

.ce-auth-switch-link {
    margin-top: 18px;
    text-align: center;
    font-size: 13px;
    color: rgba(220, 235, 255, 0.7);
}

.ce-signup-page #page-content {
    display: none;
}

/* 图形验证码 */
.ce-captcha-group {
    margin-bottom: 16px;
}

.ce-captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ce-captcha-row .form-control {
    flex: 1;
    min-width: 0;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.ce-captcha-img {
    flex-shrink: 0;
    width: 128px;
    height: 44px;
    max-width: 128px;
    max-height: 44px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid rgba(126, 200, 255, 0.35);
    cursor: pointer;
    background: rgba(12, 35, 64, 0.6);
}

.ce-captcha-hint {
    margin-top: 6px;
    font-size: 12px;
}

.ce-captcha-hint a {
    color: rgba(126, 200, 255, 0.75);
    text-decoration: none;
}

.ce-captcha-hint a:hover {
    color: #7ec8ff;
    text-decoration: underline;
}
