/**
 * 认证页（登录/注册/找回密码）Tailwind 配套层
 * 职责：表单控件、验证码行、校验提示、Layer 弹层与 require-form 所需 class；
 * 布局与背景由 Tailwind 工具类承担，本文件不再维护 auth-isolated 的大块布局规则。
 */

html:has(#content-container.authx-page),
body.authx-body {
    height: 100%;
    min-height: 100%;
}

body.authx-body {
    overflow-x: hidden;
    padding-top: 0 !important;
    font-family: 'Noto Sans SC', system-ui, sans-serif;
    background: #f8fafc;
    color: #1e293b;
}

body.authx-body .content {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: transparent;
}

@supports (height: 100dvh) {
    body.authx-body .content {
        min-height: 100dvh;
    }
}

/*
 * 替代原 cdn.tailwindcss.com 的 preflight：全局 border-box。
 * 去掉 CDN 后 .form-control 的 width:100% + padding + border 会按 content-box 撑出卡片右侧。
 */
.authx-page,
.authx-page *,
.authx-page *::before,
.authx-page *::after {
    box-sizing: border-box;
}

/* ---------- 认证页布局（不依赖 Tailwind 的 hidden/lg:flex，避免与 .hidden 冲突） ---------- */
.authx-page {
    position: relative;
    box-sizing: border-box;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    background: #f8fafc;
    overflow-x: hidden;
}

@supports (height: 100dvh) {
    .authx-page {
        min-height: 100dvh;
    }
}

.authx-page-aurora {
    pointer-events: none;
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
}

.authx-page-aurora-left {
    left: -8rem;
    top: -8rem;
    width: 28rem;
    height: 28rem;
    background: rgba(99, 102, 241, 0.1);
}

.authx-page-aurora-right {
    right: -6rem;
    bottom: 0;
    width: 20rem;
    height: 20rem;
    background: rgba(168, 85, 247, 0.1);
}

.authx-shell {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: 100%;
    max-width: 64rem;
    display: grid;
    grid-template-columns: 1fr;
    border-radius: 1.75rem;
    border: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.12);
    overflow: hidden;
}

