:root {
    --hb-login-orange: #ff5a1f;
    --hb-login-orange-dark: #e7440a;
    --hb-login-ink: #151515;
    --hb-login-muted: #707070;
    --hb-login-line: #e8e5e1;
    --hb-login-paper: #ffffff;
    --hb-login-canvas: #f5f3f0;
}

body.hb-login-body {
    min-height: 100vh;
    color: var(--hb-login-ink);
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 90, 31, .12), transparent 27rem),
        radial-gradient(circle at 92% 88%, rgba(21, 21, 21, .07), transparent 24rem),
        var(--hb-login-canvas);
}

body.hb-login-body .main-content {
    min-height: 100vh;
}

body.hb-login-body #navbar-main {
    min-height: 78px;
    padding: 14px clamp(18px, 4vw, 60px);
    border: 0;
    background: rgba(255, 255, 255, .9) !important;
    box-shadow: 0 1px 0 rgba(21, 21, 21, .08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

body.hb-login-body #navbar-main .container-fluid {
    padding-right: 0 !important;
    padding-left: 0 !important;
}

body.hb-login-body #navbar-main .navbar-brand img {
    width: auto;
    max-width: 210px;
    height: 44px;
    object-fit: contain;
}

body.hb-login-body > footer {
    display: none;
}

.hb-login-page {
    min-height: calc(100vh - 78px);
    display: flex;
    align-items: center;
    padding: clamp(24px, 4vw, 58px) 20px;
}

.hb-login-container {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.hb-login-shell {
    display: grid;
    grid-template-columns: minmax(0, .96fr) minmax(440px, 1.04fr);
    min-height: 680px;
    overflow: hidden;
    border: 1px solid rgba(21, 21, 21, .08);
    border-radius: 32px;
    background: var(--hb-login-paper);
    box-shadow: 0 30px 80px rgba(21, 21, 21, .14);
}

.hb-login-visual {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: clamp(42px, 5vw, 72px);
    color: #fff;
    background:
        linear-gradient(145deg, rgba(255, 90, 31, .13), transparent 45%),
        linear-gradient(145deg, #111 0%, #1d1714 62%, #2a160f 100%);
}

.hb-login-visual::before {
    position: absolute;
    z-index: -1;
    right: -9rem;
    bottom: -10rem;
    width: 30rem;
    height: 30rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 90, 31, .74) 0%, rgba(255, 90, 31, .18) 45%, transparent 69%);
    content: '';
    filter: blur(2px);
}

.hb-login-orbit {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
}

.hb-login-orbit-one {
    top: -9rem;
    left: -11rem;
    width: 30rem;
    height: 30rem;
}

.hb-login-orbit-two {
    top: -2rem;
    left: -4rem;
    width: 19rem;
    height: 19rem;
}

.hb-login-visual-content {
    position: relative;
    z-index: 1;
}

.hb-login-eyebrow,
.hb-login-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 24px;
    color: #ff9b72;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hb-login-eyebrow i {
    color: var(--hb-login-orange);
}

.hb-login-visual h1 {
    max-width: 490px;
    margin: 0;
    color: #fff;
    font-size: clamp(40px, 4.2vw, 62px);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.03;
}

.hb-login-visual-content > p {
    max-width: 470px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, .68);
    font-size: 17px;
    line-height: 1.7;
}

.hb-login-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 40px;
}

.hb-login-feature {
    min-width: 0;
    padding: 16px 12px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(8px);
}

.hb-login-feature span {
    display: grid;
    width: 34px;
    height: 34px;
    margin-bottom: 13px;
    place-items: center;
    border-radius: 10px;
    color: var(--hb-login-orange);
    background: rgba(255, 90, 31, .14);
}

.hb-login-feature strong {
    display: block;
    min-height: 32px;
    color: #fff;
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.hb-login-trust {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 42px;
}

.hb-login-trust > span {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    color: #ff9b72;
    background: rgba(255, 255, 255, .07);
}

.hb-login-trust strong,
.hb-login-trust small {
    display: block;
}

.hb-login-trust strong {
    color: #fff;
    font-size: 13px;
}

.hb-login-trust small {
    margin-top: 2px;
    color: rgba(255, 255, 255, .55);
    font-size: 12px;
}

.hb-login-panel {
    display: flex;
    align-items: center;
    padding: clamp(38px, 6vw, 76px);
    background: #fff;
}

.hb-login-panel-inner {
    width: min(430px, 100%);
    margin: 0 auto;
}

.hb-login-heading {
    margin-bottom: 31px;
}

.hb-login-kicker {
    margin-bottom: 10px;
    color: var(--hb-login-orange-dark);
}

.hb-login-heading h2 {
    margin: 0;
    color: var(--hb-login-ink);
    font-size: clamp(32px, 3vw, 42px);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.1;
}

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

.hb-login-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    border: 0;
    border-radius: 14px;
    font-size: 14px;
}

