/* 96IDC Theme | Author: 96IDC | QQ: 2386214936 | Site: www.96idc.cn */
/* ==========================================================================
   96IDC Theme | Author: 96IDC | QQ: 2386214936 | Site: www.96idc.cn
   File: assets_custom/css/96idc-login.css
   Scope: 登录 / 注册 / 找回密码 / 访问令牌登录 页面外壳
   说明: 全部自定义类名统一使用 idc- 前缀，避免与 bootstrap / app.css 冲突。
   设计语言: 主色 #006eff，直角卡片，淡阴影，大留白，浅灰渐变底。
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 设计令牌
   -------------------------------------------------------------------------- */
:root {
    --idc-primary: #006eff;
    --idc-primary-hover: #075be8;
    --idc-primary-soft: rgba(18, 103, 245, 0.08);
    --idc-text: #101828;
    --idc-text-secondary: #5f6877;
    --idc-text-placeholder: #9299a5;
    --idc-border: #dfe3e8;
    --idc-border-strong: #cfd5dc;
    --idc-input-bg: #f5f6f7;
    --idc-card-bg: #ffffff;
    --idc-page-bg: #eef0f3;
    --idc-header-h: 64px;
    --idc-footer-h: auto;
    --idc-card-w: 480px;
    --idc-card-pad: 50px;
    --idc-control-h: 46px;
    --idc-radius: 0;
}

/* --------------------------------------------------------------------------
   2. 基础重置（仅作用于认证页外壳）
   -------------------------------------------------------------------------- */