.authx-visual-desktop {
    display: none;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: linear-gradient(135deg, #eef2ff 0%, #fff 50%, #faf5ff 100%);
}

.authx-visual-mobile {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.authx-visual-mobile .authx-visual-img {
    height: 7rem;
    width: auto;
}

.authx-visual-frame {
    position: absolute;
    inset: 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    pointer-events: none;
}

.authx-visual-img {
    position: relative;
    z-index: 1;
    max-width: 85%;
    max-height: min(420px, 55vh);
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 16px 32px rgba(99, 102, 241, 0.2));
}

.authx-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.authx-heading {
    margin: 0;
    font-size: 1.875rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1e293b;
}

.authx-subheading-row {
    margin: 0.5rem 0 1.5rem;
}

.authx-subheading {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
    flex: 1 1 auto;
    min-width: 0;
}

/*
 * 手机端：内容未撑满视口时垂直居中；内容高于视口时顶对齐并可滚动。
 * 通过 shell 的 margin-block:auto 吸收剩余高度，避免一律 flex-start 或一律 center 的极端表现。
 */
@media (max-width: 767px) {
    .authx-page {
        align-items: center;
        justify-content: flex-start;
        padding: max(0.75rem, env(safe-area-inset-top, 0px)) 0.75rem max(1rem, env(safe-area-inset-bottom, 0px));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .authx-shell {
        margin-top: auto;
        margin-bottom: auto;
        flex-shrink: 0;
        /* 手机端 Turnstile iframe 需可完整显示与点击，避免 hidden 裁切 */
        overflow: visible;
    }

    .authx-visual-mobile {
        margin-bottom: 0.75rem;
    }

    .authx-visual-mobile .authx-visual-img {
        height: 5rem;
    }

    .authx-form {
        justify-content: center;
        padding: 1.25rem 1rem 1.5rem;
    }

    .authx-heading {
        font-size: 1.5rem;
    }

    .authx-subheading-row {
        margin-bottom: 1rem;
    }

    /*
     * 手机 Chrome / iOS Safari：输入框字号 < 16px 时聚焦会自动放大整页。
     * 仅移动端提升到 16px，桌面端仍保持 0.875rem 视觉密度。
     */
    .authx-form .form-control,
    .authx-captcha-wrap .form-control,
    .authx-sms-captcha-group .form-control,
    .authx-captcha-row .input-group .form-control {
        font-size: 16px;
    }
}

@media (min-width: 1024px) {
    .authx-shell {
        grid-template-columns: 1fr 1fr;
    }

    .authx-visual-desktop {
        display: flex;
    }

    .authx-visual-mobile {
        display: none;
    }

    .authx-form {
        padding: 2.5rem 3rem;
    }

    .authx-heading {
        font-size: 2.25rem;
    }
}

.hide,
.hidden {
    display: none !important;
}

/* 行为验证码：登录页不占位（提交时弹 Layer）；注册页用 --behavior-register 显示提示 */
.authx-captcha-row--behavior,
.authx-form input.authx-behavior-captcha-field {
    display: none !important;
}

.authx-captcha-row--behavior-register .authx-behavior-captcha-field {
    display: none !important;
}

/* Turnstile：表单内展示小组件，不占 input-group 右侧按钮位 */
.authx-captcha-row--turnstile .input-group {
    display: block;
    border: none;
    background: transparent;
    box-shadow: none;
}

.authx-turnstile-wrap {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    padding: 4px 0 8px;
    min-height: 68px;
    overflow: visible;
    position: relative;
    z-index: 2;
    touch-action: manipulation;
}

.authx-turnstile-widget {
    width: 100%;
    max-width: 100%;
    min-height: 65px;
    display: block;
    touch-action: manipulation;
}

/* flexible 尺寸：与表单输入同列铺满，由 Cloudflare 控制 iframe 高度 */
.authx-turnstile-widget > div,
.authx-turnstile-widget .cf-turnstile {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
}

.authx-send-guard-turnstile {
    overflow: visible;
    position: relative;
    z-index: 2;
}

@media (max-width: 767px) {
    .authx-turnstile-wrap {
        min-height: 64px;
        align-items: stretch;
        width: 100%;
    }

    .authx-turnstile-widget,
    .authx-turnstile-widget iframe {
        width: 100% !important;
        max-width: 100% !important;
    }
}

.authx-turnstile-gate {
    display: none !important;
}

/* Turnstile 区勿显示空的 validator 红条（PC 登录页下方横线） */
.authx-captcha-row--turnstile .msg-box:empty,
.authx-turnstile-wrap .msg-box:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    min-height: 0 !important;
}

.authx-turnstile-hint.authx-turnstile-hint--error {
    color: #e11d48;
}

/* 行为验证码 Layer 打开时：禁止背景滚动与下拉刷新（Chrome 手机端） */
html.authx-ajcaptcha-layer-open,
body.authx-ajcaptcha-layer-open {
    overflow: hidden !important;
    overflow-x: hidden !important;
    overscroll-behavior: none !important;
}

/* 行为验证码 Layer：功能约束 + 与 authx 登录页一致的现代紫调圆角视觉 */
body.authx-body.authx-ajcaptcha-layer-open .layui-layer-shade {
    background-color: rgba(15, 23, 42, 0.45) !important;
    opacity: 1 !important;
}

body.authx-body .layui-layer.authx-ajcaptcha-layer {
    overscroll-behavior: contain;
    /* 勿用 manipulation，否则部分浏览器会抑制滑轨上的 touch 拖动 */
    touch-action: auto;
    left: 50% !important;
    margin-left: 0 !important;
    transform: translateX(-50%) !important;
    border: none !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    background: #fff !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1), 0 4px 12px rgba(15, 23, 42, 0.06) !important;
    box-sizing: border-box;
}

body.authx-body .layui-layer.authx-ajcaptcha-layer .layui-layer-title {
    height: auto !important;
    line-height: 1.4 !important;
    padding: 14px 44px 12px 16px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    text-align: center;
    background: #fff !important;
    border-bottom: none !important;
    cursor: default;
}

body.authx-body .layui-layer.authx-ajcaptcha-layer .layui-layer-setwin {
    top: 12px !important;
    right: 12px !important;
}

body.authx-body .layui-layer.authx-ajcaptcha-layer .layui-layer-setwin .layui-layer-close1 {
    width: 28px !important;
    height: 28px !important;
    line-height: 28px !important;
    border-radius: 8px !important;
    position: relative !important;
    font-size: 0 !important;
    color: transparent !important;
    /* 勿用 transparent 盖住 layui 雪碧图；改用伪元素画可见关闭叉 */
    background: rgba(148, 163, 184, 0.12) !important;
    background-image: none !important;
    opacity: 1;
    transition: background-color 0.15s;
}

body.authx-body .layui-layer.authx-ajcaptcha-layer .layui-layer-setwin .layui-layer-close1::before,
body.authx-body .layui-layer.authx-ajcaptcha-layer .layui-layer-setwin .layui-layer-close1::after {
    content: "" !important;
    position: absolute !important;
    width: 12px !important;
    height: 2px !important;
    background: #475569 !important;
    top: 50% !important;
    left: 50% !important;
    transform-origin: center !important;
}

body.authx-body .layui-layer.authx-ajcaptcha-layer .layui-layer-setwin .layui-layer-close1::before {
    transform: translate(-50%, -50%) rotate(45deg) !important;
}

body.authx-body .layui-layer.authx-ajcaptcha-layer .layui-layer-setwin .layui-layer-close1::after {
    transform: translate(-50%, -50%) rotate(-45deg) !important;
}

body.authx-body .layui-layer.authx-ajcaptcha-layer .layui-layer-setwin .layui-layer-close1:hover {
    background: rgba(99, 102, 241, 0.14) !important;
}

body.authx-body .layui-layer.authx-ajcaptcha-layer .layui-layer-setwin .layui-layer-close1:hover::before,
body.authx-body .layui-layer.authx-ajcaptcha-layer .layui-layer-setwin .layui-layer-close1:hover::after {
    background: #6366f1 !important;
}

body.authx-body .layui-layer.authx-ajcaptcha-layer .layui-layer-content {
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    height: auto !important;
    min-height: 220px;
    overflow-x: hidden;
    overflow-y: visible;
    padding: 4px 12px 14px !important;
    background: #fff !important;
    box-sizing: border-box;
}

body.authx-body .layui-layer.authx-ajcaptcha-layer [id^="authx-ajcaptcha-wrap-"],
body.authx-body .layui-layer.authx-ajcaptcha-layer [id^="auth-behavior-captcha-wrap-"] {
    display: block;
    visibility: visible;
    min-height: 200px;
    max-width: 100%;
    padding: 4px 4px 2px !important;
    box-sizing: border-box;
}

body.authx-body .layui-layer.authx-ajcaptcha-layer .verify-img-out {
    display: block !important;
    visibility: visible !important;
    max-width: 100% !important;
    box-sizing: content-box;
}

body.authx-body .layui-layer.authx-ajcaptcha-layer .verify-img-panel {
    display: block !important;
    visibility: visible !important;
    max-width: 100% !important;
    box-sizing: content-box;
    border-radius: 10px !important;
    overflow: hidden !important;
    border-color: #e2e8f0 !important;
}

/* 背景图尺寸由 verify.js 写入行内 height，勿改为 auto 以免缺口与滑块拼图块纵向错位 */
body.authx-body .layui-layer.authx-ajcaptcha-layer .verify-img-panel .backImg,
body.authx-body .layui-layer.authx-ajcaptcha-layer .verify-img-panel .back-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    display: block !important;
    object-fit: fill;
}

