/* ==========================================================================
   jike 用户中心 · 登录 / 注册 / 找回密码 版式
   --------------------------------------------------------------------------
   双栏卡片风：左侧整幅品牌插画（铺满高度），右侧浅色渐变底 + 白色表单卡片。
   变量：
     --loginbg            右侧背景图（后台可换）
     --loginIllustration  左侧插画（后台可换）
     --primary            主色（取主题色）
   所有规则限定在 body.jk-uc-auth 内，避免影响用户中心内页。
   ========================================================================== */

body.jk-uc-auth {
    margin: 0;
    padding: 0;
    background: #f1f3fb;
}

@media (min-width: 769px) {
    body.jk-uc-auth {
        overflow: hidden;
    }
}

body.jk-uc-auth .L_code {
    display: flex;
    justify-content: space-between;
    height: 100vh;
    overflow: hidden;
    margin: 0;
}

/* --------------------------------------------------------------------------
   左栏：整幅插画 + 左上 LOGO
   -------------------------------------------------------------------------- */
body.jk-uc-auth .L_code-left-side {
    position: relative;
    width: 520px;
    min-width: 30%;
    max-width: 35%;
    overflow: hidden;
    /* 插画加载失败 / 老浏览器不支持 webp 时的兜底底色 */
    background: linear-gradient(165deg, #dbe8ff 0%, #eaf1ff 45%, #f7faff 100%);
}

body.jk-uc-auth .L_code-left-side::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--loginIllustration);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 1;
}

body.jk-uc-auth .L_code-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100vh;
    padding: 20px 0 0 40px;
    overflow: hidden;
}

body.jk-uc-auth .L_code-content img {
    height: 37px;
    width: auto;
}

body.jk-uc-auth .L_code-content .GoBackToTheHomepage {
    display: none;
}

/* --------------------------------------------------------------------------
   右栏：背景 + 居中卡片
   -------------------------------------------------------------------------- */
body.jk-uc-auth .L_code-right-side {
    position: relative;
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
    background-color: #f1f3fb;
    background-image: var(--loginbg);
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: cover;
}