html.idc-html,
body.idc-auth-body {
    width: 100%;
    min-width: 320px;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body.idc-auth-body {
    overflow-x: hidden;
    color: var(--idc-text);
    background: var(--idc-page-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.idc-auth-body * ,
body.idc-auth-body *::before,
body.idc-auth-body *::after {
    box-sizing: border-box;
}

body.idc-auth-body a {
    color: var(--idc-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

body.idc-auth-body a:hover {
    color: var(--idc-primary-hover);
    text-decoration: none;
}

body.idc-auth-body button,
body.idc-auth-body input,
body.idc-auth-body select,
body.idc-auth-body textarea {
    font-family: inherit;
}

body.idc-auth-body img {
    max-width: 100%;
}

/* Bootstrap 的 .row 负边距会在卡片里造成横向溢出，这里收敛 */
body.idc-auth-body .idc-auth-card .row {
    margin-left: 0;
    margin-right: 0;
}

body.idc-auth-body .idc-auth-card .row > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
}

/* --------------------------------------------------------------------------
   3. 页面骨架
   -------------------------------------------------------------------------- */
.idc-auth-page {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    background:
        linear-gradient(135deg, #f1f2f5 0%, #e8eaee 45%, #f4f5f7 100%);
}

/* 背景图层
   - 缺省兜底：主题自带的 /themes/clientarea/ywy/../img/login-bg.jpg
     （上面叠加一层浅色渐变，保证卡片区域始终够干净、文字可读）
   - 若后台配置了登录背景图（Setting.custom_login_background_img），由 header 改成
     .idc-auth-bg--custom 并把该图作为 <img> 承载，避免与渐变图层冲突。 */
.idc-auth-bg {
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image:
        linear-gradient(135deg, rgba(241, 242, 245, 0.92) 0%, rgba(232, 234, 238, 0.9) 45%, rgba(244, 245, 247, 0.92) 100%),
        url('/themes/clientarea/ywy/../img/login-bg.jpg');
    background-position: center center, center center;
    background-repeat: no-repeat, no-repeat;
    background-size: cover, cover;
    pointer-events: none;
}

/* 后台自定义背景图：去掉兜底图上的渐变遮罩，图片由 .idc-auth-bg-img 承载 */
.idc-auth-bg--custom {
    background-image: none;
}

.idc-auth-bg-img {
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* 顶部：Logo + 快捷入口 ---------------------------------------------------- */
.idc-auth-header {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: none;
    width: 100%;
    min-height: var(--idc-header-h);
    padding: 16px 5vw;
}

.idc-auth-logo {
    display: inline-flex;
    align-items: center;
    max-width: 60%;
}

.idc-auth-logo img {
    display: block;
    width: auto;
    max-width: 180px;
    height: 44px;
    object-fit: contain;
}

.idc-auth-logo-text {
    display: inline-block;
    color: var(--idc-text);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.idc-auth-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
}

.idc-auth-nav a {
    color: var(--idc-text-secondary);
    font-size: 14px;
    white-space: nowrap;
}

.idc-auth-nav a:hover {
    color: var(--idc-primary);
}

.idc-auth-nav a.is-primary {
    color: var(--idc-primary);
    font-weight: 500;
}

/* 主体：卡片 + 宣传区 ------------------------------------------------------ */
.idc-auth-main {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: var(--idc-card-w) minmax(0, 1fr);
    align-items: center;
    column-gap: 110px;
    flex: 1 0 auto;
    width: min(1320px, calc(100% - 10vw));
    margin: 0 auto;
    padding: 32px 0 48px;
}

/* 登录卡片 ---------------------------------------------------------------- */
.idc-auth-card {
    position: relative;
    width: var(--idc-card-w);
    max-width: 100%;
    padding: var(--idc-card-pad);
    background: var(--idc-card-bg);
    border: 1px solid rgba(223, 227, 232, 0.6);
    border-radius: var(--idc-radius);
    box-shadow:
        0 1px 2px rgba(18, 24, 40, 0.015),
        0 8px 40px rgba(37, 45, 61, 0.018);
}

.idc-auth-card--wide {
    width: min(560px, 100%);
}

.idc-auth-heading {
    margin-bottom: 30px;
}

.idc-auth-title {
    margin: 0;
    color: var(--idc-text);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.5px;
}

.idc-auth-sub {
    margin: 8px 0 0;
    color: var(--idc-text-secondary);
    font-size: 14px;
    line-height: 22px;
}

.idc-auth-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 10px;
    color: var(--idc-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
}

.idc-auth-links a {
    color: var(--idc-primary);
    font-weight: 600;
}

.idc-auth-links a:hover {
    color: var(--idc-primary-hover);
}

/* 右上角「忘记密码？」角标（仅登录页使用） */
.idc-forgot-corner {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 22px 6px 12px;
    color: rgba(0, 60, 171, 0.85);
    font-size: 13px;
    font-weight: 600;
    background: rgba(18, 103, 245, 0.16);
    -webkit-clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
    clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.idc-forgot-corner:hover {
    color: #0b5cdf;
    background: #cde0ff;
}

/* --------------------------------------------------------------------------
   4. 登录方式 Tab
   -------------------------------------------------------------------------- */
.idc-tabs.nav-tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    width: max-content;
    max-width: 100%;
    margin: 0 0 28px;
    padding: 6px 8px;
    list-style: none;
    background: #eef0f3;
    border: 0;
    border-radius: var(--idc-radius);
}

.idc-tabs.nav-tabs .nav-item {
    flex: none;
    width: auto;
    margin: 0;
}

.idc-tabs.nav-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 6px 14px;
    color: #344054;
    font-size: 14px;
    line-height: 22px;
    background: transparent;
    border: 0;
    border-radius: var(--idc-radius);
    transition: color 0.2s ease, background-color 0.2s ease;
}

.idc-tabs.nav-tabs .nav-link:hover {
    color: var(--idc-primary-hover);
    background: #f5f6f8;
    border: 0;
}

.idc-tabs.nav-tabs .nav-link.active,
.idc-tabs.nav-tabs .nav-item.show .nav-link {
    color: var(--idc-text);
    font-weight: 600;
    background: #ffffff;
    border: 0;
}

.idc-auth-card .tab-content,
.idc-auth-card .tab-pane {
    width: 100%;
}

/* --------------------------------------------------------------------------
   5. 表单控件
   -------------------------------------------------------------------------- */
.idc-form-group,
.idc-auth-card .form-group {
    margin-bottom: 20px;
}

.idc-auth-card .form-group:last-child {
    margin-bottom: 0;
}

/* 表单沿用 placeholder 式设计，隐藏字段标签；
   但协议勾选行本身是 <label class="idc-agreement">，必须排除，否则整行不可见 */
.idc-form-label,
.idc-auth-card label:not(.idc-agreement) {
    display: none;
}

.idc-auth-card .form-control {
    display: block;
    width: 100%;
    height: var(--idc-control-h);
    padding: 0 16px;
    color: var(--idc-text);
    font-size: 14px;
    line-height: calc(var(--idc-control-h) - 2px);
    background-color: var(--idc-input-bg);
    border: 1px solid var(--idc-border);
    border-radius: var(--idc-radius);
    box-shadow: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.idc-auth-card .form-control:hover {
    border-color: var(--idc-border-strong);
}

.idc-auth-card .form-control:focus {
    color: var(--idc-text);
    background-color: #ffffff;
    border-color: var(--idc-primary);
    box-shadow: 0 0 0 3px var(--idc-primary-soft);
    outline: 0;
}

.idc-auth-card .form-control::placeholder {
    color: var(--idc-text-placeholder);
    opacity: 1;
}

.idc-auth-card .form-control:disabled,
.idc-auth-card .form-control[disabled] {
    color: #98a2b3;
    background-color: #f2f3f4;
    cursor: not-allowed;
}

/* 文本域（注册自定义字段） */
.idc-auth-card textarea.form-control {
    height: auto;
    min-height: 96px;
    padding: 12px 16px;
    line-height: 1.5;
    resize: vertical;
}

/* 下拉（注册自定义字段 / 销售代表） */
.idc-auth-card select.form-control {
    padding-right: 34px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #7d8592 50%),
        linear-gradient(135deg, #7d8592 50%, transparent 50%);
    background-position:
        calc(100% - 19px) calc(50% + 1px),
        calc(100% - 14px) calc(50% + 1px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

/* 区号下拉不使用上方的箭头绘制，改为容器伪元素绘制 */
.idc-auth-card .idc-phone-group select.form-control {
    background-image: none;
    padding-right: 30px;
}

/* 勾选框字段（注册自定义字段 tickbox） */
.idc-auth-card .form-group > input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: -2px;
    accent-color: var(--idc-primary);
}

/* 校验失败提示 */
.idc-auth-card .invalid-feedback {
    display: none;
    margin-top: 6px;
    color: #d92d20;
    font-size: 12px;
    line-height: 18px;
}

.idc-auth-card .form-control.is-invalid ~ .invalid-feedback,
.idc-auth-card .was-validated .form-control:invalid ~ .invalid-feedback {
    display: block;
}

.idc-auth-card .was-validated .form-control:invalid,
.idc-auth-card .form-control.is-invalid {
    border-color: #f04438;
}

/* --------------------------------------------------------------------------
   6. 输入组 / 区号 / 验证码
   -------------------------------------------------------------------------- */
.idc-auth-card .input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
    flex-wrap: nowrap;
}

.idc-auth-card .input-group > .form-control {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}

.idc-auth-card .input-group-prepend,
.idc-auth-card .input-group-append {
    display: flex;
    align-items: stretch;
    flex: none;
}

/* 区号下拉：独立直角块，中间一条细分隔线 */
.idc-phone-group {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: var(--idc-control-h);
    background: var(--idc-input-bg);
    border: 1px solid var(--idc-border);
    border-radius: var(--idc-radius);
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.idc-phone-group:focus-within {
    background: #ffffff;
    border-color: var(--idc-primary);
    box-shadow: 0 0 0 3px var(--idc-primary-soft);
}

.idc-phone-group .input-group-prepend {
    position: relative;
    flex: 0 0 118px;
    width: 118px;
    border-right: 1px solid var(--idc-border);
}

.idc-phone-group .input-group-prepend::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 14px;
    width: 6px;
    height: 6px;
    border-right: 1px solid #7d8592;
    border-bottom: 1px solid #7d8592;
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

.idc-phone-group select.form-control,
.idc-phone-group .idc-phone-code,
.idc-auth-card .idc-phone-group select.form-control {
    width: 100%;
    height: 100%;
    min-width: 0;
    padding: 0 30px 0 14px;
    color: #475467;
    font-size: 14px;
    background-color: transparent !important;
    background-image: none !important;
    background-repeat: no-repeat;
    border: 0;
    border-radius: var(--idc-radius);
    box-shadow: none !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.idc-phone-group .idc-phone-code:focus,
.idc-phone-group select.form-control:focus {
    background-color: transparent;
    box-shadow: none;
    outline: 0;
}

.idc-phone-group .idc-phone-number {
    flex: 1 1 auto;
    min-width: 0;
}

.idc-phone-group .idc-phone-number .form-control {
    height: 100%;
    background-color: transparent;
    border: 0;
    border-radius: var(--idc-radius);
    box-shadow: none;
}

.idc-phone-group .idc-phone-number .form-control:hover {
    border-color: transparent;
}

.idc-phone-group .idc-phone-number .form-control:focus {
    background-color: #ffffff;
    box-shadow: none;
}

/* select2 美化后的区号（若主题启用了 select2） */
.idc-phone-group .select2-container {
    width: 100% !important;
    height: 100%;
}

.idc-phone-group .select2-container--default .select2-selection--single {
    height: 100%;
    background-color: transparent;
    border: 0;
    border-radius: var(--idc-radius);
}

.idc-phone-group .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 14px;
    color: #475467;
    font-size: 14px;
    line-height: calc(var(--idc-control-h) - 2px);
}

.idc-phone-group .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: 6px;
}

/* 验证码：输入框 + 获取验证码按钮 */
.idc-code-group {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.idc-code-group .form-control {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}

.idc-code-btn,
.idc-auth-card .input-group-append .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    min-width: 118px;
    height: var(--idc-control-h);
    padding: 0 16px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    background: var(--idc-primary);
    border: 1px solid var(--idc-primary);
    border-radius: var(--idc-radius);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.idc-code-btn:hover,
.idc-auth-card .input-group-append .btn:hover {
    color: #ffffff;
    background: var(--idc-primary-hover);
    border-color: var(--idc-primary-hover);
}

.idc-code-btn:disabled,
.idc-auth-card .input-group-append .btn:disabled {
    color: #ffffff;
    background: #a9c4f8;
    border-color: #a9c4f8;
    cursor: not-allowed;
}

/* 图形验证码（includes/verify） */
.idc-auth-card .form-group[id^="allow_"],
.idc-auth-card .form-group.allow_login_phone_captcha,
.idc-auth-card .form-group.allow_login_code_captcha,
.idc-auth-card .form-group.allow_login_email_captcha,
.idc-auth-card .form-group.allow_register_email_captcha,
.idc-auth-card .form-group.allow_register_phone_captcha,
.idc-auth-card .form-group.allow_email_forgetpwd_captcha,
.idc-auth-card .form-group.allow_phone_forgetpwd_captcha {
    margin-bottom: 20px;
}

/* 验证码行：输入框 + 图形验证码
   注意：includes/verify 给 img 写了内联 width/min-width/min-height，
        其中 min-height:40px 会与这里的行高 46px 冲突，
        导致图片把输入框顶歪或溢出 → 必须用 !important 压掉内联值。 */
.idc-auth-card .captcha-field .input-group {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    width: 100%;
}

/* 输入框吃掉剩余宽度，并允许收缩到 0 以下不撑破容器 */
.idc-auth-card .captcha-field .input-group > .form-control {
    flex: 1 1 auto;
    width: 1% !important;
    min-width: 0;
    max-width: none;
}

/* 图片容器：固定宽度、不可收缩，作为输入框内的一格。
   ------------------------------------------------------------------
   这里**刻意保留** Bootstrap 的 .input-group-append { margin-left: -1px }。
   那条负边距是 Bootstrap 的既定设计：append 里的元素自带左边框，
   左移 1px 后与输入框的右边框重叠成一条线，视觉上是「一格接一格」。
   因此图片必须保留 border-left（见下方 img 规则），
   若把 border-left 设为 0，负边距就会让图片白底直接盖住输入框边框。
   ------------------------------------------------------------------ */
.idc-auth-card .captcha-field .input-group-append,
.idc-auth-card .input-group-append {
    display: flex;
    align-items: stretch;
    flex: 0 0 auto;
    width: auto;
}

.idc-auth-card .input-group-append img {
    display: block;
    width: 118px !important;
    min-width: 118px !important;
    max-width: 118px !important;
    height: var(--idc-control-h);
    min-height: var(--idc-control-h) !important;
    max-height: var(--idc-control-h);
    background: #ffffff;
    /* 保留右边框与左边框：左边框与输入框右边框重叠，形成一条分隔线，
       这是 Bootstrap 输入组的既定样式，不要改成 border-left: 0 */
    border: 1px solid var(--idc-border);
    border-radius: var(--idc-radius);
    cursor: pointer;
    object-fit: cover;
}

/* --------------------------------------------------------------------------
   7. 主按钮 / 次要按钮
   -------------------------------------------------------------------------- */
.idc-auth-card .btn {
    border-radius: var(--idc-radius);
    box-shadow: none;
}

.idc-submit,
.idc-auth-card .thm_btn,
.idc-auth-card .btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: var(--idc-control-h);
    margin: 0;
    padding: 0 16px;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-align: center;
    text-transform: none;
    background-color: var(--idc-primary) !important;
    border: 1px solid var(--idc-primary) !important;
    border-radius: var(--idc-radius) !important;
    box-shadow: 0 10px 28px rgba(16, 100, 246, 0.12) !important;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.idc-submit:hover,
.idc-auth-card .thm_btn:hover,
.idc-auth-card .btn-primary:hover {
    color: #ffffff !important;
    background-color: var(--idc-primary-hover) !important;
    border-color: var(--idc-primary-hover) !important;
    box-shadow: 0 12px 30px rgba(16, 100, 246, 0.2) !important;
}

.idc-submit:active,
.idc-auth-card .thm_btn:active,
.idc-auth-card .btn-primary:active {
    transform: translateY(1px);
}

.idc-submit:focus,
.idc-auth-card .thm_btn:focus,
.idc-auth-card .btn-primary:focus {
    box-shadow: 0 0 0 3px var(--idc-primary-soft) !important;
    outline: 0;
}

.idc-submit:disabled,
.idc-auth-card .thm_btn:disabled,
.idc-auth-card .btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.idc-auth-card .btn-block {
    display: flex;
    width: 100%;
}

/* 链接型按钮（验证码登录 / 密码登录 切换等） */
.idc-methods {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.idc-methods .pointer,
.idc-methods a {
    cursor: pointer;
    color: var(--idc-text-secondary) !important;
    font-size: 13px;
    line-height: 20px;
    transition: color 0.2s ease;
}

.idc-methods .pointer:hover,
.idc-methods a:hover {
    color: var(--idc-primary) !important;
}

.idc-auth-card .text-primary {
    color: var(--idc-text-secondary) !important;
    font-size: 13px;
}

.idc-auth-card .text-primary:hover {
    color: var(--idc-primary) !important;
}

.idc-auth-card .font-weight-medium {
    font-weight: 600;
}

.idc-auth-card .pointer {
    cursor: pointer;
}

/* 协议勾选行 */
.idc-agreement {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 4px;
    color: var(--idc-text-secondary);
    font-size: 13px;
    line-height: 20px;
}

.idc-agreement input[type="checkbox"] {
    flex: none;
    width: 15px;
    height: 15px;
    margin: 3px 0 0;
    accent-color: var(--idc-primary);
    cursor: pointer;
}

.idc-agreement a {
    color: var(--idc-primary);
    font-weight: 600;
}

/* 底部引导一行（还没有账户 / 已有账户） */
.idc-auth-foot {
    margin-top: 22px;
    color: var(--idc-text-secondary);
    font-size: 14px;
    line-height: 22px;
    text-align: center;
}

.idc-auth-foot p {
    margin: 0;
}

.idc-auth-foot a {
    color: var(--idc-primary);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   8. 第三方登录 / 右侧宣传区
   -------------------------------------------------------------------------- */
.idc-oauth {
    margin-top: 26px;
    text-align: center;
}

.idc-oauth-title {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
    color: var(--idc-text-placeholder);
    font-size: 12px;
}

.idc-oauth-title::before,
.idc-oauth-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--idc-page-bg);
}

.idc-oauth-title span {
    padding: 0 12px;
}

.idc-oauth-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.idc-oauth-list .list-inline-item {
    margin: 0 5px;
}

.idc-oauth-list .social-list-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
}

.idc-oauth-list .social-list-item img,
.idc-oauth-list .social-list-item .icon {
    width: 32px;
    height: 32px;
}

.idc-promo {
    align-self: center;
    width: 100%;
    max-width: 660px;
}

.idc-promo-title {
    margin: 0 0 18px;
    color: #0b1220;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -0.5px;
}

.idc-promo-lead {
    margin: 0 0 26px;
    color: var(--idc-text-secondary);
    font-size: 15px;
    line-height: 26px;
}

.idc-promo-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.idc-promo-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    color: #344054;
    font-size: 14.5px;
    line-height: 24px;
}

.idc-promo-list li i {
    flex: none;
    margin-top: 3px;
    color: var(--idc-primary);
    font-size: 14px;
}

.idc-promo-list li em {
    display: block;
    margin-top: 2px;
    color: var(--idc-text-placeholder);
    font-size: 13px;
    font-style: normal;
}

.idc-promo-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
}

.idc-promo-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: max-content;
    padding: 10px 22px;
    color: var(--idc-primary) !important;
    font-size: 15px;
    font-weight: 600;
    background-color: #ffffff;
    border: 1px solid var(--idc-primary);
    border-radius: var(--idc-radius);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.idc-promo-buy:hover {
    color: var(--idc-primary-hover) !important;
    background-color: #ecf2fe;
}

.idc-promo-buy i {
    margin-right: 7px;
}

.idc-promo-note {
    margin: 26px 0 0;
    color: var(--idc-text-placeholder);
    font-size: 13px;
    line-height: 22px;
}

/* --------------------------------------------------------------------------
   9. 底部版权条（半透明白 + 模糊）
   -------------------------------------------------------------------------- */
.idc-auth-footer {
    position: relative;
    z-index: 15;
    flex: none;
    width: 100%;
    min-height: 60px;
    padding: 14px 5vw;
    background: rgba(255, 255, 255, 0.37);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.6);
}

.idc-footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 10px;
    max-width: 1200px;
    margin: 0 auto;
    color: #697386;
    font-size: 13px;
    font-weight: 500;
    line-height: 22px;
    text-align: center;
}

.idc-footer-item {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    color: #697386;
}

.idc-footer-item a,
.idc-footer-inner a {
    color: #697386;
}

.idc-footer-item a:hover,
.idc-footer-inner a:hover {
    color: var(--idc-primary);
}

.idc-footer-author {
    color: #475467;
    font-weight: 600;
}

.idc-footer-author a {
    color: var(--idc-primary);
    font-weight: 600;
}

.idc-footer-divider {
    display: inline-block;
    width: 1px;
    height: 12px;
    background: #a8afb9;
}

.idc-footer-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    font-size: 11px;
    color: #697386;
}

/* 版权条上的 Logo（可选） */
.idc-footer-logo {
    display: inline-block;
    height: 18px;
    margin-right: 8px;
    vertical-align: -3px;
}

/* --------------------------------------------------------------------------
   10. 错误 / 成功提示（error/alert、error/notifications 输出）
   -------------------------------------------------------------------------- */
body.idc-auth-body > .alert,
body.idc-auth-body .idc-auth-page .alert,
.idc-auth-page .alert {
    width: min(var(--idc-card-w), calc(100% - 10vw));
    margin: 16px auto 0;
    padding: 12px 16px;
    color: var(--idc-text);
    font-size: 13.5px;
    line-height: 22px;
    background: #ffffff;
    border: 1px solid var(--idc-border);
    border-left: 3px solid var(--idc-primary);
    border-radius: var(--idc-radius);
    box-shadow: 0 2px 10px rgba(37, 45, 61, 0.04);
}

.idc-auth-page .alert-danger {
    border-left-color: #f04438;
}

.idc-auth-page .alert-success {
    border-left-color: #12b76a;
}

/* --------------------------------------------------------------------------
   11. 二次验证模态框（#secondVerifyModal）
   -------------------------------------------------------------------------- */
#secondVerifyModal .modal-content {
    background: #ffffff;
    border: 0;
    border-radius: var(--idc-radius);
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.18);
}

