:root {
    --auth-bg: #eef1f6;
    --auth-surface: #f8f9fb;
    --auth-panel: #ffffff;
    --auth-ink: #111318;
    --auth-ink-2: #3f4652;
    --auth-ink-3: #747d8c;
    --auth-line: #dfe4ec;
    --auth-line-strong: #cbd3df;
    --auth-accent: #3056d3;
    --auth-accent-hover: #2448c2;
    --auth-accent-soft: #edf2ff;
    --auth-danger: #d92d20;
    --auth-radius: 16px;
    --auth-radius-lg: 28px;
    --auth-shadow: 0 32px 90px rgba(25, 35, 58, .14);
    --auth-font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

body.um-auth-page {
    min-width: 320px;
    padding: 0;
    background: var(--auth-bg);
    color: var(--auth-ink);
    font-family: var(--auth-font);
    overflow-x: hidden;
}

body.um-auth-page > .navbar,
body.um-auth-page > .footer {
    display: none !important;
}

body.um-auth-page main.content {
    min-height: 100dvh;
    padding: 0;
    overflow: hidden;
}

.um-auth,
.um-auth * {
    box-sizing: border-box;
}

.um-auth {
    position: relative;
    display: flex;
    min-height: 100dvh;
    padding: 20px;
    background:
        radial-gradient(circle at 10% 8%, rgba(48, 86, 211, .10), transparent 28%),
        radial-gradient(circle at 88% 92%, rgba(17, 19, 24, .06), transparent 30%),
        var(--auth-bg);
    isolation: isolate;
}

.um-auth-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(430px, .82fr);
    width: min(1560px, 100%);
    min-height: calc(100dvh - 40px);
    margin: auto;
    overflow: hidden;
    border: 1px solid rgba(203, 211, 223, .78);
    border-radius: var(--auth-radius-lg);
    background: var(--auth-surface);
    box-shadow: var(--auth-shadow);
}

.um-auth-scene {
    position: relative;
    min-width: 0;
    min-height: 680px;
    overflow: hidden;
    color: #f7f8fb;
    background: #0c111d;
}

.um-auth-scene::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(8, 13, 24, .86) 0%, rgba(8, 13, 24, .50) 42%, rgba(8, 13, 24, .06) 72%),
        linear-gradient(0deg, rgba(8, 13, 24, .74) 0%, transparent 34%);
}

.um-auth-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 58% center;
    transform: scale(1.015);
}

.um-auth-brand,
.um-auth-scene-copy,
.um-auth-scene-foot {
    position: absolute;
    z-index: 2;
}

.um-auth-brand {
    top: clamp(28px, 4vw, 52px);
    left: clamp(28px, 5vw, 72px);
    display: inline-flex;
    align-items: center;
    min-height: 38px;
}

.um-auth-brand img,
.um-auth-mobile-brand img {
    display: block;
    width: 128px;
    height: auto;
}

.um-auth-brand img {
    filter: grayscale(1) brightness(0) invert(1);
}

.um-auth-scene-copy {
    top: 24%;
    left: clamp(28px, 5vw, 72px);
    width: min(480px, 54%);
}

.um-auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    color: rgba(247, 248, 251, .72);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
}

.um-auth-kicker i {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 9px;
    color: #a9bfff;
    background: rgba(255, 255, 255, .07);
}

.um-auth-scene-copy h1 {
    max-width: 9em;
    margin: 0 0 22px;
    color: #f8f9fc;
    font-size: clamp(42px, 4.4vw, 68px);
    font-weight: 720;
    line-height: 1.08;
    letter-spacing: -.045em;
}

.um-auth-scene-copy p {
    max-width: 420px;
    margin: 0;
    color: rgba(232, 236, 245, .72);
    font-size: 16px;
    line-height: 1.8;
}

.um-auth-scene-foot {
    right: clamp(28px, 5vw, 72px);
    bottom: clamp(28px, 4vw, 52px);
    left: clamp(28px, 5vw, 72px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    color: rgba(236, 239, 247, .66);
    font-size: 13px;
}

.um-auth-scene-foot span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.um-auth-scene-foot i {
    color: #9eb4fa;
}

.um-auth-panel {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 680px;
    overflow-y: auto;
    background:
        linear-gradient(rgba(255, 255, 255, .76), rgba(255, 255, 255, .76)),
        var(--auth-panel);
}

.um-auth-panel::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--auth-accent), #7897f4 62%, transparent);
}