.hb-login-alert .close {
    top: 50%;
    transform: translateY(-50%);
}

.hb-field {
    margin-bottom: 20px;
}

.hb-field > label {
    display: block;
    margin-bottom: 8px;
    color: #343434;
    font-size: 13px;
    font-weight: 700;
}

.hb-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.hb-input-wrap > i:first-child {
    position: absolute;
    z-index: 2;
    left: 18px;
    color: #96908b;
    font-size: 15px;
    pointer-events: none;
}

.hb-input-wrap .form-control {
    height: 56px;
    padding: 0 52px 0 48px;
    border: 1px solid var(--hb-login-line);
    border-radius: 14px;
    color: var(--hb-login-ink);
    background: #fbfaf9;
    box-shadow: none;
    font-size: 15px;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.hb-input-wrap .form-control::placeholder {
    color: #aaa5a1;
}

.hb-input-wrap .form-control:focus {
    border-color: var(--hb-login-orange);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 90, 31, .12);
}

.hb-input-wrap .form-control:-webkit-autofill,
.hb-input-wrap .form-control:-webkit-autofill:hover,
.hb-input-wrap .form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--hb-login-ink);
    -webkit-box-shadow: 0 0 0 1000px #fbfaf9 inset;
    transition: background-color 9999s ease-out;
}

.hb-field.has-error .form-control {
    border-color: #dc3545;
    background-image: none;
}

.hb-field-error {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: #c92f3f;
    font-size: 12px;
}

.hb-password-toggle {
    position: absolute;
    z-index: 3;
    right: 8px;
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 10px;
    color: #77716c;
    background: transparent;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease;
}

.hb-password-toggle:hover,
.hb-password-toggle:focus {
    outline: 0;
    color: var(--hb-login-orange-dark);
    background: rgba(255, 90, 31, .09);
}

.hb-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 4px 0 25px;
    font-size: 13px;
}

.hb-login-options a,
.hb-register-prompt a {
    color: var(--hb-login-orange-dark);
    font-weight: 700;
}

.hb-login-options a:hover,
.hb-register-prompt a:hover {
    color: #b93406;
    text-decoration: underline;
}

.hb-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: #5d5955;
    cursor: pointer;
}

.hb-checkbox input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.hb-checkbox > span {
    display: grid;
    width: 19px;
    height: 19px;
    place-items: center;
    border: 1px solid #cbc6c1;
    border-radius: 6px;
    color: transparent;
    background: #fff;
    font-size: 9px;
    transition: all .2s ease;
}

.hb-checkbox input:checked + span {
    border-color: var(--hb-login-orange);
    color: #fff;
    background: var(--hb-login-orange);
}

.hb-checkbox input:focus-visible + span {
    box-shadow: 0 0 0 4px rgba(255, 90, 31, .14);
}

.hb-login-submit {
    display: flex;
    width: 100%;
    height: 56px;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px 0 23px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--hb-login-orange), var(--hb-login-orange-dark));
    box-shadow: 0 14px 28px rgba(231, 68, 10, .24);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.hb-login-submit:hover,
.hb-login-submit:focus {
    outline: 0;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(231, 68, 10, .3);
}

.hb-login-submit i {
    transition: transform .2s ease;
}

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

.hb-social-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 28px 0 18px;
    color: #918b86;
    font-size: 12px;
    text-align: center;
}

.hb-social-divider::before,
.hb-social-divider::after {
    flex: 1;
    height: 1px;
    background: var(--hb-login-line);
    content: '';
}

.hb-social-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.hb-social-button {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--hb-login-line);
    border-radius: 12px;
    color: #343434;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    transition: border-color .2s ease, background-color .2s ease;
}