#secondVerifyModal .modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--idc-page-bg);
}

#secondVerifyModal .modal-title {
    color: var(--idc-text);
    font-size: 17px;
    font-weight: 600;
}

#secondVerifyModal .modal-body {
    padding: 26px 24px;
}

#secondVerifyModal .modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--idc-page-bg);
}

#secondVerifyModal .form-group.row {
    margin-left: 0;
    margin-right: 0;
}

#secondVerifyModal label {
    color: #475467;
    font-size: 13.5px;
}

#secondVerifyModal .form-control {
    height: 41px;
    padding: 0 14px;
    color: var(--idc-text);
    font-size: 14px;
    line-height: 39px;
    background-color: var(--idc-input-bg);
    border: 1px solid var(--idc-border);
    border-radius: var(--idc-radius);
    box-shadow: none;
}

#secondVerifyModal .form-control:focus {
    background-color: #ffffff;
    border-color: var(--idc-primary);
    box-shadow: 0 0 0 3px var(--idc-primary-soft);
}

#secondVerifyModal .btn {
    border-radius: var(--idc-radius);
    box-shadow: none;
}

#secondVerifyModal .btn-primary {
    color: #ffffff;
    background-color: var(--idc-primary);
    border: 1px solid var(--idc-primary);
}

#secondVerifyModal .btn-primary:hover {
    background-color: var(--idc-primary-hover);
    border-color: var(--idc-primary-hover);
}