.um-auth-panel-inner {
    width: min(440px, calc(100% - 64px));
    margin: auto;
    padding: 54px 0 44px;
}

.um-auth-mobile-brand {
    display: none;
    margin-bottom: 42px;
}

.um-auth-header {
    margin-bottom: 34px;
}

.um-auth-header-mark {
    display: block;
    margin-bottom: 12px;
    color: var(--auth-accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
}

.um-auth-header h2 {
    margin: 0 0 12px;
    color: var(--auth-ink);
    font-size: clamp(30px, 2.5vw, 38px);
    font-weight: 720;
    line-height: 1.18;
    letter-spacing: -.035em;
}

.um-auth-header p {
    margin: 0;
    color: var(--auth-ink-3);
    font-size: 15px;
    line-height: 1.7;
}

.um-auth-form .form-group {
    position: relative;
    margin-bottom: 20px;
}

.um-auth-form .control-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
    color: var(--auth-ink-2);
    font-size: 14px;
    font-weight: 650;
}

.um-auth-form .control-label small {
    color: var(--auth-ink-3);
    font-size: 12px;
    font-weight: 400;
}

.um-auth-form .form-control {
    width: 100%;
    min-height: 56px;
    padding: 12px 16px;
    border: 1px solid var(--auth-line);
    border-radius: 12px;
    outline: 0;
    color: var(--auth-ink);
    background: #f7f8fa;
    box-shadow: none;
    font-family: var(--auth-font);
    font-size: 15px;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.um-auth-form .form-control::placeholder {
    color: #929aa7;
    opacity: 1;
}

.um-auth-form .form-control:hover {
    border-color: var(--auth-line-strong);
    background: #fff;
}

.um-auth-form .form-control:focus {
    border-color: var(--auth-accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(48, 86, 211, .11);
}

.um-auth-form .input-group {
    display: flex;
    width: 100%;
}

.um-auth-form .input-group .form-control {
    min-width: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.um-auth-form .input-group-btn {
    display: flex;
    width: auto;
    padding: 0 !important;
    border: 0 !important;
}

.um-auth-form .input-group-btn .btn-captcha,
.um-auth-form .input-group-btn img {
    width: auto;
    min-width: 118px;
    height: 56px;
    min-height: 56px;
    margin: 0;
    border: 1px solid var(--auth-line);
    border-left: 0;
    border-radius: 0 12px 12px 0;
}

.um-auth-form .input-group-btn .btn-captcha {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    color: var(--auth-accent);
    background: var(--auth-accent-soft);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.um-auth-form .input-group-btn .btn-captcha:hover,
.um-auth-form .input-group-btn .btn-captcha:focus {
    color: #fff;
    border-color: var(--auth-accent);
    background: var(--auth-accent);
}

.um-auth-form .input-group-btn img {
    cursor: pointer;
    object-fit: cover;
    background: #fff;
}

.um-auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 4px 0 26px;
}

.um-auth-options .checkbox {
    margin: 0;
}

.um-auth-options .checkbox label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 24px;
    padding: 0;
    color: var(--auth-ink-2);
    font-size: 13px;
    font-weight: 500;
    text-indent: 20px;
}

.um-auth-options input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--auth-accent);
}

.um-auth a {
    color: var(--auth-accent);
    text-decoration: none;
}

.um-auth a:hover,
.um-auth a:focus {
    color: var(--auth-accent-hover);
    text-decoration: none;
}

.um-auth-link {
    font-size: 13px;
    font-weight: 650;
}

.um-auth-submit.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 56px;
    padding: 12px 24px;
    border: 1px solid var(--auth-accent);
    border-radius: 12px;
    color: #fff;
    background: var(--auth-accent);
    box-shadow: 0 14px 28px rgba(48, 86, 211, .22);
    font-family: var(--auth-font);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.um-auth-submit.btn:hover,
.um-auth-submit.btn:focus {
    color: #fff;
    border-color: var(--auth-accent-hover);
    background: var(--auth-accent-hover);
    box-shadow: 0 18px 34px rgba(48, 86, 211, .28);
    outline: 0;
    transform: translateY(-1px);
}

.um-auth-submit.btn:active {
    box-shadow: 0 8px 18px rgba(48, 86, 211, .20);
    transform: translateY(1px) scale(.99);
}

