:root {
    --bf-login-navy: #0b1739;
    --bf-login-primary: #405189;
    --bf-login-blue: #3577f1;
    --bf-login-teal: #0ab39c;
    --bf-login-ink: #172033;
    --bf-login-muted: #697386;
    --bf-login-border: #dfe5ee;
    --bf-login-surface: #ffffff;
}

* {
    box-sizing: border-box;
}

html,
body.bf-login-page {
    min-height: 100%;
}

body.bf-login-page {
    margin: 0;
    overflow-x: hidden;
    background: #f7f9fc;
    color: var(--bf-login-ink);
    font-family: Inter, "Segoe UI", sans-serif;
}

.bf-login-shell {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    grid-template-columns: minmax(520px, 1.16fr) minmax(440px, .84fr);
}

.bf-login-story {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    overflow: hidden;
    background: var(--bf-login-navy);
}

.bf-login-story__image,
.bf-login-story__veil {
    position: absolute;
    inset: 0;
}

.bf-login-story__image {
    z-index: -3;
    background: url("../images/login/login-cityscape.jpg") center 58% / cover no-repeat;
    transform: scale(1.015);
}

.bf-login-story__veil {
    z-index: -2;
    background:
        radial-gradient(circle at 76% 70%, rgba(53, 119, 241, .04), transparent 34%),
        linear-gradient(90deg, rgba(7, 18, 46, .88) 0%, rgba(8, 22, 54, .57) 54%, rgba(8, 21, 49, .18) 100%),
        linear-gradient(180deg, rgba(5, 15, 39, .2) 0%, rgba(5, 15, 39, .02) 50%, rgba(5, 15, 39, .78) 100%);
}

.bf-login-story::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .18;
    pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.35), transparent 58%);
}

.bf-login-story__content {
    width: 100%;
    min-height: 100%;
    padding: clamp(32px, 4vw, 68px) clamp(38px, 5.4vw, 88px) 40px;
    display: flex;
    flex-direction: column;
    color: #fff;
}

.bf-login-access-brand {
    display: inline-flex;
    align-items: center;
}

.bf-login-story__message {
    margin: auto 0;
    max-width: 690px;
    padding: 64px 0;
}

.bf-login-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    background: rgba(8, 27, 65, .34);
    color: rgba(255,255,255,.88);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
}

.bf-login-story h1 {
    max-width: 650px;
    margin: 0 0 24px;
    color: #fff;
    font-size: clamp(46px, 5.2vw, 78px);
    font-weight: 650;
    line-height: .99;
    letter-spacing: -.055em;
}

.bf-login-story h1 span {
    color: #8fc0ff;
}

.bf-login-story__message > p {
    max-width: 570px;
    margin: 0;
    color: rgba(238,245,255,.76);
    font-size: clamp(16px, 1.35vw, 20px);
    line-height: 1.65;
}

.bf-login-benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 620px;
    margin-top: 42px;
}

.bf-login-benefit {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px 16px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 16px;
    background: rgba(7, 24, 58, .35);
    backdrop-filter: blur(14px);
}

.bf-login-benefit > i {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: rgba(82, 144, 242, .2);
    color: #9cc8ff;
    font-size: 19px;
}

.bf-login-benefit span {
    color: rgba(233,242,255,.62);
    font-size: 11px;
    line-height: 1.45;
}

.bf-login-benefit strong {
    display: block;
    margin-bottom: 2px;
    color: #fff;
    font-size: 13px;
    font-weight: 650;
}

.bf-login-story__footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: rgba(255,255,255,.56);
    font-size: 12px;
}

.bf-login-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.78);
}

.bf-login-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #42d6bd;
    box-shadow: 0 0 0 5px rgba(66,214,189,.12);
}

.bf-login-access {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px clamp(34px, 5vw, 82px) 34px;
    background:
        radial-gradient(circle at 92% 7%, rgba(53,119,241,.1), transparent 24%),
        radial-gradient(circle at 8% 92%, rgba(10,179,156,.07), transparent 24%),
        #fbfcfe;
}

.bf-login-access__inner {
    width: min(100%, 455px);
}

.bf-login-access-brand {
    width: 100%;
    margin-bottom: 48px;
    justify-content: flex-start;
}

.bf-login-access-brand img {
    display: block;
    width: 300px;
    height: auto;
    margin-left: -55px;
}

.bf-login-heading {
    margin-top: -20px;
}

.bf-login-heading h2 {
    margin: 0 0 9px;
    color: var(--bf-login-ink);
    font-size: clamp(31px, 3vw, 40px);
    font-weight: 700;
    letter-spacing: -.045em;
}

.bf-login-heading p {
    margin: 0;
    color: var(--bf-login-muted);
    font-size: 15px;
}

.bf-login-form {
    margin-top: 42px;
}

.bf-login-field + .bf-login-field {
    margin-top: 22px;
}

.bf-login-field label,
.bf-login-label-row a {
    margin-bottom: 9px;
    font-size: 13px;
    font-weight: 650;
}

.bf-login-field label {
    color: #344054;
}