/* 滑块拼图块：top/height 由 verify.js 按 imgSize 计算，禁止覆盖定位 */
body.authx-body .layui-layer.authx-ajcaptcha-layer .verify-sub-block {
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: content-box !important;
}

body.authx-body .layui-layer.authx-ajcaptcha-layer .verify-sub-block .bock-backImg {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

body.authx-body .layui-layer.authx-ajcaptcha-layer .verify-img-panel .verify-refresh {
    width: 32px !important;
    height: 32px !important;
    line-height: 32px !important;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.35);
    margin: 6px;
    top: 0;
    right: 0;
}

body.authx-body .layui-layer.authx-ajcaptcha-layer .verify-img-panel .verify-refresh:hover {
    background: rgba(99, 102, 241, 0.55);
}

body.authx-body .layui-layer.authx-ajcaptcha-layer .verify-bar-area {
    touch-action: pan-x;
    max-width: 100% !important;
    /* 与 verify.js 一致用 content-box，避免 border 撑高导致滑块与拼图块错位 */
    box-sizing: content-box !important;
    margin-top: 0 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
}

body.authx-body .layui-layer.authx-ajcaptcha-layer .verify-bar-area .verify-msg {
    color: #64748b !important;
    font-size: 14px;
    /* 提示文案盖在滑轨上，需穿透点击到下方滑块 */
    pointer-events: none !important;
}

body.authx-body .layui-layer.authx-ajcaptcha-layer .verify-bar-area .verify-move-block {
    touch-action: pan-x;
    position: absolute !important;
    top: 0 !important;
    z-index: 4;
    pointer-events: auto !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    border-radius: 8px !important;
    border: 1px solid #6366f1 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12) !important;
    background: #fff !important;
}