.um-auth-switch {
    margin: 22px 0 0;
    color: var(--auth-ink-3);
    font-size: 14px;
    text-align: center;
}

.um-auth-switch a {
    margin-left: 5px;
    font-weight: 700;
}

/* ==================== 表单输入校验与错误提示美化 (杜绝右侧溢出，呈现现代化精致排版) ==================== */
.um-auth-form .controls {
    position: relative;
    width: 100%;
}

/* 强制重置错误容器：永远独占一行位于输入框下方，彻底消除右侧飘浮溢出 */
.um-auth-form .msg-box,
.um-auth-form .msg-box.n-right,
.um-auth-form .msg-box.n-bottom,
.um-auth-form .msg-box.n-left,
.um-auth-form .msg-box.n-top {
    display: block !important;
    position: static !important;
    float: none !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 8px 0 0 0 !important;
    padding: 0 !important;
    clear: both !important;
    box-sizing: border-box !important;
    text-align: left !important;
}

/* 空消息盒不占位 */
.um-auth-form .msg-box:empty {
    display: none !important;
    margin: 0 !important;
}

/* 隐藏旧版三角形指示箭头 */
.um-auth-form .n-arrow {
    display: none !important;
}

/* 校验提示气泡卡片：柔和底色 + 精致边框 + 清晰对比 */
.um-auth-form .msg-wrap {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 7px 12px !important;
    border-radius: 8px !important;
    font-size: 12.5px !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    word-break: break-word !important;
    box-sizing: border-box !important;
    animation: umFadeInDown .2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* 错误提示态：浅红温和背景 + 警示红细框 */
.um-auth-form .msg-wrap.n-error,
.um-auth-form .n-error {
    background-color: #fef2f2 !important;
    border: 1px solid #fee2e2 !important;
    color: #b91c1c !important;
}

/* 错误图标：现代圆形感叹号微图标 */
.um-auth-form .msg-wrap .n-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 15px !important;
    height: 15px !important;
    flex-shrink: 0 !important;
    background: none !important;
    margin: 0 !important;
    position: relative !important;
}

.um-auth-form .msg-wrap.n-error .n-icon::before {
    content: "!";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    background-color: #ef4444;
    color: #ffffff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1;
}

.um-auth-form .msg-wrap.n-error .n-msg {
    display: inline !important;
    color: #b91c1c !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    vertical-align: middle !important;
    margin-left: 2px !important;
}

/* 校验成功提示态 */
.um-auth-form .msg-wrap.n-ok,
.um-auth-form .n-ok {
    background-color: #f0fdf4 !important;
    border: 1px solid #dcfce7 !important;
    color: #15803d !important;
}
.um-auth-form .msg-wrap.n-ok .n-icon::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    background-color: #22c55e;
    color: #ffffff;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}
.um-auth-form .msg-wrap.n-ok .n-msg {
    color: #15803d !important;
    font-weight: 500 !important;
}

/* 校验出错时的输入框外框高亮与柔光 */
.um-auth-form .form-group.has-error .form-control,
.um-auth-form .form-control.n-invalid {
    border-color: #ef4444 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, .12) !important;
}

/* 兼容 input-group 验证码模块的错误提示排版 */
.um-auth-form .input-group + .msg-box {
    margin-top: 8px !important;
}
.um-auth-form .input-group > .msg-box {
    position: static !important;
    width: 100% !important;
    flex: 0 0 100% !important;
    order: 99 !important;
    margin-top: 8px !important;
}
.um-auth-form .input-group.has-error {
    flex-wrap: wrap !important;
}

.um-auth-register .um-auth-panel-inner {
    padding-top: 36px;
    padding-bottom: 30px;
}

.um-auth-register .um-auth-header {
    margin-bottom: 24px;
}

.um-auth-register .um-auth-form .form-group {
    margin-bottom: 15px;
}

.um-auth-register .um-auth-form .form-control,
.um-auth-register .um-auth-form .input-group-btn .btn-captcha,
.um-auth-register .um-auth-form .input-group-btn img {
    min-height: 52px;
    height: 52px;
}

body.um-auth-page .layui-layer-fast,
body.um-auth-page .layui-layer-page {
    overflow: hidden;
    border-radius: var(--auth-radius);
    box-shadow: 0 30px 80px rgba(17, 19, 24, .24);
}

body.um-auth-page #resetpwd-form {
    padding: 18px 18px 4px;
}

