/* ====== B 端登录页样式（前缀 b- 避免与 topNew.css 冲突） ====== */
:root {
    --b-red: #FF4B40;
    --b-red-hover: #e0483f;
    --b-red-bg: rgba(255,75,64,0.08);
    --b-text-dark: #1a1a1a;
    --b-text-body: #333333;
    --b-text-light: #666666;
    --b-text-muted: #999;
    --b-border: #eee;
    --b-shadow-md: 0 6px 24px rgba(0,0,0,0.07);
    --b-form-bg: #F5F7FA;
}
.b-wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; width: 100%; box-sizing: border-box; }

.b-hero {
    min-height: calc(100vh - 110px);
    display: flex;
    align-items: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(17,17,22,0.02) 0%, #ffffff 60px);
    font-family: "Microsoft YaHei","PingFang SC","Helvetica Neue",Arial,sans-serif;
}
.b-hero::before {
    content: ''; position: absolute;
    top: -120px; left: 50%; transform: translateX(-50%);
    width: 600px; height: 400px;
    background: radial-gradient(ellipse, rgba(255,75,64,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.b-hero-row {
    display: flex;
    align-items: center;
    gap: 60px;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* ===== 左侧品牌区 ===== */
.b-hero-brand {
    position: relative;
    flex: 0 0 50%;
    max-width: 50%;
}
.b-hero-brand .brand-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.b-hero-brand .brand-blob--1 {
    width: 280px; height: 280px;
    top: -80px; right: -40px;
    background: radial-gradient(circle, rgba(255,75,64,0.05) 0%, transparent 70%);
}
.b-hero-brand .brand-blob--2 {
    width: 180px; height: 180px;
    bottom: 10%; left: -60px;
    background: radial-gradient(circle, rgba(59,130,246,0.04) 0%, transparent 70%);
}
.b-hero-brand .brand-blob--3 {
    width: 120px; height: 120px;
    bottom: 30%; right: 20%;
    background: radial-gradient(circle, rgba(255,75,64,0.03) 0%, transparent 70%);
}
.b-hero-brand > *:not(.brand-blob) {
    position: relative;
    z-index: 1;
}
.b-hero-brand h1 {
    font-size: clamp(32px, 3.6vw, 44px);
    font-weight: 800;
    color: #4A4A4A;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin: 0 0 10px 0;
}
.b-hero-subtitle {
    font-size: 15px;
    color: var(--b-text-light);
    margin-bottom: 28px;
    line-height: 1.7;
    max-width: 92%;
}
.b-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.b-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--b-red-bg);
    color: var(--b-red);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}
/* 左侧插图 */
.b-hero-brand .hero-illustration {
    width: 100%;
    max-width: 460px;
    margin: 0;
}
.b-hero-brand .hero-illustration img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== 右侧登录卡片 ===== */
.b-hero-form {
    flex: 0 0 42%;
    max-width: 42%;
}
.b-login-card {
    background: #fff;
    border: 1px solid var(--b-border);
    border-radius: 16px;
    box-shadow: var(--b-shadow-md);
    padding: 40px 36px;
}
.b-login-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--b-text-dark);
    margin-bottom: 24px;
    text-align: center;
}
.b-form-group { margin-bottom: 18px; }
.b-form-group label {
    display: block;
    font-size: 13px;
    color: var(--b-text-light);
    margin-bottom: 6px;
    font-weight: 500;
}
.b-form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--b-form-bg);
    border: 1.5px solid transparent;
    border-radius: 8px;
    font-size: 15px;
    color: var(--b-text-dark);
    outline: none;
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
    box-sizing: border-box;
}
.b-form-input::placeholder { color: #aaa; }
.b-form-input:focus {
    border-color: var(--b-red);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255,75,64,0.08);
}
.b-form-input.error { border-color: var(--b-red); }
.b-form-error {
    font-size: 12px;
    color: var(--b-red);
    margin-top: 4px;
    min-height: 18px;
}
.b-form-error-center { text-align: center; margin-top: 12px; }
.b-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.b-form-options label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    line-height: 16px;
    color: var(--b-text-light);
    cursor: pointer;
    margin: 0;
}
.b-form-options label input[type="checkbox"] {
    /* 自定义红色风格 checkbox：放弃原生 appearance，避免全局 CSS 干扰 */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    width: 16px;
    height: 16px;
    margin: 0;
    border: 1.5px solid var(--b-red);
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    position: relative;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
    -webkit-focus-ring-color: transparent;
    flex-shrink: 0;
    box-sizing: border-box;
}
/* 覆盖浏览器 :active 默认灰色，避免点击瞬间闪灰 */
.b-form-options label input[type="checkbox"]:active {
    background: #fff;
}
.b-form-options label input[type="checkbox"]:checked,
.b-form-options label input[type="checkbox"]:checked:active {
    background: var(--b-red);
    border-color: var(--b-red);
}
.b-form-options label input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}
.b-btn-login {
    width: 100%;
    padding: 13px 0;
    background: var(--b-red);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, box-shadow 0.3s, transform 0.1s;
    box-shadow: 0 4px 14px rgba(255,75,64,0.25);
}
.b-btn-login:hover { background: var(--b-red-hover); }
.b-btn-login:active { transform: translateY(1px); }
.b-btn-login.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* ===== 响应式 ===== */
@media screen and (max-width: 960px) {
    .b-wrap { padding: 0 20px; }
    .b-hero-row { flex-direction: column; gap: 40px; }
    .b-hero-brand { flex: 0 0 100%; max-width: 100%; text-align: center; }
    .b-hero-subtitle { max-width: 100%; }
    .b-hero-tags { justify-content: center; }
    .b-hero-form { flex: 0 0 100%; max-width: 420px; margin: 0 auto; }
}
@media screen and (max-width: 600px) {
    .b-login-card { padding: 28px 20px; }
    .b-hero-brand h1 { font-size: 30px; }
}