body.authx-body .layui-layer.authx-ajcaptcha-layer .verify-bar-area .verify-move-block:hover {
    background-color: #eef2ff !important;
    color: #6366f1 !important;
}

body.authx-body .layui-layer.authx-ajcaptcha-layer .verify-bar-area .verify-move-block .verify-icon {
    color: #6366f1 !important;
}

body.authx-body .layui-layer.authx-ajcaptcha-layer .verify-bar-area .verify-left-bar {
    box-sizing: border-box !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1;
    border: 1px solid #6366f1 !important;
    border-color: #6366f1 !important;
    background: rgba(99, 102, 241, 0.12) !important;
    border-radius: 8px !important;
}

body.authx-body .layui-layer.authx-ajcaptcha-layer .verify-tips {
    border-radius: 8px;
    font-size: 13px;
}

body.authx-body .layui-layer.authx-ajcaptcha-layer .verify-tips.suc-bg {
    background-color: rgba(99, 102, 241, 0.82) !important;
}

body.authx-body .layui-layer.authx-ajcaptcha-layer .verify-tips.err-bg {
    background-color: rgba(225, 29, 72, 0.82) !important;
}

/* ---------- 表单控件（保留 form-control / input-group 供 FastAdmin 表单与验证码） ---------- */
.authx-form .form-control {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 3rem;
    padding: 0 0.875rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #1e293b;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.authx-form .form-control::placeholder {
    color: #94a3b8;
}

.authx-form .form-control:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    background: #fff;
}

.authx-form .btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 0;
    transition: opacity 0.15s, transform 0.15s;
}

/* 发送验证码等辅助按钮：不与主提交按钮同宽 */
.authx-form .btn-captcha,
.authx-form .input-group .btn-captcha,
.authx-form .input-group .btn-info {
    width: auto !important;
    min-width: 6.5rem;
    flex: 0 0 auto;
}

.authx-form .btn-primary.authx-btn-main,
.authx-form button[type="submit"].btn-primary {
    width: 100%;
    max-width: 100%;
    height: 3rem;
    line-height: 3rem;
    padding: 0 1rem;
    font-size: 0.875rem;
    color: #fff;
    border-radius: 0.75rem;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 52%, #a855f7 100%);
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.28);
}

.authx-form .btn-primary:hover,
.authx-form .authx-btn-main:hover,
.authx-form .btn-primary:focus,
.authx-form .authx-btn-main:focus {
    color: #fff;
    opacity: 0.95;
}

.authx-form .btn-info,
.authx-form .btn-captcha {
    height: 3rem;
    padding: 0 0.875rem;
    font-size: 0.75rem;
    line-height: 3rem;
    white-space: nowrap;
    color: #4338ca;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 0.75rem;
}

.authx-form .btn-info:hover,
.authx-form .btn-captcha:hover {
    background: rgba(99, 102, 241, 0.2);
    color: #3730a3;
    text-decoration: none;
}

/* 发码倒计时/发送中：禁止重复点击，避免连点触发「发送频繁」 */
.authx-form .btn-captcha.disabled,
.authx-form .btn-captcha[aria-disabled="true"] {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.62;
}

.authx-captcha-row .input-group,
.authx-sms-captcha-group {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
}

.authx-captcha-row .input-group .form-control {
    flex: 1 1 12rem;
    width: auto;
    border-radius: 0.75rem 0 0 0.75rem;
}

.authx-captcha-row .input-group .input-group-btn {
    flex: 0 0 auto;
    display: flex;
}

.authx-captcha-row .input-group .input-group-btn .btn,
.authx-captcha-row .input-group .input-group-btn .btn-captcha {
    border-radius: 0 0.75rem 0.75rem 0;
    min-width: 6.5rem;
}

.authx-captcha-row .input-group .input-group-btn img {
    height: 3rem;
    border-radius: 0 0.75rem 0.75rem 0;
    cursor: pointer;
}

.authx-captcha-wrap,
.authx-sms-captcha-group {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
}

.authx-captcha-wrap .form-control,
.authx-sms-captcha-group .form-control {
    flex: 1 1 auto;
    min-width: 0;
}

/* ---------- 校验提示：显示在输入框下方，避免被卡片 overflow 裁切 ---------- */
.authx-group,
.authx-input-wrap,
.authx-captcha-wrap,
.authx-captcha-row .input-group {
    position: relative;
}

.authx-form .msg-box.n-right,
.authx-form .n-right,
.authx-form .n-bootstrap .n-right,
.authx-form .n-bootstrap .msg-box.n-right {
    position: static !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    float: none !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0.35rem 0 0 !important;
    transform: none !important;
    text-align: left !important;
    white-space: normal;
    z-index: 1;
}

