/* ============================================================
 * 商户登录页蓝紫主题 · 玻璃拟态风
 * 仅覆盖 application/index/view/index/index.html 的视觉样式
 * 不影响任何业务逻辑 / JS / 其他页面
 * ============================================================ */

/* ---------- 1. 页面背景：蓝紫渐变 + 漂浮光斑 ---------- */
body.single-page-bg {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 35%, #6a11cb 70%, #2575fc 100%);
    background-size: cover;
    position: relative;
    overflow-x: hidden;
}

/* 左上紫色光斑 */
body.single-page-bg::before {
    content: '';
    position: fixed;
    top: -120px;
    left: -120px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(106, 17, 203, 0.55) 0%, rgba(106, 17, 203, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

/* 右下蓝色光斑 */
body.single-page-bg::after {
    content: '';
    position: fixed;
    bottom: -160px;
    right: -160px;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(37, 117, 252, 0.5) 0%, rgba(37, 117, 252, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

/* 让卡片位于光斑之上 */
body.single-page-bg #main-wrapper {
    position: relative;
    z-index: 1;
}

/* ---------- 2. 登录卡片：玻璃拟态 ---------- */
body.single-page-bg .card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(31, 38, 135, 0.35);
    overflow: hidden;
}

body.single-page-bg .card .card-body {
    background: transparent;
}

/* ---------- 3. 标题“商户登录” ---------- */
body.single-page-bg h2.font-25 {
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 4px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    padding-bottom: 28px !important;
    position: relative;
}

body.single-page-bg h2.font-25::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    margin: 14px auto 0;
    border-radius: 4px;
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    box-shadow: 0 0 12px rgba(106, 17, 203, 0.7);
}

/* ---------- 4. 输入框：半透明圆角 + 聚焦发光 ---------- */
body.single-page-bg .form.bordered-input .form-control {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 10px !important;
    color: #ffffff;
    height: 46px;
    padding: 10px 16px;
    transition: all 0.25s ease;
    box-shadow: none;
}

body.single-page-bg .form.bordered-input .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

body.single-page-bg .form.bordered-input .form-control:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: #6a11cb !important;
    box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.35) !important;
    outline: none;
}

/* 自动填充保持深色可见 */
body.single-page-bg .form.bordered-input .form-control:-webkit-autofill {
    -webkit-text-fill-color: #ffffff;
    -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.18) inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* ---------- 5. 验证码图片 ---------- */
body.single-page-bg .verifyimg {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    margin-top: 0 !important;
    height: 46px !important;
    object-fit: cover;
}

body.single-page-bg .verifyimg:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(106, 17, 203, 0.4);
}

/* ---------- 6. “记住免登录”复选框：紫色自定义 ---------- */
body.single-page-bg .checkbox.checkbox-info {
    padding-left: 0;
}

body.single-page-bg .checkbox.checkbox-info input[type="checkbox"] {
    opacity: 0;
    width: 18px;
    height: 18px;
    margin: 3px 6px 0 0;
    position: relative;
    z-index: 2;
    cursor: pointer;
}

body.single-page-bg .checkbox.checkbox-info label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    padding-left: 0;
    position: relative;
    cursor: pointer;
}

/* 用 label::before 模拟紫色方框 */
body.single-page-bg .checkbox.checkbox-info label::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 1px;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
}

/* 选中时填充紫蓝渐变 + 勾 */
body.single-page-bg .checkbox.checkbox-info input[type="checkbox"]:checked + label::before {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    border-color: transparent;
}

body.single-page-bg .checkbox.checkbox-info input[type="checkbox"]:checked + label::after {
    content: '';
    position: absolute;
    left: -19px;
    top: 4px;
    width: 5px;
    height: 9px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ---------- 7. 登录按钮：紫蓝渐变 ---------- */
body.single-page-bg .btn-rounded.btn-primary {
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 12px 24px;
    border-radius: 50px !important;
    box-shadow: 0 8px 22px rgba(106, 17, 203, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.single-page-bg .btn-rounded.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(106, 17, 203, 0.65);
    background: linear-gradient(90deg, #5a0fb0 0%, #1f6cf0 100%) !important;
}

body.single-page-bg .btn-rounded.btn-primary:active {
    transform: translateY(-1px);
}

/* ---------- 8. 预加载动画：深蓝紫底 + 白色 spinner ---------- */
body.single-page-bg .preloader {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #6a11cb 100%);
}

body.single-page-bg .loader__figure {
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top-color: #ffffff;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: login-custom-spin 0.9s linear infinite;
}

body.single-page-bg .loader__label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    letter-spacing: 2px;
    margin-top: 18px;
}

@keyframes login-custom-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 兼容原 spinners.css 中 .loader__figure 的定位 */
body.single-page-bg .loader__figure {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ---------- 9. 滚动条美化（细节） ---------- */
body.single-page-bg::-webkit-scrollbar {
    width: 8px;
}
body.single-page-bg::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6a11cb, #2575fc);
    border-radius: 8px;
}
body.single-page-bg::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}
