/* ==========================================================================
   会员登录 / 注册：独立卡片版式（不含站点外壳）
   ========================================================================== */

/* ===== 主题令牌：主色跟随系统主题 #0968f6 ===== */
:root {
    --up-primary: #0968f6;
    --up-primary-hover: #0a58ca;
    --up-primary-active: #0047c4;
    --up-bg: #f7f8fa;
    --up-border: #ebecf0;
    --up-text-title: #131212;
    --up-text-body: #484a58;
    --up-text-sub: #767680;
    --up-text-muted: #8d8e99;
}

html, body { margin: 0; padding: 0; }

body { background: var(--up-bg); }

.bm-login {
    position: fixed;
    inset: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--up-bg);
    padding-top: 0;
    padding-bottom: 0;
    font-family: "PingFang SC", "PingFang HK", "Helvetica Neue", Helvetica, "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
}

/* 左上角 Logo */
.bm-topbar {
    position: absolute;
    top: 28px;
    left: 32px;
    z-index: 10;
}
.bm-topbar img {
    height: 36px;
    width: auto;
    display: block;
}

/* 居中容器 */
.bm-center {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.bm-login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid var(--up-border);
    border-radius: 16px;
    padding: 40px 36px 32px;
}

.bm-card-head { margin-bottom: 30px; }
.bm-card-title {
    font-size: 26px;
    font-weight: 600;
    color: var(--up-text-title);
    margin-bottom: 8px;
}
.bm-card-sub {
    font-size: 14px;
    color: var(--up-text-sub);
    margin: 0;
}

.bm-field {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e3e6eb;
    border-radius: 8px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.bm-field:focus-within {
    border-color: var(--up-primary);
    box-shadow: 0 0 0 3px rgba(9, 104, 246, .12);
}
.bm-field:has(.bm-input:disabled) { background: #f5f6f8; }
.bm-field-icon {
    color: var(--up-text-muted);
    padding-left: 14px;
    font-size: 16px;
    display: inline-flex;
}
.bm-input {
    flex: 1;
    height: 46px;
    border: none;
    outline: none;
    background: transparent;
    padding: 0 14px;
    font-size: 15px;
    color: var(--up-text-title);
    min-width: 0;
}
.bm-input::placeholder { color: var(--up-text-muted); }
.bm-input:disabled { cursor: not-allowed; }
.bm-input:disabled::placeholder { opacity: .55; }
.bm-pwd-toggle {
    border: none;
    background: transparent;
    padding: 0 14px;
    color: var(--up-text-muted);
    cursor: pointer;
    font-size: 16px;
}
.bm-pwd-toggle:hover { color: var(--up-primary); }

/* 图形验证码 / 短信验证码 */
.bm-captcha-img {
    height: 34px;
    width: auto;
    margin-right: 10px;
    border: 1px solid #eef1f6;
    border-radius: 6px;
    cursor: pointer;
}
.bm-sms-send {
    flex-shrink: 0;
    height: 30px;
    margin-right: 8px;
    padding: 0 12px;
    border: none;
    border-radius: 6px;
    background: rgba(9, 104, 246, .08);
    color: var(--up-primary);
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}
.bm-sms-send:hover:not(:disabled) { background: var(--up-primary); color: #fff; }
.bm-sms-send:disabled { color: var(--up-text-muted); cursor: not-allowed; }
.bm-error {
    display: none;
    margin-top: 8px;
    font-size: 12.5px;
    line-height: 1.6;
    color: #f01d24;
}
.bm-error.is-show { display: block; }
.bm-error.is-ok { color: #0cbc87; }
.bm-mode-switch {
    margin: 14px 0 0;
    text-align: center;
    font-size: 13px;
}
.bm-mode-switch a {
    color: var(--up-primary);
    text-decoration: none;
}
.bm-mode-switch a:hover { text-decoration: underline; }

/* 图形验证码块（同输入风格） */
.bm-login .input-group {
    width: 100%;
    height: 46px;
    border: 1px solid #e3e6eb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.bm-login .input-group:focus-within {
    border-color: var(--up-primary);
    box-shadow: 0 0 0 3px rgba(9, 104, 246, .12);
}
.bm-login .input-group .input-group-text {
    background: #fff !important;
    border: 0 !important;
    color: var(--up-text-muted) !important;
    padding-left: 14px;
    padding-right: 6px;
    border-radius: 8px 0 0 8px !important;
}
.bm-login .input-group .form-control {
    background: #fff !important;
    border: 0 !important;
    box-shadow: none !important;
    height: 44px;
    font-size: 15px;
    color: var(--up-text-title);
}
.bm-login .input-group .form-control::placeholder { color: var(--up-text-muted); }
.bm-login .input-group-btn {
    display: flex;
    align-items: center;
    padding: 0 8px;
    border: none !important;
    background: transparent !important;
}
.bm-login .input-group-btn img {
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
}
.bm-login .btn-captcha {
    border: none;
    border-radius: 6px;
    background: rgba(9, 104, 246, .08);
    color: var(--up-primary);
    font-size: 13px;
    height: 32px;
    line-height: 32px;
    padding: 0 12px;
    white-space: nowrap;
    transition: background-color .2s ease, color .2s ease;
}
.bm-login .btn-captcha:hover { background: var(--up-primary); color: #fff; }

.bm-options {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 22px;
}
.bm-agree {
    font-size: 13px;
    color: var(--up-text-sub);
    line-height: 1.6;
}
.bm-agree a { color: var(--up-primary); text-decoration: none; }
.bm-agree a:hover { text-decoration: underline; }
.bm-link {
    font-size: 13px;
    color: var(--up-text-sub);
    text-decoration: none;
    white-space: nowrap;
}
.bm-link:hover { color: var(--up-primary); }

.bm-btn-primary {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 8px;
    background: var(--up-primary);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 4px;
    transition: background-color .2s ease;
}
.bm-btn-primary:hover { background: var(--up-primary-hover); }
.bm-btn-primary:active { background: var(--up-primary-active); }

.bm-register {
    text-align: center;
    font-size: 14px;
    color: var(--up-text-body);
    margin-top: 22px;
    margin-bottom: 0;
}
.bm-register a { color: var(--up-primary); text-decoration: none; font-weight: 500; }
.bm-register a:hover { text-decoration: underline; }

.bm-modal { border-radius: 12px; }

/* 移动端 */
@media (max-width: 575.98px) {
    .bm-topbar { top: 20px; left: 20px; }
    .bm-login-card { padding: 32px 22px 26px; border-radius: 12px; }
}
