body {
    background: #f3f6f8;
    overflow-x: hidden;
}

body .navbar.navbar-inverse.navbar-fixed-top {
    background: #0078bc !important;
    background-color: #0078bc !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: 0 1px 0 rgba(15, 23, 42, .08);
}

body .navbar.navbar-inverse.navbar-fixed-top .navbar-header {
    background: #0078bc !important;
    background-color: #0078bc !important;
}

.container {
    width: 100%;
    max-width: none;
    padding: 0;
}

.container > .row,
.container .row {
    margin: 0;
}

.footer {
    display: none;
}

.login-page {
    min-height: calc(100vh - 74px);
    margin-top: 74px;
    padding: 44px 18px;
    background:
        radial-gradient(circle at 24% 22%, rgba(0, 120, 188, .12) 0, rgba(0, 120, 188, 0) 34%),
        linear-gradient(135deg, #eef7fb 0%, #f8fafc 45%, #eef2f6 100%);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-stage {
    width: 100%;
    max-width: 430px;
    min-height: auto;
    margin: 0 auto;
    box-sizing: border-box;
}

.login-brand {
    display: none;
}

.login-form-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid rgba(203, 214, 226, .86);
    border-radius: 8px;
    box-shadow: 0 22px 46px rgba(15, 23, 42, .12);
    padding: 34px 36px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.login-card:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #0078bc;
}

.login-card:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0078bc 0%, #42b9ee 50%, #0078bc 100%);
    transform: scaleX(0);
    transform-origin: left center;
    pointer-events: none;
}

.login-card.login-verifying:after {
    animation: loginVerifyProgress 1s ease-out forwards;
}

@keyframes loginVerifyProgress {
    0% {
        transform: scaleX(0);
    }

    100% {
        transform: scaleX(1);
    }
}

.login-card-header {
    margin-bottom: 28px;
}

.login-card-header h2 {
    margin: 0 0 8px;
    color: #17212b;
    font-size: 25px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0;
}

.login-card-header p {
    margin: 0;
    color: #607086;
    font-size: 14px;
    line-height: 1.5;
}

.login-field {
    margin-bottom: 18px;
}

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

.login-card .ui-inputfield {
    width: 100% !important;
    height: 46px;
    border: 1px solid #cbd6e2;
    border-radius: 6px;
    background: #f8fbff;
    color: #17212b;
    padding: 10px 13px;
    box-shadow: none;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.login-card .ui-inputfield:focus {
    border-color: #0078bc;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 120, 188, .13);
}

.login-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
}

.login-reset-link {
    color: #00649d !important;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
}

.login-reset-link:hover {
    color: #004e7b !important;
    text-decoration: underline;
}

