/* 云位仓登录页：全幅主视觉 + 右侧玻璃登录卡 */

.cpw-login-body {
    margin: 0;
    min-height: 100vh;
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: #f5f8fc;
    background: #0b1a28;
    overflow-x: hidden;
}

.cpw-login-hero {
    position: fixed;
    inset: 0;
    background:
        url("../images/cpw_login_hero.jpg") center center / cover no-repeat;
    z-index: 0;
}

.cpw-login-veil {
    position: fixed;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(8, 18, 30, 0.72) 0%, rgba(8, 18, 30, 0.35) 48%, rgba(8, 18, 30, 0.55) 100%),
        linear-gradient(180deg, rgba(8, 18, 30, 0.25) 0%, rgba(8, 18, 30, 0.55) 100%);
    pointer-events: none;
}

.cpw-login-shell {
    position: relative;
    z-index: 2;
    min-height: calc(100vh - 56px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 48px 6vw 72px;
    box-sizing: border-box;
}

.cpw-login-story {
    flex: 1 1 auto;
    max-width: 560px;
    padding-right: 24px;
}

.cpw-brand-mark {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.cpw-brand-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.cpw-brand-name {
    margin: 0;
    font-size: clamp(42px, 6vw, 64px);
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.1;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.cpw-brand-tagline {
    margin: 0 0 14px;
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 500;
    color: #9fd0f5;
    letter-spacing: 0.08em;
}

.cpw-brand-desc {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(245, 248, 252, 0.82);
    max-width: 28em;
}

.cpw-login-panel {
    flex: 0 0 auto;
    width: min(420px, 100%);
}

.cpw-login-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    padding: 28px 28px 22px;
    color: #1f2a37;
}

.cpw-login-card-head h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #152033;
}

.cpw-login-card-head p {
    margin: 6px 0 0;
    font-size: 13px;
    color: #6b7a8c;
}

.cpw-login-tabs {
    display: flex;
    gap: 4px;
    margin: 22px 0 18px;
    padding: 4px;
    background: #eef3f8;
    border-radius: 12px;
}

.cpw-tab {
    flex: 1;
    border: 0;
    background: transparent;
    color: #607084;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 6px;
    border-radius: 9px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.cpw-tab.active {
    background: #fff;
    color: #3c8dbc;
    box-shadow: 0 1px 4px rgba(21, 40, 60, 0.12);
}

.cpw-login-form {
    display: block;
}

.cpw-field {
    display: block;
    margin-bottom: 14px;
}

.cpw-field > span {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #5d6b7c;
    font-weight: 600;
}

.cpw-field input {
    width: 100%;
    height: 46px;
    border: 1px solid #d5dde7;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 15px;
    color: #1f2a37;
    background: #fff;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cpw-field input:focus {
    border-color: #3c8dbc;
    box-shadow: 0 0 0 3px rgba(60, 141, 188, 0.18);
}

.cpw-field input:disabled {
    background: #f3f6f9;
    color: #9aa7b5;
    cursor: not-allowed;
}

.cpw-code-row {
    display: flex;
    gap: 8px;
}

.cpw-code-row input {
    flex: 1;
}

.cpw-btn-primary,
.cpw-btn-ghost {
    border: 0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.cpw-btn-primary {
    width: 100%;
    height: 48px;
    margin-top: 8px;
    background: #3c8dbc;
    color: #fff;
    transition: background 0.15s ease;
}

.cpw-btn-primary:hover:not(:disabled) {
    background: #347aa5;
}

.cpw-btn-primary:disabled {
    background: #9bb9cc;
    cursor: not-allowed;
}

.cpw-btn-ghost {
    flex: 0 0 auto;
    min-width: 110px;
    height: 46px;
    padding: 0 12px;
    background: #e8f3fa;
    color: #3c8dbc;
}

.cpw-btn-ghost:disabled {
    color: #8aa0b0;
    background: #edf1f5;
    cursor: not-allowed;
}

.cpw-hint {
    margin: -4px 0 10px;
    font-size: 12px;
    color: #3c8dbc;
}

.cpw-error {
    margin: -4px 0 10px;
    font-size: 13px;
    color: #d9534f;
    font-weight: 600;
}

.cpw-placeholder {
    text-align: center;
    padding-top: 4px;
}

.cpw-qr-box {
    width: 148px;
    height: 148px;
    margin: 8px auto 16px;
    border-radius: 12px;
    border: 1px dashed #c5d3e0;
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cpw-qr-box.is-oauth {
    width: 200px;
    max-width: 100%;
    height: 230px;
    min-height: 0;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0 auto 4px;
    overflow: hidden;
}

.cpw-wx-login-host {
    width: 200px;
    height: 230px;
    max-width: 100%;
    overflow: hidden;
    margin: 0 auto;
    line-height: 0;
    position: relative;
}

.cpw-wx-login-host iframe {
    width: 200px !important;
    height: 230px !important;
    max-width: 100% !important;
    border: 0 !important;
    display: block !important;
}

/* 微信 Tab 表单不要被撑高 */
.cpw-login-form .cpw-qr-box.is-oauth + .cpw-btn-ghost,
.cpw-login-form .cpw-btn-ghost {
    margin-top: 8px;
}

.cpw-qr-box img {
    width: 148px;
    height: 148px;
    display: block;
    border-radius: 8px;
}

.cpw-qr-inner {
    width: 88px;
    height: 88px;
    border-radius: 10px;
    background: linear-gradient(145deg, #e8f4fb, #d5e8f4);
    color: #3c8dbc;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cpw-placeholder-title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: #243447;
}

.cpw-placeholder-desc {
    margin: 10px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: #7a8898;
}

.cpw-login-card-foot {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #e6edf4;
    font-size: 13px;
    color: #6b7a8c;
    text-align: center;
}

.cpw-login-card-foot a {
    color: #3c8dbc;
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
}

.cpw-login-card-foot a:hover {
    text-decoration: underline;
}

.cpw-login-beian {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px 16px 18px;
    font-size: 12px;
}

.cpw-login-beian a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
}

.cpw-login-beian a:hover {
    color: #fff;
}

@media (max-width: 900px) {
    .cpw-login-shell {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 36px 20px 40px;
        gap: 28px;
    }

    .cpw-login-story {
        max-width: none;
        padding-right: 0;
        text-align: left;
    }

    .cpw-login-panel {
        width: 100%;
        max-width: 440px;
        margin: 0 auto;
    }

    .cpw-brand-name {
        font-size: 40px;
    }
}
