/* ==========================================================
   BRANDED FACTORY — B2B ACCOUNT ACCESS
   Scoped styles: no global Bootstrap/theme overrides.
   Palette mirrors homepage: ink / warm white / BF crimson.
   ========================================================== */

.bf-auth {
    --bf-ink: #111114;
    --bf-ink-soft: #313239;
    --bf-muted: #737783;
    --bf-red: #cf1234;
    --bf-red-dark: #b00828;
    --bf-stroke: #e8e8eb;
    --bf-canvas: #f6f5f3;
    --bf-white: #fff;
    font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 620px;
    background: radial-gradient(ellipse at 16% 9%, #fff 0%, transparent 44%),
                linear-gradient(150deg, #faf9f7 5%, #f2f1f1 100%);
    color: var(--bf-ink);
    -webkit-font-smoothing: antialiased;
}
.bf-auth *, .bf-auth *::before, .bf-auth *::after { box-sizing: border-box; }
.bf-auth svg { width: 20px; height: 20px; flex: 0 0 auto; }
.bf-auth a { text-decoration: none; }
.bf-auth button, .bf-auth input { font: inherit; }
.bf-auth button { cursor: pointer; }
.bf-auth__ambient { position: absolute; z-index: -1; pointer-events: none; border-radius: 50%; }
.bf-auth__ambient--one { width: 560px; height: 560px; left: -245px; top: 250px; border: 75px solid rgba(208, 18, 53, .022); }
.bf-auth__ambient--two { width: 420px; height: 420px; right: -200px; top: -220px; background: radial-gradient(circle, rgba(207,18,52,.08), transparent 72%); }
.bf-auth__shell { max-width: 1322px; margin: 0 auto; padding: 26px 36px 23px; }

/* Breadcrumb */
.bf-auth__crumb { display: flex; align-items: center; gap: 13px; margin: 0 0 20px; font-size: 12px; font-weight: 700; color: #7b7d82; }
.bf-auth__crumb a { display: inline-flex; align-items: center; gap: 9px; color: #6d7078; transition: color .2s ease; }
.bf-auth__crumb a:hover { color: var(--bf-red); }
.bf-auth__crumb svg { width: 13px; height: 13px; }
.bf-auth__crumb [aria-current] { color: #25262c; }

/* Main card */
.bf-auth__card { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr); min-height: 690px; overflow: hidden; background: #fff; border: 1px solid #ecebed; border-radius: 24px; box-shadow: 0 25px 65px rgba(33,29,30,.055), 0 2px 12px rgba(33,29,30,.025); }
.bf-auth__form-panel { position: relative; display: flex; align-items: center; justify-content: center; padding: 43px 55px 33px; background: #fff; }
.bf-auth__form-content { width: 100%; max-width: 448px; }

/* Identity */
.bf-auth__eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: #1d1d22; font-size: 10px; letter-spacing: .095em; font-weight: 900; white-space: nowrap; }
.bf-auth__eyebrow-mark { display: grid; grid-template-columns: repeat(2, 6px); gap: 2px; margin-right: 1px; }
.bf-auth__eyebrow-mark span { width: 6px; height: 6px; border-radius: 1.5px; background: var(--bf-red); }
.bf-auth__eyebrow-mark span:last-child { background: #131313; }
.bf-auth__eyebrow-divider { width: 1px; height: 13px; margin: 0 1px; background: #d5d5d8; }
.bf-auth__heading-group { margin: 51px 0 34px; }
.bf-auth__welcome-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid #f0e9e9; border-radius: 99px; color: var(--bf-red); background: #fff8f9; font-size: 10px; font-weight: 900; letter-spacing: .11em; }
.bf-auth__status-dot { display: inline-block; height: 6px; width: 6px; border-radius: 50%; background: var(--bf-red); }
.bf-auth__heading-group h1 { margin: 17px 0 15px; color: #111114; font-size: clamp(46px, 3.8vw, 60px); font-weight: 900; letter-spacing: -.07em; line-height: 1.075; }
.bf-auth__heading-group h1 span { color: var(--bf-red); }
.bf-auth__heading-group > p { margin: 0; color: #777a81; max-width: 340px; font-size: 14px; line-height: 1.7; font-weight: 500; }

/* Forms */
.bf-auth__form { display: block; }
.bf-auth__field { margin: 0 0 18px; }
.bf-auth__field label { display: inline-block; color: #24252b; margin-bottom: 9px; font-size: 12px; font-weight: 800; line-height: 1.5; }
.bf-auth__field label span { color: var(--bf-red); }
.bf-auth__label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bf-auth__help-link { color: #b51231; font-size: 11px; font-weight: 800; white-space: nowrap; }
.bf-auth__help-link:hover { color: #930b24; text-decoration: underline; text-underline-offset: 3px; }
.bf-auth__input-wrap { position: relative; display: flex; align-items: center; width: 100%; min-height: 54px; background: #fbfbfc; border: 1px solid #e6e6e9; border-radius: 11px; transition: background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.bf-auth__input-wrap:hover { border-color: #cfd0d4; }
.bf-auth__input-wrap:focus-within { background: #fff; border-color: var(--bf-red); box-shadow: 0 0 0 4px rgba(207,18,52,.085); }
.bf-auth__field-icon { margin-left: 17px; color: #9497a0; width: 18px !important; height: 18px !important; pointer-events: none; }
.bf-auth__input-wrap input { flex: 1; min-width: 0; height: 53px; padding: 0 12px 0 14px; border: 0 !important; outline: 0 !important; background: transparent !important; box-shadow: none !important; color: #202127 !important; font-size: 13px; font-weight: 650; letter-spacing: .01em; border-radius: 11px; }
.bf-auth__input-wrap input::placeholder { color: #a2a3aa; opacity: 1; font-weight: 500; }
.bf-auth__input-wrap input:-webkit-autofill, .bf-auth__input-wrap input:-webkit-autofill:hover, .bf-auth__input-wrap input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 100px #fff inset !important; -webkit-text-fill-color: #202127 !important; transition: background-color 9999s; }
.bf-auth__reveal { height: 43px; width: 43px; display: inline-flex; justify-content: center; align-items: center; flex: 0 0 43px; padding: 0; margin-right: 5px; border: 0; color: #747782; background: transparent; border-radius: 8px; }
.bf-auth__reveal:hover, .bf-auth__reveal:focus-visible { color: var(--bf-red); background: #f6edf0; outline: none; }
.bf-auth__reveal svg { width: 18px; height: 18px; }
.bf-auth__eye-closed { display: none; }
.bf-auth__reveal[aria-pressed="true"] .bf-auth__eye-open { display: none; }
.bf-auth__reveal[aria-pressed="true"] .bf-auth__eye-closed { display: block; }
.bf-auth__field-error { min-height: 0; margin: 0; padding: 0; color: #b20d2b; font-size: 11px; font-weight: 650; line-height: 1.4; }
.bf-auth__field-error:not(:empty) { margin-top: 6px; }
.bf-auth__field.is-invalid .bf-auth__input-wrap { border-color: #d11a38; background: #fffafb; }
.bf-auth__field.is-invalid .bf-auth__field-icon { color: #ce1232; }
.bf-auth__caps { margin: 6px 0 0; color: #825900; font-size: 11px; }
.bf-auth__caps[hidden], .bf-auth__message[hidden] { display: none !important; }

.bf-auth__message { margin: 7px 0 15px; padding: 12px 14px; display: flex; align-items: flex-start; gap: 10px; border-radius: 10px; font-size: 12px; font-weight: 700; line-height: 1.55; }
.bf-auth__message::before { display: inline-grid; place-items: center; flex: 0 0 19px; width: 19px; height: 19px; border-radius: 50%; font-size: 11px; font-weight: 900; }
.bf-auth__message--error { background: #fff2f4; border: 1px solid #f7cbd3; color: #9a1229; }
.bf-auth__message--error::before { content: "!"; border: 1px solid #d82d49; }
.bf-auth__message--success { background: #effaf4; border: 1px solid #c5ead5; color: #156a41; }
.bf-auth__message--success::before { content: "✓"; border: 1px solid #42a876; }

/* Primary action */
.bf-auth__submit { position: relative; width: 100%; min-height: 55px; display: flex; align-items: center; justify-content: center; gap: 15px; margin-top: 25px; padding: 15px 23px; background: #141417; border: 1px solid #141417; border-radius: 11px; color: white; font-size: 13px; letter-spacing: .006em; font-weight: 800; transition: transform .22s ease, background .22s ease, box-shadow .22s ease; }
.bf-auth__submit:hover:not(:disabled) { background: var(--bf-red); border-color: var(--bf-red); transform: translateY(-1px); box-shadow: 0 10px 25px rgba(207,18,52,.16); }
.bf-auth__submit:active:not(:disabled) { transform: translateY(0); }
.bf-auth__submit:focus-visible { outline: 3px solid rgba(207,18,52,.36); outline-offset: 3px; }
.bf-auth__submit:disabled { opacity: .83; cursor: progress; }
.bf-auth__button-arrow { position: absolute; right: 20px; width: 19px !important; height: 19px !important; }
.bf-auth__spinner { display: none; position: absolute; right: 21px; width: 17px; height: 17px; border-radius: 50%; border: 2px solid rgba(255,255,255,.36); border-top-color: #fff; animation: bf-auth-spin .72s linear infinite; }
.bf-auth__submit.is-loading .bf-auth__button-arrow { display: none; }
.bf-auth__submit.is-loading .bf-auth__spinner { display: block; }
@keyframes bf-auth-spin { to { transform: rotate(360deg); } }
.bf-auth__secure-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 15px; color: #92949a; font-size: 10px; font-weight: 650; letter-spacing: .008em; }
.bf-auth__secure-note svg { width: 14px; height: 14px; color: #898b92; }

/* New account panel */
.bf-auth__signup { display: flex; align-items: center; gap: 12px; margin-top: 31px; padding: 17px 16px; background: #f8f8f9; border: 1px solid #eeedf0; border-radius: 12px; }
.bf-auth__signup-icon { display: grid; place-items: center; flex: 0 0 39px; width: 39px; height: 39px; border: 1px solid #f4dfe4; border-radius: 11px; background: #fff; color: var(--bf-red); }
.bf-auth__signup-icon svg { width: 19px; height: 19px; }
.bf-auth__signup-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bf-auth__signup-copy strong { color: #2c2c31; font-size: 11px; font-weight: 900; line-height: 1.5; }
.bf-auth__signup-copy span { color: #8c8e96; font-size: 10px; font-weight: 500; line-height: 1.5; }
.bf-auth__signup-link { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; margin-left: auto; color: var(--bf-red); font-size: 11px; font-weight: 900; }
.bf-auth__signup-link svg { width: 14px; height: 14px; transition: transform .2s; }
.bf-auth__signup-link:hover { color: #9d0925; }
.bf-auth__signup-link:hover svg { transform: translateX(3px); }

/* Dark branded storytelling panel */
.bf-auth__story { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 31px 36px 29px; overflow: hidden; color: #fff; background: radial-gradient(ellipse 390px 260px at 103% 64%, rgba(214,21,58,.23), transparent 72%), linear-gradient(155deg, #17171a 0%, #0d0d0f 82%); }
.bf-auth__story::after { content: ""; position: absolute; right: -95px; top: 105px; width: 410px; height: 410px; border: 1px solid rgba(255,255,255,.045); border-radius: 50%; pointer-events: none; }
.bf-auth__story-grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 25%, #000 85%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0%, #000 25%, #000 85%, transparent 100%); }
.bf-auth__story-top, .bf-auth__story-center, .bf-auth__story-footer { position: relative; z-index: 1; }
.bf-auth__story-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.bf-auth__story-logo { font-size: 29px; line-height: 1; font-weight: 1000; letter-spacing: -.09em; }
.bf-auth__story-logo span { color: #ea153f; }
.bf-auth__story-kicker { display: inline-flex; align-items: center; gap: 8px; color: #b5b5bd; font-size: 9px; font-weight: 900; letter-spacing: .1em; white-space: nowrap; }
.bf-auth__story-dot { width: 6px; height: 6px; border-radius: 50%; background: #e51842; box-shadow: 0 0 0 3px rgba(229,24,66,.12); }
.bf-auth__story-center { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 0; padding-top: 26px; }
.bf-auth__outline-word { position: absolute; z-index: -1; top: 50px; left: -10px; pointer-events: none; color: rgba(255,255,255,.023); font-size: clamp(90px, 9vw, 150px); font-weight: 1000; letter-spacing: -.09em; line-height: 1; user-select: none; }
.bf-auth__story-copy { position: relative; z-index: 2; max-width: 490px; }
.bf-auth__red-rule { width: 41px; height: 4px; margin-bottom: 24px; background: #d81034; border-radius: 8px; }
.bf-auth__story-eyebrow { margin: 0 0 14px; color: #aeb0b9; font-size: 10px; line-height: 1.2; font-weight: 900; letter-spacing: .18em; }
.bf-auth__story-copy h2 { margin: 0; font-size: clamp(33px, 3vw, 46px); line-height: 1.16; letter-spacing: -.063em; font-weight: 950; color: #fff; }
.bf-auth__story-copy h2 em { font-style: normal; color: #f34460; }
.bf-auth__story-copy h2 > span { color: #e91941; }
.bf-auth__story-description { max-width: 365px; margin: 21px 0 0; color: #a3a4ae; font-size: 12px; line-height: 1.85; font-weight: 500; }

/* Custom 'inventory card' — CSS only, no external decorative assets */
.bf-auth__inventory-art { position: relative; margin: 17px 0 10px auto; width: 265px; height: 182px; transform: rotate(-5deg); }
.bf-auth__art-back { position: absolute; width: 226px; height: 149px; right: 0; bottom: 10px; border: 1px solid rgba(255,255,255,.17); border-radius: 11px; background: linear-gradient(145deg, #202024, #121214); transform: rotate(12deg) translate(12px, -3px); box-shadow: 0 16px 36px rgba(0,0,0,.2); }
.bf-auth__art-front { position: absolute; inset: 0 32px 0 0; display: flex; flex-direction: column; padding: 14px; background: linear-gradient(125deg, #e21b43 0%, #b4062b 100%); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; box-shadow: 0 20px 42px rgba(0,0,0,.36); }
.bf-auth__art-topline { display: flex; align-items: center; justify-content: space-between; gap: 4px; color: rgba(255,255,255,.86); font-size: 8px; font-weight: 900; letter-spacing: .065em; }
.bf-auth__art-check { font-size: 7px; }
.bf-auth__art-box { display: flex; gap: 0; align-items: center; justify-content: center; flex: 1; margin-top: -9px; color: rgba(255,255,255,.16); font-size: 112px; letter-spacing: -.15em; font-weight: 1000; line-height: 1; }
.bf-auth__art-bottom { display: flex; align-items: flex-end; justify-content: space-between; }
.bf-auth__art-bottom strong { font-size: 10px; line-height: 1.2; letter-spacing: .07em; }
.bf-auth__art-square { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.6); border-radius: 5px; font-size: 16px; }
.bf-auth__float-tag { position: absolute; z-index: 2; display: flex; align-items: center; gap: 6px; right: -26px; top: 49px; padding: 11px 13px; border: 1px solid rgba(255,255,255,.13); border-radius: 8px; background: #fff; color: #28282e; box-shadow: 0 16px 36px rgba(0,0,0,.18); font-size: 8px; font-weight: 950; letter-spacing: .07em; white-space: nowrap; transform: rotate(5deg); }
.bf-auth__float-tag-dot { width: 7px; height: 7px; border-radius: 50%; background: #11a668; }

.bf-auth__story-footer { display: flex; align-items: center; gap: 8px; justify-content: space-between; margin-top: auto; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); }
.bf-auth__feature { display: flex; align-items: center; gap: 9px; min-width: 0; color: #8e909a; font-size: 9px; font-weight: 600; line-height: 1.55; }
.bf-auth__feature strong { font-weight: 800; color: #e6e6ed; }
.bf-auth__feature-icon { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; color: #f04b69; font-size: 15px; }
.bf-auth__below { display: flex; justify-content: space-between; gap: 15px; padding: 20px 1px 4px; color: #8f9095; font-size: 10px; font-weight: 600; }
.bf-auth__below a { color: #34353a; font-weight: 800; }
.bf-auth__below a:hover { color: var(--bf-red); }
.bf-auth-noscript { padding: 15px 20px; text-align: center; color: #9c0825; background: #fff1f3; border: 1px solid #ffced8; }

/* Tablet and mobile: readable fields, full-width tap targets, no sideways scroll. */
@media (max-width: 1180px) {
    .bf-auth__shell { padding-inline: 24px; }
    .bf-auth__form-panel { padding-inline: 36px; }
    .bf-auth__story { padding-inline: 25px; }
    .bf-auth__story-copy h2 { font-size: 36px; }
    .bf-auth__feature { gap: 6px; font-size: 8px; }
    .bf-auth__feature-icon { width: 26px; height: 26px; flex-basis: 26px; }
}
@media (max-width: 900px) {
    .bf-auth__card { grid-template-columns: minmax(0, 1fr) minmax(0, .86fr); min-height: 650px; }
    .bf-auth__form-panel { padding: 39px 26px; }
    .bf-auth__heading-group { margin: 43px 0 27px; }
    .bf-auth__heading-group h1 { font-size: 48px; }
    .bf-auth__signup { flex-wrap: wrap; }
    .bf-auth__story { padding: 26px 22px; }
    .bf-auth__story-copy h2 { font-size: 34px; }
    .bf-auth__inventory-art { transform: rotate(-5deg) scale(.78); transform-origin: right center; margin-top: 2px; margin-bottom: 0; }
    .bf-auth__story-footer { flex-wrap: wrap; column-gap: 20px; row-gap: 13px; }
}
@media (max-width: 760px) {
    .bf-auth__shell { max-width: 600px; padding: 20px 17px 26px; }
    .bf-auth__crumb { margin-bottom: 13px; }
    .bf-auth__card { grid-template-columns: minmax(0,1fr); border-radius: 18px; min-height: 0; }
    .bf-auth__form-panel { padding: 37px 26px 30px; }
    .bf-auth__form-content { max-width: 450px; }
    .bf-auth__heading-group { margin-top: 37px; margin-bottom: 28px; }
    .bf-auth__heading-group h1 { font-size: clamp(48px, 12vw, 60px); }
    .bf-auth__story { min-height: 290px; padding: 26px 27px; }
    .bf-auth__story-center { padding: 19px 0 8px; }
    .bf-auth__story-eyebrow { font-size: 9px; }
    .bf-auth__story-copy h2 { font-size: 34px; }
    .bf-auth__story-description { font-size: 11px; margin-top: 12px; }
    .bf-auth__inventory-art { display: none; }
    .bf-auth__story-footer { margin-top: 20px; padding-top: 17px; }
    .bf-auth__below { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
}
@media (max-width: 440px) {
    .bf-auth__shell { padding: 15px 10px 20px; }
    .bf-auth__form-panel { padding: 32px 19px 23px; }
    .bf-auth__eyebrow { gap: 6px; font-size: 8px; letter-spacing: .05em; }
    .bf-auth__heading-group { margin-top: 31px; }
    .bf-auth__heading-group h1 { font-size: 47px; }
    .bf-auth__heading-group > p { font-size: 12px; }
    .bf-auth__label-row { flex-wrap: wrap; row-gap: 0; }
    .bf-auth__field label { font-size: 11px; }
    .bf-auth__help-link { font-size: 10px; }
    .bf-auth__signup { padding: 12px; gap: 9px; }
    .bf-auth__signup-icon { width: 33px; height: 33px; flex-basis: 33px; }
    .bf-auth__signup-copy span { max-width: 160px; }
    .bf-auth__story { padding: 23px 19px; }
    .bf-auth__story-kicker { font-size: 8px; }
    .bf-auth__story-copy h2 { font-size: 30px; }
    .bf-auth__feature { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .bf-auth *, .bf-auth *::before, .bf-auth *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