.authx-form .n-bootstrap .n-right .msg-wrap,
.authx-form .n-bootstrap .msg-box.n-right .msg-wrap,
.authx-form .msg-box.n-right .msg-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid rgba(244, 63, 94, 0.24);
    border-radius: 8px;
    background: rgba(244, 63, 94, 0.08);
}

.authx-form .n-bootstrap .n-right .n-error,
.authx-form .msg-box.n-right .n-error {
    color: #e11d48;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.authx-form .n-bootstrap .n-right .n-icon,
.authx-form .msg-box.n-right .n-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    font-size: 9px;
    color: #fff;
    background: #f43f5e;
}

.authx-form .n-bootstrap .n-right .n-arrow,
.authx-form .msg-box.n-right .n-arrow {
    display: none;
}

.auth-hero-float {
    animation: authHeroFloat 6s ease-in-out infinite;
}

@keyframes authHeroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.authx-form-body {
    width: 100%;
    max-width: 28rem;
    overflow: visible;
}

/* ---------- 认证页 Toastr / Layer.msg：现代浅色卡片 + 顶部居中（不挡表单） ---------- */
body.authx-body #toast-container {
    top: 12% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    max-width: min(92vw, 24rem);
    pointer-events: none;
}

body.authx-body #toast-container > div {
    width: auto !important;
    min-width: 12rem;
    max-width: min(92vw, 24rem);
    margin: 0 !important;
    padding: 14px 20px 14px 44px !important;
    border-radius: 12px !important;
    opacity: 1 !important;
    font-family: 'Noto Sans SC', system-ui, sans-serif !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.08) !important;
    border: 1px solid transparent;
    background-position: 16px center !important;
    background-size: 18px 18px !important;
}

body.authx-body #toast-container > div:hover {
    box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.16), 0 10px 12px -8px rgba(15, 23, 42, 0.1) !important;
    cursor: default;
}

body.authx-body #toast-container > .toast-error {
    background-color: #fef2f2 !important;
    color: #991b1b !important;
    border-color: #fecaca !important;
}

body.authx-body #toast-container > .toast-error:hover {
    box-shadow: 0 10px 25px -5px rgba(239, 68, 68, 0.14), 0 8px 10px -6px rgba(15, 23, 42, 0.08) !important;
}

body.authx-body #toast-container > .toast-success {
    background-color: #eef2ff !important;
    color: #4338ca !important;
    border-color: #c7d2fe !important;
    background-image: none !important;
    padding: 14px 20px !important;
}

body.authx-body #toast-container > .toast-success:hover {
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.18), 0 8px 10px -6px rgba(15, 23, 42, 0.08) !important;
}

body.authx-body #toast-container > .toast-warning {
    background-color: #fffbeb !important;
    color: #92400e !important;
    border-color: #fde68a !important;
}

body.authx-body #toast-container > .toast-info {
    background-color: #eff6ff !important;
    color: #1e40af !important;
    border-color: #bfdbfe !important;
}

body.authx-body #toast-container .toast-close-button {
    color: inherit;
    opacity: 0.45;
    text-shadow: none;
    font-weight: 600;
    right: 10px;
}

body.authx-body #toast-container .toast-close-button:hover {
    opacity: 0.85;
    color: inherit;
}

body.authx-body .layui-layer.layui-layer-msg,
body.authx-body .layui-layer.layui-layer-dialog.layui-layer-msg {
    position: fixed !important;
    top: 12% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    margin-left: 0 !important;
    min-width: 12rem;
    max-width: min(92vw, 24rem);
    border-radius: 12px !important;
    border: 1px solid #fecaca !important;
    background-color: #fef2f2 !important;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.08) !important;
    box-sizing: border-box;
}

body.authx-body .layui-layer.layui-layer-msg .layui-layer-content,
body.authx-body .layui-layer.layui-layer-dialog.layui-layer-msg .layui-layer-content {
    padding: 14px 20px !important;
    color: #991b1b !important;
    font-family: 'Noto Sans SC', system-ui, sans-serif !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    text-align: center;
    background: transparent !important;
}

body.authx-body .layui-layer.layui-layer-msg .layui-layer-padding,
body.authx-body .layui-layer.layui-layer-msg .layui-layer-content {
    /* Layer 带 icon 时会加大左内边距，认证页保持紧凑居中 */
    padding-left: 20px !important;
}

body.authx-body .layui-layer.layui-layer-msg .layui-layer-ico {
    display: none;
}