#secondVerifyModal .btn-outline-light {
    color: var(--idc-text-secondary);
    background: #ffffff;
    border: 1px solid var(--idc-border);
}

#secondVerifyModal .btn-outline-light:hover {
    color: var(--idc-primary);
    border-color: var(--idc-primary);
}

#secondVerifyModal .btn-secondary {
    color: #ffffff;
    background: #667085;
    border: 1px solid #667085;
}

#secondVerifyModal .input-group .form-control {
    border-right: 0;
}

/* --------------------------------------------------------------------------
   12. NProgress
   -------------------------------------------------------------------------- */
#nprogress .bar {
    height: 2px;
    background: var(--idc-primary);
}

#nprogress .peg {
    box-shadow: 0 0 10px var(--idc-primary), 0 0 5px var(--idc-primary);
}

#nprogress .spinner-icon {
    border-top-color: var(--idc-primary);
    border-left-color: var(--idc-primary);
}

/* --------------------------------------------------------------------------
   13. 响应式：1920 / 1440 / 平板 / 手机
   -------------------------------------------------------------------------- */
@media (max-width: 1700px) {
    .idc-auth-main {
        column-gap: 100px;
        width: min(1280px, calc(100% - 10vw));
    }
}

@media (max-width: 1450px) {
    :root {
        --idc-card-pad: 42px;
    }

    .idc-auth-main {
        grid-template-columns: 460px minmax(0, 1fr);
        column-gap: 70px;
        width: min(1180px, calc(100% - 8vw));
        padding: 26px 0 40px;
    }

    .idc-auth-card {
        width: 460px;
    }

    .idc-auth-title {
        font-size: 29px;
    }

    .idc-promo-title {
        font-size: 25px;
    }

    .idc-promo-list li {
        font-size: 14px;
    }
}