.hb-social-button:hover {
    border-color: #cfc8c2;
    color: #111;
    background: #faf9f8;
}

.hb-social-button img {
    width: 19px;
    height: 19px;
    object-fit: contain;
}

.hb-register-prompt {
    margin: 26px 0 0;
    color: #77716c;
    font-size: 13px;
    text-align: center;
}

.hb-demo-access {
    margin: -8px 0 25px;
    overflow: hidden;
    border: 1px solid #f0d7cc;
    border-radius: 14px;
    background: #fff8f4;
}

.hb-demo-access summary {
    display: flex;
    min-height: 50px;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    color: #7e2b0d;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.hb-demo-access summary::-webkit-details-marker {
    display: none;
}

.hb-demo-access summary span i {
    margin-right: 7px;
    color: var(--hb-login-orange);
}

.hb-demo-chevron {
    transition: transform .2s ease;
}

.hb-demo-access[open] .hb-demo-chevron {
    transform: rotate(180deg);
}

.hb-demo-content {
    padding: 0 16px 16px;
}

.hb-demo-content p {
    margin: 0 0 12px;
    color: #90604e;
    font-size: 12px;
}

.hb-demo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.hb-demo-button {
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid #efc7b7;
    border-radius: 9px;
    color: #702709;
    background: #fff;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.hb-demo-button:hover {
    border-color: var(--hb-login-orange);
    color: var(--hb-login-orange-dark);
}

[dir="rtl"] .hb-input-wrap > i:first-child {
    right: 18px;
    left: auto;
}

[dir="rtl"] .hb-input-wrap .form-control {
    padding-right: 48px;
    padding-left: 52px;
}

[dir="rtl"] .hb-password-toggle {
    right: auto;
    left: 8px;
}

[dir="rtl"] .hb-login-submit i {
    transform: rotate(180deg);
}

[dir="rtl"] .hb-login-submit:hover i {
    transform: translateX(-3px) rotate(180deg);
}

[dir="rtl"] .hb-demo-access summary span i {
    margin-right: 0;
    margin-left: 7px;
}

@media (max-width: 991.98px) {
    body.hb-login-body #navbar-main {
        min-height: 70px;
    }

    .hb-login-page {
        min-height: calc(100vh - 70px);
        padding: 24px 16px 36px;
    }

    .hb-login-shell {
        grid-template-columns: 1fr;
        min-height: auto;
        border-radius: 26px;
    }

    .hb-login-visual {
        min-height: 330px;
        padding: 42px;
    }

    .hb-login-visual h1 {
        max-width: 680px;
        font-size: clamp(36px, 7vw, 54px);
    }

    .hb-login-visual-content > p {
        max-width: 650px;
    }

    .hb-login-features {
        max-width: 560px;
        margin-top: 30px;
    }

    .hb-login-trust {
        display: none;
    }

    .hb-login-panel {
        padding: 48px 38px 54px;
    }
}

@media (max-width: 575.98px) {
    body.hb-login-body #navbar-main {
        min-height: 64px;
        padding: 10px 16px;
    }

    body.hb-login-body #navbar-main .navbar-brand img {
        max-width: 150px;
        height: 38px;
    }

    .hb-login-page {
        min-height: calc(100vh - 64px);
        padding: 14px 10px 28px;
    }

    .hb-login-shell {
        border-radius: 22px;
        box-shadow: 0 20px 50px rgba(21, 21, 21, .12);
    }

    .hb-login-visual {
        min-height: 250px;
        padding: 34px 26px;
    }

    .hb-login-eyebrow {
        margin-bottom: 16px;
    }

    .hb-login-visual h1 {
        font-size: 34px;
    }

    .hb-login-visual-content > p {
        margin-top: 14px;
        font-size: 14px;
        line-height: 1.55;
    }

    .hb-login-features {
        display: none;
    }

    .hb-login-panel {
        padding: 38px 24px 42px;
    }

    .hb-login-heading {
        margin-bottom: 26px;
    }

    .hb-login-heading h2 {
        font-size: 32px;
    }

    .hb-login-options {
        align-items: flex-start;
        font-size: 12px;
    }

    .hb-demo-grid,
    .hb-social-buttons {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hb-login-submit,
    .hb-login-submit i,
    .hb-password-toggle,
    .hb-demo-chevron,
    .hb-input-wrap .form-control {
        transition: none;
    }
}