.login-submit.ui-button {
    min-width: 132px;
    height: 46px;
    border: 0;
    border-radius: 6px;
    background: #0078bc;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 12px 22px rgba(0, 120, 188, .25);
    transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.login-submit.ui-button:hover,
.login-submit.ui-button:focus {
    background: #006da8;
    box-shadow: 0 14px 26px rgba(0, 120, 188, .30);
    transform: translateY(-1px);
}

.login-submit.ui-button .ui-button-text {
    padding: 0 18px;
}

.login-error {
    margin-top: 18px;
    border-radius: 6px;
    background: #fff3f2;
    color: #b42318;
    border: 1px solid #ffd6d2;
    padding: 10px 12px;
    font-size: 13px;
}

.login-alt-action {
    margin-top: 24px;
    text-align: center;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 20px;
    color: #6b7f93;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.login-divider:before,
.login-divider:after {
    content: "";
    height: 1px;
    flex: 1 1 auto;
    background: #dbe5ee;
}

.login-alt-link {
    color: #00649d !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.login-alt-link:hover,
.login-alt-link:focus {
    color: #004e7b !important;
    text-decoration: underline;
}

.login-qr-button {
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid #0b8fe8;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #0078bc !important;
    background: #fff;
    box-sizing: border-box;
    text-decoration: none !important;
}

.login-qr-button:hover,
.login-qr-button:focus {
    color: #00649d !important;
    border-color: #00649d;
    background: #f5fbff;
    text-decoration: none !important;
}

.login-qr-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    background:
        linear-gradient(#0b8fe8 0 0) 0 0 / 6px 6px,
        linear-gradient(#0b8fe8 0 0) 14px 0 / 6px 6px,
        linear-gradient(#0b8fe8 0 0) 0 14px / 6px 6px,
        linear-gradient(#0b8fe8 0 0) 10px 10px / 4px 4px,
        linear-gradient(#0b8fe8 0 0) 16px 14px / 4px 4px,
        linear-gradient(#0b8fe8 0 0) 8px 2px / 4px 4px;
    background-repeat: no-repeat;
    border: 1px solid #0b8fe8;
    box-sizing: border-box;
}

.login-card.is-hidden {
    display: none;
}

.qr-login-card {
    text-align: center;
}

.qr-login-card .login-card-header {
    margin-bottom: 24px;
}

.qr-login-image-wrap {
    width: 232px;
    height: 232px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d7e1eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: inset 0 0 0 8px #f8fbff;
}

.qr-login-image {
    width: 200px;
    height: 200px;
    display: block;
}

.qr-login-message {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef7fc;
    color: #38566e;
    font-size: 13px;
    line-height: 1.45;
    margin: 0 0 18px;
}

.qr-refresh.ui-button {
    min-width: 178px;
}

.mobile-app-card {
    margin-top: 18px;
    padding: 12px 16px 14px;
    border: 1px solid #dbe8f4;
    border-radius: 8px;
    background: linear-gradient(135deg, #f5fbff 0%, #eaf4ff 100%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.mobile-app-copy {
    min-width: 0;
}

.mobile-app-copy h3 {
    margin: 0 0 6px;
    color: #26364a;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
}

.mobile-app-copy p {
    margin: 0;
    color: #4b5f74;
    font-size: 11px;
    line-height: 1.35;
}

.mobile-store-links {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.mobile-store-badge {
    min-width: 0;
    width: calc(50% - 5px);
    min-height: 38px;
    padding: 5px 10px;
    border-radius: 6px;
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none !important;
    box-shadow: 0 2px 5px rgba(15, 23, 42, .2);
    box-sizing: border-box;
}

.mobile-store-badge:hover,
.mobile-store-badge:focus {
    color: #fff !important;
    text-decoration: none !important;
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.mobile-store-badge.app-store {
    background: linear-gradient(135deg, #05070b 0%, #151a22 58%, #0b5f9c 100%);
}

.mobile-store-badge.play-store {
    background: linear-gradient(180deg, #242a31 0%, #05070b 100%);
}

.mobile-store-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    flex: 0 0 auto;
    position: relative;
}

.mobile-store-icon::before {
    content: "";
    display: block;
    width: 13px;
    height: 13px;
}

.mobile-store-badge.app-store .mobile-store-icon::before {
    background: #111827;
    border-radius: 50% 50% 45% 45%;
    box-shadow: 3px -6px 0 -4px #111827;
    transform: rotate(-10deg);
}

.mobile-store-badge.play-store .mobile-store-icon::before {
    width: 17px;
    height: 18px;
    background: conic-gradient(from 45deg, #34a853 0 25%, #fbbc05 0 50%, #ea4335 0 75%, #4285f4 0);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.mobile-store-badge.play-store .mobile-store-icon {
    background: transparent;
}

.mobile-store-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    white-space: nowrap;
}

.mobile-store-kicker {
    font-size: 7px;
    letter-spacing: .2px;
    text-transform: uppercase;
}

.mobile-store-name {
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 980px) {
    .login-page {
        padding: 32px 18px;
    }

    .login-form-wrap {
        width: 100%;
        max-width: 460px;
        margin: 0 auto;
        align-items: center;
    }
}

@media (max-width: 520px) {
    .navbar-brand.autostocklogo img {
        max-width: 170px !important;
    }

    .login-page {
        margin-top: 64px;
        min-height: calc(100vh - 64px);
        padding: 24px 14px;
    }

    .login-card {
        padding: 24px;
    }

    .qr-login-card {
        padding-left: 24px;
        padding-right: 24px;
    }

    .login-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .login-submit.ui-button {
        width: 100%;
    }

    .login-qr-entry {
        display: none;
    }

    .mobile-app-card {
        padding: 12px;
    }

    .mobile-store-links {
        gap: 8px;
    }

    .mobile-store-badge {
        gap: 7px;
        padding-left: 8px;
        padding-right: 8px;
    }
}
