/* 4M康复空间 — 管理后台登录页 */
:root {
    --pjs-primary: #605ca8;
    --pjs-primary-dark: #4b4789;
    --pjs-primary-light: #7b77c0;
    --pjs-accent-pd: #00a65a;
    --pjs-accent-ad: #3c8dbc;
    --pjs-accent-cva: #f39c12;
    --pjs-text: #2c3e50;
    --pjs-muted: #7f8c8d;
    --pjs-border: #e8ecf1;
    --pjs-card-shadow: 0 18px 50px rgba(48, 46, 89, 0.18);
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

body.pjs-login-page {
    font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", Arial, sans-serif;
    background: #f4f6fb;
    min-height: 100vh;
}

.pjs-login-shell {
    display: flex;
    min-height: 100vh;
}

/* —— 左侧品牌区 —— */
.pjs-login-brand {
    flex: 1 1 52%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 56px;
    background: linear-gradient(145deg, #4b4789 0%, #605ca8 45%, #6f8fc7 100%);
    overflow: hidden;
    color: #fff;
}

.pjs-login-brand::before,
.pjs-login-brand::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.pjs-login-brand::before {
    width: 420px;
    height: 420px;
    top: -120px;
    right: -80px;
}

.pjs-login-brand::after {
    width: 280px;
    height: 280px;
    bottom: -60px;
    left: -40px;
}

.pjs-brand-inner {
    position: relative;
    z-index: 1;
    max-width: 480px;
}

.pjs-brand-logo {
    margin-bottom: 28px;
}

.pjs-brand-plate {
    background: #fff;
    border-radius: 16px;
    padding: 22px 28px;
    margin-bottom: 28px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.14);
}

.pjs-brand-plate img {
    display: block;
    width: 100%;
    max-width: 380px;
    height: auto;
}

.pjs-brand-mark {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
}

.pjs-brand-logo img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    padding: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.pjs-brand-logo h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.pjs-brand-logo h1 small {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    font-weight: 400;
    opacity: 0.85;
    letter-spacing: 1px;
}

.pjs-brand-desc {
    font-size: 15px;
    line-height: 1.8;
    opacity: 0.92;
    margin-bottom: 32px;
}

.pjs-disease-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}

.pjs-disease-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(4px);
}

.pjs-disease-tag i {
    font-size: 12px;
}

.pjs-disease-tag.pd { border-color: rgba(0, 166, 90, 0.5); }
.pjs-disease-tag.ad { border-color: rgba(60, 141, 188, 0.5); }
.pjs-disease-tag.cva { border-color: rgba(243, 156, 18, 0.5); }

.pjs-brand-features {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pjs-brand-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    opacity: 0.9;
}

.pjs-brand-features li i {
    width: 22px;
    text-align: center;
    opacity: 0.8;
}

/* —— 右侧登录区 —— */
.pjs-login-panel {
    flex: 1 1 48%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    background: #f4f6fb;
}

.pjs-login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--pjs-card-shadow);
    border: 1px solid var(--pjs-border);
    overflow: hidden;
}

.pjs-login-card-header {
    padding: 28px 36px 8px;
    text-align: center;
}

.pjs-login-card-logo {
    margin-bottom: 16px;
}

.pjs-login-card-logo img {
    height: 48px;
    width: auto;
}

.pjs-login-card-header h2 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    color: var(--pjs-text);
}

.pjs-login-card-header p {
    margin: 0;
    font-size: 14px;
    color: var(--pjs-muted);
}

.pjs-login-card-body {
    padding: 24px 36px 36px;
}

.pjs-login-card .form-group {
    margin-bottom: 20px;
}

.pjs-input-wrap {
    position: relative;
}

.pjs-input-wrap .form-control {
    height: 46px;
    padding-left: 42px;
    border-radius: 10px;
    border: 1px solid #dde2ea;
    box-shadow: none;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pjs-input-wrap .form-control:focus {
    border-color: var(--pjs-primary-light);
    box-shadow: 0 0 0 3px rgba(96, 92, 168, 0.15);
}

.pjs-input-wrap .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #aab2bd;
    font-size: 15px;
    pointer-events: none;
}

.pjs-login-card .has-error .form-control {
    border-color: #dd4b39;
}

.pjs-login-card .control-label {
    font-size: 12px;
    font-weight: normal;
    color: #dd4b39;
    margin-bottom: 6px;
}

.pjs-login-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    margin-bottom: 24px;
}

.pjs-login-actions .checkbox {
    margin: 0;
    font-size: 13px;
    color: var(--pjs-muted);
}

.pjs-btn-login {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--pjs-primary) 0%, var(--pjs-primary-dark) 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 8px 20px rgba(96, 92, 168, 0.35);
}

.pjs-btn-login:hover,
.pjs-btn-login:focus {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(96, 92, 168, 0.4);
}

.pjs-login-footer {
    text-align: center;
    padding: 0 36px 28px;
    font-size: 12px;
    color: #b0b7c3;
    line-height: 1.6;
}

.pjs-login-footer-copy {
    margin: 0 0 4px;
    color: #8a94a6;
}

.pjs-login-footer-product {
    margin: 0;
    color: #b0b7c3;
    font-size: 11px;
}

/* iCheck — 品牌紫 */
.pjs-login-card .icheckbox_square-purple,
.pjs-login-card .icheckbox_square-blue {
    margin-right: 6px;
    margin-top: -2px;
}

.pjs-login-actions .checkbox label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    padding: 4px 0;
    transition: color 0.15s;
}

.pjs-login-actions .checkbox label:hover {
    color: var(--pjs-primary-dark);
}

/* —— 移动端 —— */
@media (max-width: 991px) {
    .pjs-login-shell {
        flex-direction: column;
    }

    .pjs-login-brand {
        flex: none;
        padding: 36px 28px 32px;
    }

    .pjs-brand-logo h1 {
        font-size: 26px;
    }

    .pjs-brand-features {
        display: none;
    }

    .pjs-login-panel {
        flex: 1;
        padding: 0 20px 40px;
        margin-top: -20px;
    }

    .pjs-login-card {
        border-radius: 14px;
    }
}

@media (max-width: 480px) {
    .pjs-login-card-header,
    .pjs-login-card-body {
        padding-left: 24px;
        padding-right: 24px;
    }
}