.bf-login-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.bf-login-label-row a {
    color: var(--bf-login-primary);
    text-decoration: none;
}

.bf-login-label-row a:hover,
.bf-login-help a:hover,
.bf-login-footer a:hover {
    color: var(--bf-login-blue);
}

.bf-login-control {
    position: relative;
}

.bf-login-control > i:first-child {
    position: absolute;
    top: 50%;
    left: 17px;
    z-index: 2;
    transform: translateY(-50%);
    color: #8a94a6;
    font-size: 19px;
    pointer-events: none;
}

.bf-login-control .form-control {
    height: 54px;
    padding: 0 48px 0 49px;
    border: 1px solid var(--bf-login-border);
    border-radius: 12px;
    background: #fff;
    color: var(--bf-login-ink);
    font-size: 14px;
    box-shadow: 0 1px 2px rgba(16,24,40,.03);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.bf-login-control .form-control::placeholder {
    color: #a1a9b7;
}

.bf-login-control .form-control:focus {
    border-color: #8091c2;
    box-shadow: 0 0 0 4px rgba(64,81,137,.1), 0 8px 24px rgba(38,52,94,.06);
}

.bf-login-password {
    position: absolute;
    top: 50%;
    right: 10px;
    z-index: 2;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #7f8999;
    font-size: 17px;
}

.bf-login-password:hover,
.bf-login-password:focus {
    background: #f0f3f8;
    color: var(--bf-login-primary);
}

.bf-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
    color: #5e6879;
    font-size: 13px;
}

.bf-login-options .form-check {
    min-height: auto;
    margin: 0;
}

.bf-login-options .form-check-input {
    width: 17px;
    height: 17px;
    margin-top: .08em;
    border-color: #cbd3df;
    border-radius: 5px;
}

.bf-login-options .form-check-input:checked {
    border-color: var(--bf-login-primary);
    background-color: var(--bf-login-primary);
}

.bf-login-options .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(64,81,137,.12);
}

.bf-login-secure {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #788395;
    font-size: 12px;
}

.bf-login-secure i {
    color: var(--bf-login-teal);
    font-size: 15px;
}

.bf-login-submit {
    width: 100%;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(115deg, #334476 0%, #405189 52%, #4b65aa 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 14px 28px rgba(64,81,137,.22);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.bf-login-submit i {
    font-size: 18px;
    transition: transform .2s ease;
}

.bf-login-submit:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 18px 34px rgba(64,81,137,.28);
}

.bf-login-submit:hover i {
    transform: translateX(3px);
}

.bf-login-submit:focus-visible {
    outline: 3px solid rgba(53,119,241,.24);
    outline-offset: 3px;
}

.bf-login-help {
    margin-top: 40px;
    padding: 17px 18px;
    border: 1px solid #e7eaf0;
    border-radius: 13px;
    background: rgba(255,255,255,.72);
    text-align: center;
    font-size: 12px;
}

.bf-login-help span {
    color: #7b8493;
}

.bf-login-help a {
    margin-left: 5px;
    color: var(--bf-login-primary);
    font-weight: 650;
    text-decoration: none;
}

.bf-login-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 38px;
    color: #929baa;
    font-size: 11px;
}

.bf-login-footer a {
    color: #778192;
    text-decoration: none;
}

body.bf-login-page #loadingOverlay {
    z-index: 9999;
}

@media (max-width: 1100px) {
    .bf-login-shell {
        grid-template-columns: minmax(420px, .9fr) minmax(430px, 1.1fr);
    }

    .bf-login-story__content {
        padding-left: 44px;
        padding-right: 44px;
    }

    .bf-login-benefits {
        grid-template-columns: 1fr;
        max-width: 330px;
    }

    .bf-login-benefit:nth-child(2) {
        display: none;
    }
}

@media (max-width: 820px) {
    body.bf-login-page {
        background: #fbfcfe;
    }

    .bf-login-shell {
        display: block;
    }

    .bf-login-story {
        display: none;
    }

    .bf-login-access {
        min-height: 100vh;
        min-height: 100svh;
        padding: 32px 24px 24px;
    }

}

@media (max-width: 480px) {
    .bf-login-access {
        align-items: flex-start;
        padding: 24px 20px 20px;
    }

    .bf-login-access-brand {
        margin-bottom: 38px;
    }

    .bf-login-heading h2 {
        font-size: 31px;
    }

    .bf-login-form {
        margin-top: 34px;
    }

    .bf-login-secure {
        display: none;
    }

    .bf-login-help span {
        display: block;
        margin-bottom: 4px;
    }

    .bf-login-help a {
        margin-left: 0;
    }
}

@media (max-height: 760px) and (min-width: 821px) {
    .bf-login-story__message {
        padding: 34px 0;
    }

    .bf-login-story h1 {
        font-size: clamp(43px, 4.6vw, 64px);
    }

    .bf-login-benefits {
        margin-top: 26px;
    }

    .bf-login-access {
        padding-top: 28px;
        padding-bottom: 24px;
    }

    .bf-login-form {
        margin-top: 30px;
    }

    .bf-login-help,
    .bf-login-footer {
        margin-top: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
