/**
 * 商户登录页专属样式 —— 与主登录页（绿色主题+照片背景+居中卡片）明确区分：
 * 靛蓝品牌色 + 深蓝渐变背景 + 左右分栏卡片（左品牌区 / 右表单区）
 */
html { height: 100%; }

body.merchant-login-page {
    min-height: 100%;
    margin: 0;
    padding: 40px 16px 70px;
    font-family: "open sans", "Helvetica Neue", "Microsoft YaHei", Helvetica, Arial, sans-serif;
    color: #333;
    background: linear-gradient(135deg, #3b4fd8 0%, #1e2a78 55%, #131a4a 100%);
    position: relative;
    overflow-x: hidden;
}

/* 背景装饰光斑 */
body.merchant-login-page::before,
body.merchant-login-page::after {
    content: "";
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
body.merchant-login-page::before {
    width: 460px; height: 460px; left: -150px; top: -150px;
    background: radial-gradient(circle, rgba(124, 140, 255, .35), transparent 70%);
}
body.merchant-login-page::after {
    width: 560px; height: 560px; right: -180px; bottom: -200px;
    background: radial-gradient(circle, rgba(64, 196, 255, .25), transparent 70%);
}

.ml-wrap { max-width: 820px; margin: 6% auto 0; position: relative; z-index: 1; }

.ml-card {
    display: flex;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 18px 60px rgba(10, 16, 60, .45);
    overflow: hidden;
}

/* ---------- 左侧品牌区 ---------- */
.ml-brand {
    flex: 0 0 46%;
    background: linear-gradient(160deg, #4c6ef5 0%, #364fc7 60%, #2f3fae 100%);
    color: #fff;
    padding: 46px 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.ml-brand-logo {
    width: 58px; height: 58px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .35);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    margin-bottom: 22px;
}
.ml-brand h2 { font-size: 24px; font-weight: 600; margin: 0 0 8px; color: #fff; }
.ml-brand .ml-slogan { font-size: 13px; color: rgba(255, 255, 255, .75); margin: 0 0 26px; }
.ml-features { list-style: none; padding: 0; margin: 0; }
.ml-features li { font-size: 13.5px; color: rgba(255, 255, 255, .92); padding: 7px 0; }
.ml-features li i { margin-right: 10px; color: #9db8ff; width: 16px; text-align: center; }

/* ---------- 右侧表单区 ---------- */
.ml-form-panel { flex: 1; padding: 46px 42px 34px; }
.ml-title { margin: 0; font-size: 22px; font-weight: 600; color: #252b42; }
.ml-subtitle { color: #98a2b3; font-size: 13px; margin: 6px 0 26px; }

.ml-form-panel .form-group { position: relative; margin-bottom: 14px; }
.ml-form-panel .input-icon {
    position: absolute; left: 12px; top: 11px;
    color: #b6bfcd; font-size: 15px; z-index: 2;
}
.ml-form-panel .form-control {
    height: 42px;
    padding-left: 38px;
    border: 1px solid #e3e8ef;
    border-radius: 8px;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.ml-form-panel .form-control:focus {
    border-color: #4c6ef5;
    box-shadow: 0 0 0 3px rgba(76, 110, 245, .15);
}

/* jquery.verify 校验错误提示 */
.ml-form-panel label.focus {
    display: block;
    min-height: 18px;
    margin: 6px 0 0;
    text-align: left;
    font-size: 12px;
    font-weight: normal;
    color: #f0526a;
}

/* 主按钮（靛蓝，区别于主登录的绿色） */
.ml-btn-primary {
    display: block;
    width: 100%; height: 44px;
    margin-top: 8px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #4c6ef5, #364fc7);
    color: #fff;
    font-size: 16px;
    letter-spacing: 6px;
    transition: all .25s ease;
}
.ml-btn-primary:hover:not(:disabled) {
    box-shadow: 0 8px 20px rgba(76, 110, 245, .45);
    color: #fff;
}
.ml-btn-primary:disabled { opacity: .65; cursor: not-allowed; }

.ml-links { margin-top: 18px; text-align: center; font-size: 13px; color: #98a2b3; }
.ml-links a { color: #4c6ef5; }
.ml-links a:hover { text-decoration: underline; }

/* 卡片下方APP下载入口 */
.ml-apk { margin-top: 16px; text-align: center; font-size: 13px; position: relative; z-index: 1; }
.ml-apk a {
    display: inline-block;
    padding: 7px 18px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 20px;
    color: rgba(255, 255, 255, .9);
    transition: all .25s ease;
}
.ml-apk a:hover { background: rgba(255, 255, 255, .92); color: #364fc7; text-decoration: none; }

/* 底部版权栏 */
.ml-footer {
    position: fixed; bottom: 0; left: 0; right: 0;
    padding: 12px 0;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, .7);
    border-top: 1px solid rgba(255, 255, 255, .15);
    z-index: 1;
}
.ml-footer a { color: rgba(255, 255, 255, .85); }
.ml-footer a:hover { color: #fff; }

/* ---------- 响应式：窄屏改上下结构，品牌区简化为一行横条 ---------- */
@media (max-width: 768px) {
    body.merchant-login-page { padding: 20px 14px 20px; }
    .ml-wrap { margin-top: 3%; }
    .ml-card { flex-direction: column; }
    /* 品牌区：logo与标题同行显示，隐藏口号和功能列表，压缩高度 */
    .ml-brand { flex: none; padding: 16px 20px; flex-direction: row; align-items: center; text-align: left; }
    .ml-brand-logo { width: 40px; height: 40px; font-size: 18px; border-radius: 10px; margin-bottom: 0; margin-right: 12px; }
    .ml-brand h2 { font-size: 18px; margin: 0; }
    .ml-brand .ml-slogan { display: none; }
    .ml-features { display: none; }
    .ml-form-panel { padding: 26px 22px 22px; }
    .ml-title { text-align: center; }
    .ml-subtitle { text-align: center; }
    /* 版权栏改为文档流内显示，避免与APP下载按钮在窄屏重叠 */
    .ml-footer { position: static; margin-top: 18px; border-top: none; padding: 10px 0 4px; }
    .ml-apk { margin-top: 14px; }
}