body.um-auth-page #resetpwd-form .form-control {
    min-height: 42px;
    border-color: var(--auth-line);
    border-radius: 9px;
    box-shadow: none;
}

body.um-auth-page #resetpwd-form .btn {
    border-radius: 9px;
}

@media (prefers-reduced-motion: no-preference) {
    .um-auth-shell {
        animation: um-auth-shell-in .68s cubic-bezier(.16, 1, .3, 1) both;
    }

    .um-auth-scene-copy,
    .um-auth-scene-foot {
        animation: um-auth-copy-in .72s .14s cubic-bezier(.16, 1, .3, 1) both;
    }

    .um-auth-panel-inner {
        animation: um-auth-panel-in .72s .2s cubic-bezier(.16, 1, .3, 1) both;
    }
}

@keyframes um-auth-shell-in {
    from { opacity: 0; transform: translateY(14px) scale(.992); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes um-auth-copy-in {
    from { opacity: 0; transform: translateX(-18px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes um-auth-panel-in {
    from { opacity: 0; transform: translateX(18px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 1180px) {
    .um-auth-shell {
        grid-template-columns: minmax(0, 1fr) minmax(420px, .88fr);
    }

    .um-auth-scene-copy {
        width: 62%;
    }

    .um-auth-scene-copy h1 {
        font-size: 48px;
    }
}

@media (max-width: 900px) {
    .um-auth {
        align-items: flex-start;
        padding: 14px;
    }

    .um-auth-shell {
        display: block;
        min-height: calc(100dvh - 28px);
    }

    .um-auth-scene {
        min-height: 300px;
    }

    .um-auth-art {
        object-position: 62% 48%;
    }

    .um-auth-brand {
        top: 28px;
        left: 32px;
    }

    .um-auth-scene-copy {
        top: 108px;
        left: 32px;
        width: 48%;
    }

    .um-auth-scene-copy h1 {
        margin-bottom: 12px;
        font-size: 38px;
    }

    .um-auth-scene-copy p,
    .um-auth-kicker,
    .um-auth-scene-foot {
        display: none;
    }

    .um-auth-panel {
        min-height: 0;
        overflow: visible;
    }

    .um-auth-panel-inner {
        width: min(500px, calc(100% - 48px));
        padding: 48px 0;
    }
}

@media (max-width: 620px) {
    .um-auth {
        padding: 0;
        background: var(--auth-panel);
    }

    .um-auth-shell {
        min-height: 100dvh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .um-auth-scene {
        min-height: 210px;
    }

    .um-auth-scene::after {
        background: linear-gradient(90deg, rgba(8, 13, 24, .86), rgba(8, 13, 24, .18));
    }

    .um-auth-brand {
        top: 22px;
        left: 22px;
    }

    .um-auth-brand img {
        width: 112px;
    }

    .um-auth-scene-copy {
        top: 86px;
        left: 22px;
        width: 58%;
    }

    .um-auth-scene-copy h1 {
        font-size: 30px;
        line-height: 1.12;
    }

    .um-auth-panel-inner,
    .um-auth-register .um-auth-panel-inner {
        width: calc(100% - 40px);
        padding: 34px 0 42px;
    }

    .um-auth-header,
    .um-auth-register .um-auth-header {
        margin-bottom: 26px;
    }

    .um-auth-header h2 {
        font-size: 30px;
    }

    .um-auth-form .form-control,
    .um-auth-register .um-auth-form .form-control,
    .um-auth-form .input-group-btn .btn-captcha,
    .um-auth-register .um-auth-form .input-group-btn .btn-captcha,
    .um-auth-form .input-group-btn img,
    .um-auth-register .um-auth-form .input-group-btn img {
        min-height: 52px;
        height: 52px;
    }

    .um-auth-options {
        align-items: flex-start;
    }

    .um-auth-submit.btn {
        min-height: 54px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .um-auth *,
    .um-auth *::before,
    .um-auth *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* ========== 申诉弹窗样式补全 (auth-gateway) ========== */
/* 强制安全弹窗容器可滚动并实现全屏垂直居中对齐 */
.modal.um-sec-modal {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  text-align: center !important;
  padding: 0 !important;
}

.modal.um-sec-modal:before {
  content: '';
  display: inline-block;
  height: 100%;
  vertical-align: middle;
  margin-right: -4px;
}

/* 弹窗对话框响应式高度与垂直居中/自适应约束 */
.um-sec-modal .modal-dialog {
  display: inline-block !important;
  text-align: left !important;
  vertical-align: middle !important;
  margin: 24px auto !important;
  max-height: calc(100vh - 48px) !important;
  width: 92% !important;
}

#modal-login-totp .modal-dialog {
  max-width: 440px !important;
}

#modal-public-appeal .modal-dialog {
  max-width: 600px !important;
}

.um-sec-modal .modal-content {
  border-radius: 8px;
  border: 1px solid #e4e4e7;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: flex !important;
  flex-direction: column !important;
  max-height: calc(100vh - 60px) !important;
}

.um-sec-modal .modal-header {
  padding: 16px 24px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  flex: 0 0 auto !important;
}

.um-sec-modal .modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.um-sec-modal .modal-body {
  padding: 24px;
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  max-height: calc(100vh - 180px);
  -webkit-overflow-scrolling: touch;
}

/* 优化 modal-body 滚动条 */
.um-sec-modal .modal-body::-webkit-scrollbar {
  width: 6px;
}
.um-sec-modal .modal-body::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}
.um-sec-modal .modal-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
.um-sec-modal .modal-body::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.um-sec-modal .modal-footer {
  padding: 14px 24px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  flex: 0 0 auto !important;
}

.um-sec-modal .form-group {
  margin-bottom: 18px;
}

.um-sec-modal .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 7px;
  line-height: 1.4;
}

.um-sec-modal .form-control {
  height: 38px;
  min-height: 38px;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 6px;
  border: 1px solid #e4e4e7;
  background: #ffffff;
  color: #0f172a;
  padding: 8px 12px;
  box-shadow: none;
}

/* 6位动态验证码大输入框专用高度与样式定制（保持高68px视觉规范） */
.um-sec-modal #input-login-totp,
.um-sec-modal #totp-code-box .form-control,
#modal-login-totp #input-login-totp,
#input-login-totp {
  height: 68px !important;
  min-height: 68px !important;
  line-height: 68px !important;
  font-size: 38px !important;
  font-weight: 700 !important;
  letter-spacing: 8px !important;
  text-align: center !important;
  padding: 0 12px !important;
  box-sizing: border-box !important;
}


.um-sec-modal select.form-control {
  height: 38px !important;
  min-height: 38px !important;
  line-height: normal !important;
  padding: 0 32px 0 12px !important;
  font-size: 13px !important;
  vertical-align: middle !important;
  background-position: right 12px center !important;
  box-sizing: border-box !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

.um-sec-modal textarea.form-control {
  height: auto;
  min-height: 76px;
  line-height: 1.5;
  padding: 8px 12px;
  resize: vertical;
}

.um-sec-modal .input-group {
  display: flex !important;
  align-items: stretch !important;
  width: 100% !important;
  position: relative !important;
}

.um-sec-modal .input-group-addon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  line-height: 1 !important;
  padding: 0 14px !important;
  font-size: 14px !important;
  box-sizing: border-box !important;
  border: 1px solid #e4e4e7 !important;
  border-right: 0 !important;
  border-top-left-radius: 6px !important;
  border-bottom-left-radius: 6px !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  background: #f8fafc !important;
  color: #64748b !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
}

.um-sec-modal .input-group-addon > i {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  font-size: 14px !important;
  margin: 0 !important;
}

.um-sec-modal .input-group .form-control {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  padding: 8px 12px !important;
  border-radius: 6px !important;
  box-sizing: border-box !important;
}

/* 当右侧有上传按钮等控件时，输入框右侧直角 */
.um-sec-modal .input-group .form-control:not(:last-child) {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

/* 当左侧有 addon 图标时，输入框左侧直角且移除左边框防止双重重叠 */
.um-sec-modal .input-group .input-group-addon + .form-control,
.um-sec-modal .input-group .form-control:not(:first-child) {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-left: 0 !important;
}

.um-sec-modal .input-group-btn {
  display: flex !important;
  width: auto !important;
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  margin: 0 !important;
  padding: 0 !important;
}

.um-sec-modal .input-group-btn > .btn {
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  line-height: 36px !important;
  margin: 0 !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-top-right-radius: 6px !important;
  border-bottom-right-radius: 6px !important;
  border: 1px solid #e4e4e7 !important;
  border-left: 0 !important;
  padding: 0 16px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  background: #f8fafc !important;
  color: #0f172a !important;
  box-sizing: border-box !important;
  vertical-align: middle !important;
}


/* ==================== 隐私与服务协议样式 ==================== */
.um-auth-agreement {
    margin: 14px 0 22px;
    font-size: 13px;
    line-height: 1.6;
}
.um-auth-agreement label {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 0;
    font-weight: 400;
    cursor: pointer;
    user-select: none;
    color: var(--auth-ink-2);
}
.um-auth-agreement input[type="checkbox"] {
    position: static;
    margin: 3px 0 0;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: var(--auth-accent);
    cursor: pointer;
}
.um-auth-agreement a {
    color: var(--auth-accent);
    font-weight: 600;
    text-decoration: none;
    transition: color .15s ease;
}
.um-auth-agreement a:hover {
    color: var(--auth-accent-hover);
    text-decoration: underline;
}
.um-agreement-modal .modal-dialog {
    max-width: 780px;
    width: 92%;
    margin: 30px auto;
}
.um-agreement-modal .modal-content {
    border-radius: 14px;
    border: 1px solid var(--auth-line);
    box-shadow: 0 20px 60px rgba(17, 24, 39, .18);
    overflow: hidden;
}
.um-agreement-modal .modal-header {
    padding: 14px 20px 0;
    background: #f8fafc;
    border-bottom: 1px solid var(--auth-line);
    position: relative;
}
.um-agreement-modal .modal-header .close {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 24px;
    z-index: 10;
}
.um-agreement-modal .nav-tabs {
    border-bottom: none;
    margin: 0;
    display: flex;
    gap: 8px;
}
.um-agreement-modal .nav-tabs > li > a {
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 14px;
    color: var(--auth-ink-3);
    background: transparent;
    transition: all .2s;
}
.um-agreement-modal .nav-tabs > li.active > a,
.um-agreement-modal .nav-tabs > li.active > a:focus,
.um-agreement-modal .nav-tabs > li.active > a:hover {
    background: #ffffff;
    color: var(--auth-accent);
    border-color: var(--auth-line) var(--auth-line) #ffffff;
}
.um-agreement-modal .modal-body {
    padding: 24px 28px;
    max-height: 62vh;
    overflow-y: auto;
    font-size: 13.5px;
    line-height: 1.85;
    color: #334155;
    background: #ffffff;
}
.um-agreement-modal .modal-body::-webkit-scrollbar {
    width: 6px;
}
.um-agreement-modal .modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
.um-agreement-modal .agreement-article h2 {
    font-size: 19px;
    font-weight: 700;
    color: #0f172a;
    margin-top: 0;
    margin-bottom: 6px;
}
.um-agreement-modal .agreement-article h3 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 22px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px dashed #e2e8f0;
}
.um-agreement-modal .agreement-article h3:first-of-type {
    margin-top: 14px;
}
.um-agreement-modal .agreement-article p {
    margin-bottom: 10px;
    text-align: justify;
}
.um-agreement-modal .agreement-article ul {
    padding-left: 20px;
    margin-bottom: 12px;
}
.um-agreement-modal .agreement-article li {
    margin-bottom: 6px;
}
.um-agreement-modal .agreement-meta {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}
.um-agreement-modal .agreement-contact-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 14px;
    font-size: 12.5px;
}
.um-agreement-modal .modal-footer {
    padding: 12px 24px;
    background: #f8fafc;
    border-top: 1px solid var(--auth-line);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ==================== 登录多模式与双通道验证码切换样式 ==================== */
.um-auth-mode-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    border-bottom: 2px solid var(--auth-line, #dfe4ec);
    padding-bottom: 0;
}
.um-auth-mode-tab {
    position: relative;
    background: transparent;
    border: none;
    padding: 10px 18px 12px 18px;
    font-size: 15px;
    font-weight: 600;
    color: var(--auth-ink-3, #747d8c);
    cursor: pointer;
    transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 6px 6px 0 0;
}
.um-auth-mode-tab:hover {
    color: var(--auth-ink, #111318);
    background: rgba(0, 0, 0, 0.02);
}
.um-auth-mode-tab.active {
    color: var(--auth-accent, #3056d3);
    font-weight: 700;
}
.um-auth-mode-tab.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2.5px;
    background: var(--auth-accent, #3056d3);
    border-radius: 2px 2px 0 0;
}
/* ==================== 登录页统一尺寸规范 (54px 高度 & 12px 圆角) ==================== */
.um-captcha-type-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 54px;
    min-height: 54px;
    box-sizing: border-box;
    margin-bottom: 16px;
    padding: 5px 6px 5px 14px;
    background: #f1f5f9;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

/* 确保 hide 在任何权重下绝对生效并隐藏对应容器 */
.um-captcha-type-nav.hide,
.um-auth .hide,
.um-auth-login .hide,
.um-auth-form .form-group.hide,
.um-auth [hidden] {
    display: none !important;
}
.um-captcha-nav-label {
    font-size: 13.5px;
    font-weight: 600;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
}
.um-captcha-nav-label i {
    font-size: 14px;
    color: #64748b;
}
.um-captcha-switch-pills {
    display: flex;
    gap: 5px;
    height: 42px;
    align-items: center;
}
.um-captcha-switch-btn {
    border: none;
    background: transparent;
    height: 42px !important;
    line-height: 42px !important;
    padding: 0 16px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #64748b;
    border-radius: 8px !important;
    cursor: pointer;
    transition: all .2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.um-captcha-switch-btn:hover {
    color: #1e293b;
    background: rgba(255, 255, 255, 0.6);
}
.um-captcha-switch-btn.active {
    background: #ffffff !important;
    color: var(--auth-accent, #3056d3) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
    font-weight: 700 !important;
}

.um-captcha-hint {
    font-size: 12px;
    color: #64748b;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.4;
}
.um-captcha-hint i {
    color: var(--auth-accent, #3056d3);
    font-size: 13px;
}

/* 隐藏原有冗余 label，采用现代极简内嵌图标 */
.um-auth-login .um-auth-form .control-label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.um-auth-login .um-auth-form .form-group {
    margin-bottom: 16px;
}

/* 统一输入框外层包装 */
.um-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 54px;
    box-sizing: border-box;
}

.um-input-wrap .um-input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 17px;
    color: #94a3b8;
    pointer-events: none;
    transition: color .2s ease;
    z-index: 5 !important;
}

.um-input-wrap .form-control {
    width: 100%;
    height: 54px !important;
    min-height: 54px !important;
    line-height: 52px !important;
    padding: 0 18px 0 50px !important;
    font-size: 15px !important;
    border: 1px solid var(--auth-line, #e2e8f0) !important;
    border-radius: 12px !important;
    background: #f8fafc;
    box-sizing: border-box !important;
    color: var(--auth-ink, #0f172a);
    box-shadow: none !important;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.um-input-wrap .form-control:hover {
    border-color: var(--auth-line-strong, #cbd5e1) !important;
    background: #ffffff;
}

.um-input-wrap .form-control:focus {
    border-color: var(--auth-accent, #3056d3) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(48, 86, 211, 0.12) !important;
}

.um-input-wrap:focus-within .um-input-icon {
    color: var(--auth-accent, #3056d3) !important;
}

/* 密码显隐小眼睛切换按钮 */
.um-pwd-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #94a3b8;
    cursor: pointer;
    z-index: 5 !important;
    transition: all .2s ease;
    text-decoration: none !important;
    border-radius: 8px;
    font-size: 16px;
}

.um-pwd-toggle:hover {
    color: var(--auth-ink-2, #3f4652);
    background: rgba(0, 0, 0, 0.05);
}

#password-group .um-input-wrap .form-control {
    padding-right: 50px !important;
}

/* 验证码行：左输入框 + 右获取验证码按钮 统一 54px 高度与无缝拼接 */
.um-captcha-row {
    display: flex !important;
    align-items: stretch !important;
    height: 54px !important;
    min-height: 54px !important;
    width: 100% !important;
    position: relative !important;
    box-sizing: border-box !important;
}

.um-captcha-row .um-captcha-input-wrap {
    flex: 1 1 auto;
    position: relative;
    min-width: 0;
    height: 54px;
}

.um-captcha-row .um-captcha-input-wrap .form-control {
    width: 100%;
    height: 54px !important;
    min-height: 54px !important;
    line-height: 52px !important;
    padding: 0 16px 0 50px !important;
    border: 1px solid var(--auth-line, #e2e8f0) !important;
    border-right: none !important;
    border-top-left-radius: 12px !important;
    border-bottom-left-radius: 12px !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    background: #f8fafc;
    font-size: 15px !important;
    color: var(--auth-ink, #0f172a);
    box-sizing: border-box !important;
    transition: all .2s ease;
}

.um-captcha-row .um-captcha-input-wrap .form-control:hover {
    border-color: var(--auth-line-strong, #cbd5e1) !important;
    background: #ffffff;
}

.um-captcha-row .um-captcha-input-wrap .form-control:focus {
    border-color: var(--auth-accent, #3056d3) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(48, 86, 211, 0.12) !important;
    position: relative;
    z-index: 2;
}

.um-captcha-row .um-captcha-input-wrap .um-input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 17px;
    color: #94a3b8;
    z-index: 5 !important;
    pointer-events: none;
    transition: color .2s ease;
}

.um-captcha-row:focus-within .um-captcha-input-wrap .um-input-icon {
    color: var(--auth-accent, #3056d3) !important;
}

.um-captcha-row .btn-captcha,
#btn-login-captcha {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 54px !important;
    min-height: 54px !important;
    line-height: 1 !important;
    padding: 0 20px !important;
    min-width: 132px !important;
    white-space: nowrap !important;
    font-size: 14px !important;
    letter-spacing: 0.5px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    background-color: var(--auth-accent, #3056d3) !important;
    border: 1px solid var(--auth-accent, #3056d3) !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
    box-sizing: border-box !important;
    flex-shrink: 0;
    text-decoration: none !important;
    transition: all .2s ease;
    z-index: 3;
}

.um-captcha-row .btn-captcha:hover,
#btn-login-captcha:hover {
    background-color: var(--auth-accent-hover, #2448c2) !important;
    border-color: var(--auth-accent-hover, #2448c2) !important;
    color: #ffffff !important;
}

.um-captcha-row .btn-captcha.disabled,
.um-captcha-row .btn-captcha[disabled],
#btn-login-captcha.disabled,
#btn-login-captcha[disabled] {
    background-color: #94a3b8 !important;
    border-color: #94a3b8 !important;
    color: #ffffff !important;
    cursor: not-allowed !important;
    opacity: 0.85;
}

/* 兼容原有注册页或其它位置的 input-group 验证码按钮 */
.um-captcha-group .input-group-btn .btn-captcha {
    height: 54px !important;
    min-height: 54px !important;
    line-height: 52px !important;
    padding: 0 20px !important;
    border-radius: 0 12px 12px 0 !important;
}

/* 立即登录按钮统一 54px 高度 */
.um-auth-submit.btn,
.um-auth-login .um-auth-submit.btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px;
    width: 100% !important;
    height: 54px !important;
    min-height: 54px !important;
    line-height: 52px !important;
    padding: 0 24px !important;
    border: 1px solid var(--auth-accent, #3056d3) !important;
    border-radius: 12px !important;
    color: #fff !important;
    background: var(--auth-accent, #3056d3) !important;
    box-shadow: 0 10px 20px rgba(48, 86, 211, .2) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    white-space: nowrap;
    box-sizing: border-box !important;
    margin-top: 6px;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.um-auth-submit.btn:hover,
.um-auth-submit.btn:focus,
.um-auth-login .um-auth-submit.btn:hover,
.um-auth-login .um-auth-submit.btn:focus {
    background: var(--auth-accent-hover, #2448c2) !important;
    border-color: var(--auth-accent-hover, #2448c2) !important;
    box-shadow: 0 12px 24px rgba(48, 86, 211, .28) !important;
    color: #fff !important;
}

/* 页面间距优化 */
.um-auth-login .um-auth-mode-tabs {
    margin-bottom: 16px;
}

.um-auth-login .um-captcha-type-nav {
    margin-bottom: 14px;
}

.um-auth-login .um-auth-options {
    margin: 6px 0 16px;
}

.um-auth-login .um-auth-agreement {
    margin-bottom: 18px;
}

.um-auth-login .um-auth-panel-inner {
    padding-top: 36px;
    padding-bottom: 36px;
}

.um-auth-login .um-auth-header {
    margin-bottom: 22px;
}

/* 验证错误提示框规范 */
.um-auth-login .um-auth-form .form-group .msg-box {
    display: block !important;
    position: static !important;
    margin-top: 6px !important;
}

.um-auth-login .um-auth-form .form-group .msg-box .n-error {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: #ef4444 !important;
    font-size: 12.5px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.um-auth-login .um-auth-form .form-group .msg-box .n-icon {
    margin-right: 2px !important;
}
