@font-face {
    font-family: "Montserrat";
    src: url("../fonts/montserrat-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/montserrat-500.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/montserrat-600.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: light;
    --background: #f6f6f6;
    --surface: rgba(246,246,246, 0.78);
    --line: rgba(35,35,35, 0.16);
    --text: #232323;
    --muted: #454545;
    --red: #e3132d;
    --red-dark: #b2081e;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-width: 320px;
    min-height: 100%;
}

html {
    background: var(--background);
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: "Montserrat", Arial, sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid #232323;
    outline-offset: 3px;
}

.site-header {
    position: fixed;
    z-index: 50;
    inset: 0 0 auto;
    height: 150px;
    pointer-events: none;
}

.site-logo {
    position: absolute;
    top: 4.25vh;
    left: 2.85vw;
    display: block;
    width: 56px;
    height: 61px;
    pointer-events: auto;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-logo:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.site-logo img {
    display: block;
    width: 100%;
    height: 100%;
}

.guest-login {
    position: absolute;
    top: 4.45vh;
    right: 2.9vw;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    min-width: 194px;
    height: 64px;
    padding: 0 20px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(246,246,246, 0.64);
    color: #232323;
    cursor: pointer;
    font-size: 15px;
    font-weight: 400;
    text-decoration: none;
    white-space: nowrap;
    pointer-events: auto;
    backdrop-filter: blur(15px);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.guest-login:hover {
    border-color: rgba(227, 19, 45, 0.68);
    background: rgba(242,242,242, 0.82);
}

.guest-login svg,
.profile-button svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.3;
}

.page-loader {
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 18px;
    background: #f6f6f6;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader img {
    width: 48px;
    height: 48px;
    animation: loader-pulse 1.15s ease-in-out infinite;
}

.page-loader > span {
    display: block;
    width: 128px;
    height: 1px;
    overflow: hidden;
    background: rgba(35,35,35, 0.12);
}

.page-loader i {
    display: block;
    width: 42%;
    height: 100%;
    background: var(--red);
    animation: loader-line 1s ease-in-out infinite;
}

body.is-loading {
    overflow: hidden;
}

body.is-ready .page-loader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes loader-line {
    from { transform: translateX(-110%); }
    to { transform: translateX(350%); }
}

@keyframes loader-pulse {
    0%, 100% { opacity: 0.65; transform: scale(0.96); }
    50% { opacity: 1; transform: scale(1); }
}

@media (max-width: 720px) {
    .site-header {
        height: 92px;
    }

    .site-logo {
        top: 18px;
        left: 17px;
        width: 48px;
        height: 53px;
    }

    .guest-login {
        top: 17px;
        right: 15px;
        min-width: 174px;
        height: 52px;
        padding: 0 15px;
        border-radius: 8px;
        font-size: 13px;
    }

    .guest-login svg {
        width: 25px;
        height: 25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Keep the supplied company mark undistorted on calculator and account pages. */
.site-logo img,.admin-logo img,.auth-logo img{object-fit:contain}
