.bx-wrap, .bx-wrap * { box-sizing: border-box; }
.bx-wrap {
    position: fixed; inset: 0; z-index: 9999; overflow-y: auto;
    display: flex; flex-direction: column;
    font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    color: #0b1f4d; background-color: #eef3fb;
    background-image:
        linear-gradient(105deg, #ffffff 0%, rgba(255,255,255,.96) 38%, rgba(255,255,255,.70) 60%, rgba(11,45,110,.35) 100%),
        url('/assets/img/bgs/login-office.jpg');
    background-size: cover; background-position: center;
}
.bx-wrap::before {
    content: ''; position: absolute; top: -60px; right: -120px; width: 420px; height: 220px;
    background: linear-gradient(120deg, #0b3a8c 0 70%, #e11d2e 70% 82%, #0b3a8c 82% 100%);
    transform: rotate(-28deg); opacity: .95; pointer-events: none;
}
.bx-main {
    position: relative; flex: 1; display: grid; grid-template-columns: 1.1fr 0.9fr;
    align-items: center; gap: 40px; padding: 40px 6vw; max-width: 1500px; width: 100%; margin: 0 auto;
}
.bx-left img.bx-logo { height: 80px; width: auto; margin-bottom: 28px; }
.bx-welcome { display: flex; align-items: center; gap: 14px; letter-spacing: .3em; font-size: 14px; color: #44527a; }
.bx-welcome::before { content: ''; width: 46px; height: 2px; background: #e11d2e; }
.bx-title { font-size: clamp(40px, 5.5vw, 68px); font-weight: 800; margin: 8px 0 0; line-height: 1.05; color: #0b2a6b; }
.bx-title span { color: #e11d2e; }
.bx-sub { font-size: 20px; color: #44527a; margin: 8px 0 18px; }
.bx-desc { font-size: 17px; color: #55618a; max-width: 460px; line-height: 1.5; }
.bx-features { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.bx-feature { width: 130px; text-align: center; }
.bx-ficon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; }
.bx-ficon.blue { background: #e3edff; color: #1d4ed8; }
.bx-ficon.red { background: #fde4e6; color: #e11d2e; }
.bx-ficon svg { width: 28px; height: 28px; }
.bx-feature b { display: block; font-size: 13.5px; color: #0b2a6b; }
.bx-feature small { display: block; font-size: 12px; color: #6b7699; margin-top: 3px; line-height: 1.35; }
.bx-slogan { font-family: 'Caveat', 'Brush Script MT', cursive; font-size: 40px; color: #0b2a6b; margin-top: 40px; line-height: 1.05; transform: rotate(-4deg); display: inline-block; }
.bx-slogan::after { content: ''; display: block; height: 3px; background: #e11d2e; border-radius: 3px; margin-top: 6px; }
.bx-card {
    background: #fff; border-radius: 20px; padding: 40px 40px 34px; max-width: 480px; width: 100%;
    justify-self: end; box-shadow: 0 25px 60px rgba(11,42,107,.25);
}
.bx-card .bx-ico { text-align: center; color: #0b2a6b; }
.bx-card .bx-ico svg { width: 44px; height: 44px; }
.bx-card h2 { text-align: center; margin: 6px 0 4px; font-size: 28px; font-weight: 800; color: #0b2a6b; }
.bx-card p.bx-lead { text-align: center; margin: 0 0 26px; color: #6b7699; font-size: 15px; }
.bx-field { position: relative; margin-bottom: 16px; }
.bx-field > svg.bx-lead-ico { position: absolute; left: 16px; top: 17px; width: 20px; height: 20px; color: #1f2d57; pointer-events: none; }
.bx-field input[type=email], .bx-field input[type=password], .bx-field input[type=text] {
    width: 100%; height: 54px; border: 1px solid #d6dcea; border-radius: 10px; padding: 0 48px 0 50px;
    font-size: 15px; background: #fff; color: #0b1f4d; outline: none; font-family: inherit;
}
.bx-field input:focus { border-color: #1d4ed8; box-shadow: 0 0 0 3px rgba(29,78,216,.15); }
.bx-eye { position: absolute; right: 14px; top: 14px; background: none; border: 0; cursor: pointer; color: #55618a; padding: 2px; }
.bx-eye svg { width: 22px; height: 22px; display: block; }
.bx-err { color: #d11a2a; font-size: 13px; margin: 6px 2px 0; }
.bx-row { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 22px; font-size: 14px; }
.bx-row label { display: flex; align-items: center; gap: 8px; color: #44527a; cursor: pointer; }
.bx-row input[type=checkbox] { width: 18px; height: 18px; accent-color: #1d4ed8; }
.bx-row a { color: #1d4ed8; font-weight: 600; text-decoration: none; }
.bx-row a:hover { text-decoration: underline; }
.bx-btn {
    width: 100%; height: 54px; border: 0; border-radius: 10px; background: #0a4fd6; color: #fff;
    font-size: 17px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
    font-family: inherit; transition: background .15s, transform .05s;
}
.bx-btn:hover { background: #083fb0; }
.bx-btn:active { transform: translateY(1px); }
.bx-btn svg { width: 20px; height: 20px; }
.bx-secure { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid #e6eaf3; }
.bx-secure svg { width: 34px; height: 34px; color: #0b2a6b; flex: none; }
.bx-secure b { display: block; font-size: 14px; color: #0b2a6b; }
.bx-secure small { color: #6b7699; font-size: 12px; }
.bx-footer { position: relative; background: #0b1f4d; color: #c7d2ee; font-size: 13px; padding: 18px 6vw; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.bx-footer .bx-vals span + span::before { content: '•'; margin: 0 12px; color: #5b6fa6; }
@media (max-width: 960px) {
    .bx-main { grid-template-columns: 1fr; padding: 28px 20px; gap: 24px; }
    .bx-features, .bx-desc, .bx-slogan, .bx-welcome, .bx-sub { display: none; }
    .bx-left { text-align: center; }
    .bx-title { font-size: 38px; }
    .bx-card { justify-self: center; padding: 30px 22px; }
    .bx-footer { justify-content: center; text-align: center; }
    .bx-wrap::before { display: none; }
}


/* ---- Patch v2 ---- */
.bx-wrap { overflow-x: hidden; }
.bx-wrap::before {
    top: -90px; right: -160px; width: 560px; height: 150px;
    background: linear-gradient(90deg, #e11d2e 0 14%, transparent 14% 20%, #0b3a8c 20% 100%);
    transform: rotate(-32deg);
}
.bx-main { max-width: 1800px; padding: 40px 7vw; }
.bx-left img.bx-logo { height: 100px; }
.bx-title { font-size: clamp(44px, 5vw, 84px); }
.bx-sub { font-size: 24px; }
.bx-desc { font-size: 19px; max-width: 540px; }
.bx-feature { width: 150px; }
.bx-ficon { width: 74px; height: 74px; }
.bx-feature b { font-size: 15px; }
.bx-feature small { font-size: 13px; }
.bx-slogan { font-size: 48px; }
.bx-card { max-width: 540px; padding: 48px 46px 40px; }
.bx-card h2 { font-size: 32px; }
.bx-card p.bx-lead { font-size: 16px; }
.bx-field input[type=email], .bx-field input[type=password], .bx-field input[type=text] { height: 58px; font-size: 16px; }
.bx-field > svg.bx-lead-ico { top: 19px; }
.bx-eye { top: 16px; }
.bx-btn { height: 58px; font-size: 18px; }
.bx-row { font-size: 15px; }
.bx-footer { font-size: 14px; }