@media (max-width: 1199px) {
    .idc-auth-main {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        width: 100%;
        padding: 24px 24px 40px;
    }

    .idc-auth-card,
    .idc-auth-card--wide {
        width: min(560px, 100%);
    }

    .idc-promo {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --idc-card-pad: 28px;
        --idc-control-h: 48px;
    }

    body.idc-auth-body {
        background: #f4f5f7;
    }

    .idc-auth-bg {
        display: none;
    }

    /* 后台配置了自定义背景图时，移动端仍然展示 */
    .idc-auth-bg--custom {
        display: block;
        opacity: 0.35;
    }

    .idc-auth-bg-img {
        object-position: center center;
    }

    .idc-auth-page {
        background: #f4f5f7;
    }

    .idc-auth-header {
        min-height: 60px;
        padding: 12px 16px;
    }

    .idc-auth-logo img {
        height: 34px;
        max-width: 130px;
    }

    .idc-auth-nav {
        gap: 14px;
    }

    .idc-auth-nav a {
        font-size: 13px;
    }

    .idc-auth-main {
        align-items: stretch;
        padding: 12px 16px 28px;
    }

    .idc-auth-card,
    .idc-auth-card--wide {
        width: 100%;
        max-width: 100%;
        min-height: auto;
        padding: 26px 20px 30px;
        border: 0;
        box-shadow: none;
        background: transparent;
    }

    .idc-auth-title {
        font-size: 26px;
    }

    .idc-auth-heading {
        margin-bottom: 22px;
    }

    .idc-forgot-corner {
        position: static;
        display: inline-flex;
        margin-bottom: 14px;
        padding: 5px 14px;
        background: rgba(18, 103, 245, 0.1);
        -webkit-clip-path: none;
        clip-path: none;
    }

    .idc-tabs.nav-tabs {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .idc-form-group,
    .idc-auth-card .form-group {
        margin-bottom: 18px;
    }

    .idc-code-btn,
    .idc-auth-card .input-group-append .btn {
        min-width: 104px;
        padding: 0 12px;
    }

    .idc-auth-card .input-group-append img {
        width: 104px !important;
        min-width: 104px !important;
        max-width: 104px !important;
    }

    .idc-footer-inner {
        font-size: 12px;
        line-height: 20px;
    }

    .idc-footer-divider {
        display: none;
    }

    .idc-footer-item {
        white-space: normal;
    }
}

@media (max-width: 420px) {
    .idc-phone-group .input-group-prepend {
        flex: 0 0 96px;
        width: 96px;
    }

    .idc-auth-card .input-group-append img {
        width: 92px !important;
        min-width: 92px !important;
        max-width: 92px !important;
    }

    .idc-code-btn,
    .idc-auth-card .input-group-append .btn {
        min-width: 92px;
        font-size: 13px;
    }
}

/* --------------------------------------------------------------------------
   14. 无障碍 / 打印
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    body.idc-auth-body *,
    .idc-auth-page * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

@media print {
    .idc-auth-bg,
    .idc-auth-footer,
    .idc-promo {
        display: none !important;
    }

    .idc-auth-card {
        box-shadow: none;
        border: 1px solid var(--idc-border);
    }
}