body.jk-uc-auth .L_code-right-content {
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

body.jk-uc-auth .L_code-right-form {
    position: relative;
    top: -24px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    width: 476px;
    padding: 28px 0 40px;
    background: #fff;
    box-shadow: 0 6px 32px 0 rgba(15, 32, 71, .08);
    max-height: calc(100vh - 56px);
    overflow-y: auto;
}

/* 微信扫码列（本主题未开启扫码，占位保留） */
body.jk-uc-auth .L_code-scan-login {
    display: none;
}

body.jk-uc-auth .L_code-login-form {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0 30px 0 40px;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   标签页
   -------------------------------------------------------------------------- */
body.jk-uc-auth .L_code-form-content {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    padding-bottom: 5px;
    margin-bottom: 12px;
    white-space: nowrap;
    border-bottom: 3px solid #f6f6f6;
}

body.jk-uc-auth .code_login-tab {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-right: 10px;
}

body.jk-uc-auth .code_login-tab .login-tab-item {
    position: relative;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    color: #8d94a1;
    text-decoration: none !important;
    cursor: pointer;
    transition: color .3s ease;
}

body.jk-uc-auth .code_login-tab .login-tab-item:hover {
    color: #5a6273;
}

body.jk-uc-auth .code_login-tab .login-tab-item.active {
    color: var(--primary, #0056ff) !important;
}

body.jk-uc-auth .code_login-tab .login-tab-separate {
    width: 1px;
    height: 16px;
    margin: 0 16px;
    background: #d9d9d9;
}

body.jk-uc-auth .transitionSwitching {
    position: absolute;
    bottom: -3px;
    height: 3px;
    background-color: var(--primary, #0056ff);
    transition: left .3s ease, width .3s ease;
}

body.jk-uc-auth .text-register {
    padding-bottom: 2px;
    font-size: 13px;
    color: #505363;
}

body.jk-uc-auth .text-register p {
    margin: 0;
}

body.jk-uc-auth .text-register a {
    color: var(--primary, #0056ff);
    text-decoration: none;
}

body.jk-uc-auth .tab-pane {
    display: none;
}

body.jk-uc-auth .tab-pane.active {
    display: block;
    animation: jkAuthFadeIn .4s ease;
}

@keyframes jkAuthFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   表单控件
   -------------------------------------------------------------------------- */
body.jk-uc-auth .form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 16px;
}

body.jk-uc-auth .form-group > label {
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 400;
    color: #505363;
}

body.jk-uc-auth .form-control {
    width: 100%;
    height: 42px;
    padding: 7px 12px;
    font-size: 14px;
    line-height: 24px;
    color: #1a1a1a;
    background-color: #fff;
    border: 1px solid #d4d9e2;
    border-radius: 0;
    box-shadow: none;
    transition: border-color .2s;
}

body.jk-uc-auth .form-control:focus {
    border-color: var(--primary, #0056ff);
    box-shadow: none;
}

body.jk-uc-auth .form-control::placeholder {
    color: #b3b9c6;
}

body.jk-uc-auth .input-group {
    display: flex;
    width: 100%;
}

body.jk-uc-auth .input-group > .form-control {
    flex: 1;
    width: 1%;
}

body.jk-uc-auth .input-group-prepend {
    display: flex;
    width: 108px;
    flex: 0 0 auto;
}

body.jk-uc-auth .input-group-prepend .form-control {
    border-right: none;
    padding-right: 4px;
}

body.jk-uc-auth .input-group-append {
    display: flex;
    align-items: stretch;
    flex: 0 0 auto;
    height: 42px;
}

body.jk-uc-auth .input-group-append .btn {
    height: 42px;
    padding: 0 14px;
    font-size: 13px;
    line-height: 42px;
    color: #fff;
    background: var(--primary, #0056ff);
    border: none;
    border-radius: 0;
    white-space: nowrap;
}

body.jk-uc-auth .input-group-append img {
    display: block;
    height: 42px;
    width: 120px;
    object-fit: cover;
    border: 1px solid #d4d9e2;
    border-left: none;
    cursor: pointer;
}

/* 图形验证码整行 */
body.jk-uc-auth .JYcaptchacss .input-group,
body.jk-uc-auth .form-group[class*="captcha"] .input-group {
    align-items: stretch;
}

body.jk-uc-auth .form-group[class*="captcha"] > label,
body.jk-uc-auth .JYcaptchacss > label {
    margin-bottom: 6px;
}

/* --------------------------------------------------------------------------
   按钮
   -------------------------------------------------------------------------- */
body.jk-uc-auth .btn {
    padding: 7px 10px;
    line-height: 26px;
    border-radius: 0;
}

body.jk-uc-auth .btn-primary {
    height: 48px;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    background-color: var(--primary, #0056ff);
    border: none;
    transition: background-color .3s;
}

body.jk-uc-auth .btn-primary:hover,
body.jk-uc-auth .btn-primary:focus {
    background-color: var(--primary-hover, #0047d1);
}

body.jk-uc-auth .btn-block {
    display: block;
    width: 100%;
}

body.jk-uc-auth .mt-3 > .btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 忘记密码 / 验证码登录 等文字链 */
body.jk-uc-auth .text-primary {
    color: var(--primary, #0056ff) !important;
    text-decoration: none;
}

body.jk-uc-auth .pointer {
    cursor: pointer;
}

/* 自定义字段里的勾选框 */
body.jk-uc-auth .jk-field-tick {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 400;
    color: #505363;
    cursor: pointer;
}

/* 验证码登录 / 忘记密码 一行 */
body.jk-uc-auth .jk-auth-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2px 0 0;
    font-size: 13px;
    line-height: 1.8;
}

body.jk-uc-auth .jk-auth-links.jk-auth-links-end {
    justify-content: flex-end;
}

body.jk-uc-auth .allow_login_code_captcha {
    display: none;
}

/* --------------------------------------------------------------------------
   底部：第三方登录 + 注册入口
   -------------------------------------------------------------------------- */
body.jk-uc-auth .jk-auth-oauth {
    margin-top: 22px;
    text-align: center;
}

body.jk-uc-auth .jk-auth-oauth .other-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 12px;
    color: #8f96a3;
}

body.jk-uc-auth .jk-auth-oauth .other-login .gray-line {
    flex: 1;
    height: 1px;
    background-color: rgba(143, 150, 163, .18);
}

body.jk-uc-auth .jk-auth-oauth ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

body.jk-uc-auth .jk-auth-oauth ul li {
    display: block;
}

body.jk-uc-auth .jk-auth-oauth .social-list-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    text-decoration: none;
}

body.jk-uc-auth .jk-auth-oauth .social-list-item svg,
body.jk-uc-auth .jk-auth-oauth .social-list-item img,
body.jk-uc-auth .jk-auth-oauth .social-list-item .icon {
    width: 26px;
    height: 26px;
}

body.jk-uc-auth .jk-auth-bottom-tip {
    margin-top: 26px;
    text-align: center;
    font-size: 14px;
    color: #505363;
}

body.jk-uc-auth .jk-auth-bottom-tip a {
    color: var(--primary, #0056ff);
    font-weight: 500;
    text-decoration: none;
}

/* 注册页的隐私条款勾选 */
body.jk-uc-auth .jk-auth-agree {
    margin-top: 18px;
    font-size: 13px;
    line-height: 1.7;
    color: #7a8296;
}

body.jk-uc-auth .jk-auth-agree input {
    margin-right: 6px;
    vertical-align: -1px;
}

body.jk-uc-auth .jk-auth-agree a {
    color: var(--primary, #0056ff);
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */
body.jk-uc-auth .L_code-right-footer {
    position: absolute;
    left: 40px;
    bottom: 10px;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 0 8px;
    justify-content: flex-start;
    text-align: center;
}

body.jk-uc-auth .L_code-right-footer a,
body.jk-uc-auth .L_code-right-footer span {
    font-size: 13px;
    font-weight: 400;
    line-height: 24px;
    color: #999;
    text-decoration: none;
}

body.jk-uc-auth .L_code-right-footer a:hover {
    color: #666;
}

/* --------------------------------------------------------------------------
   提示条（$ErrorMsg / $SuccessMsg）
   -------------------------------------------------------------------------- */
body.jk-uc-auth .jk-auth-alert {
    position: absolute;
    top: 24px;
    left: 50%;
    z-index: 10;
    width: 476px;
    max-width: calc(100% - 48px);
    transform: translateX(-50%);
}

body.jk-uc-auth .jk-auth-alert .alert {
    margin-bottom: 0;
    border-radius: 0;
    font-size: 13px;
}

/* --------------------------------------------------------------------------
   响应式：窄屏改为「顶部 LOGO 条 + 整幅表单」
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    body.jk-uc-auth .L_code {
        display: block;
        height: auto;
    }

    body.jk-uc-auth .L_code-left-side {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 99;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        height: 60px;
        background: #fff;
        border-bottom: 1px solid rgba(0, 0, 0, .1);
    }

    body.jk-uc-auth .L_code-left-side::before {
        display: none;
    }

    body.jk-uc-auth .L_code-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        height: 60px;
        padding: 0 20px;
    }

    body.jk-uc-auth .L_code-content .GoBackToTheHomepage {
        display: block;
        font-size: 16px;
        color: #999;
        text-decoration: none;
    }

    body.jk-uc-auth .L_code-right-side {
        display: block;
        height: auto;
        min-height: 100vh;
        padding: 60px 0 0;
    }

    body.jk-uc-auth .L_code-right-content {
        width: 100%;
    }

    body.jk-uc-auth .L_code-right-form {
        position: static;
        flex-direction: column;
        width: 100%;
        padding: 38px 22px 78px;
    }

    body.jk-uc-auth .L_code-login-form {
        padding: 0;
    }

    body.jk-uc-auth .code_login-tab .login-tab-item {
        font-size: 18px;
    }

    body.jk-uc-auth .code_login-tab .login-tab-separate {
        margin: 0 12px;
    }

    body.jk-uc-auth .jk-auth-alert {
        position: static;
        width: auto;
        max-width: none;
        margin: 0 20px;
        transform: none;
    }

    body.jk-uc-auth .L_code-right-footer {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 99;
        height: 40px;
        align-items: center;
        padding: 0 20px;
        background-color: #f0f0f0;
    }
}
