@font-face {
    font-family: Inter;
    src: url("./fonts/inter-latin-wght-normal.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: Poppins;
    src: url("./fonts/poppins-latin-700-normal.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: Poppins;
    src: url("./fonts/poppins-latin-800-normal.woff2") format("woff2");
    font-weight: 800;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --vl-bg-app: #1a1a1d;
    --vl-bg-card: #242428;
    --vl-fg-soft: #e2e3e5;
    --vl-stroke-2: rgb(255 255 255 / 12%);
    --vl-lime: #e0ff1e;
    --menu-right: max(12px, env(safe-area-inset-right));
    --menu-bottom: max(12px, env(safe-area-inset-bottom));
    background: var(--vl-bg-app);
    color: var(--vl-fg-soft);
    font: 16px/1.5 Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }
body, h1, p { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--vl-lime); outline-offset: 2px; }
[hidden] { display: none !important; }

/* Login layout and colors from the Argus authentication page. */
.login-shell {
    display: grid;
    place-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: 30px 16px;
    background: radial-gradient(600px 320px at 50% -80px, rgb(224 255 30 / 6%), transparent 70%), var(--vl-bg-app);
}

.login-card {
    width: min(100%, 420px);
    padding: 34px clamp(20px, 7vw, 34px) 28px;
    border: 1px solid var(--vl-stroke-2);
    border-radius: 16px;
    background: var(--vl-bg-card);
    box-shadow: 0 18px 50px rgb(0 0 0 / 50%);
}

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin-bottom: 22px;
    color: white;
    font: 800 24px/1.5 Poppins, system-ui, sans-serif;
    letter-spacing: -.01em;
}

.login-card h1 {
    margin-bottom: 22px;
    text-align: center;
    color: white;
    font: 700 19px/1.5 Poppins, system-ui, sans-serif;
}

.login-form { display: grid; gap: 12px; }
.login-form label { font-size: 14px; line-height: 1; font-weight: 500; }
.login-form input + label { margin-top: 2px; }
.login-form input {
    width: 100%;
    height: 36px;
    padding: 4px 10px;
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 6px;
    background: rgb(255 255 255 / 5.4%);
    color: inherit;
    font-size: 14px;
    box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
}
.login-form input::placeholder { color: #a1a1a1; opacity: 1; }
.login-form .button { margin-top: 6px; }
.login-sso {
    margin-top: 4px;
    color: #bcbcc2;
    font-size: 13px;
}
.login-sso summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    min-height: 44px;
    margin-inline: auto;
    padding-inline: 8px;
    border-radius: 6px;
    list-style: none;
    font-weight: 500;
    cursor: pointer;
}
.login-sso summary::-webkit-details-marker { display: none; }
.login-sso summary::after {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}
.login-sso[open] summary::after { transform: translateY(2px) rotate(225deg); }
.login-sso summary:hover { color: white; }
.sso-provider {
    display: grid;
    place-items: center;
    min-height: 44px;
    text-align: center;
}
.sso-provider > * { grid-area: 1 / 1; }
.google-button {
    display: grid;
    place-items: center;
    grid-template: 40px / minmax(0, 1fr);
    width: 100%;
    height: 40px;
}
.google-button[inert] { opacity: 0; overflow: clip; }
.google-button svg { width: 18px; height: 18px; }
/* Google's iframe is a light-scheme document with transparent outer padding. */
.google-button iframe { color-scheme: light; }
.sso-provider [role="status"] { color: #aaa; }
.login-sso:not([open]) + .login-support { margin-top: 4px; }
.login-support {
    margin-top: 18px;
    text-align: center;
    font-size: 13px;
    color: #aaa;
}
.login-support a {
    color: var(--vl-lime);
    font-weight: 600;
    text-decoration: none;
}
.login-support a:hover, .login-support a:focus-visible { text-decoration: underline; }

.button {
    display: inline-grid;
    place-items: center;
    min-height: 36px;
    padding: 4px 10px;
    border: 0;
    border-radius: 6px;
    background: var(--vl-lime);
    color: #151704;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}
.button:hover { background: #d4f01d; }

.notice {
    margin-bottom: 15px;
    padding: 10px 13px;
    border: 1px solid rgb(215 108 74 / 40%);
    border-radius: 8px;
    background: rgb(215 108 74 / 9%);
    color: #f0a088;
    font-size: 13px;
}
.error-message { margin-bottom: 18px; text-align: center; }
.error-message + .button { display: grid; }

.report-shell {
    position: fixed;
    inset: 0;
    overflow: hidden;
    background: #000;
}
.report-frame, .report-canvas, .report-canvas iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}
/* Match velund.pro/dashboard-example: move the public embed footer below the viewport. */
.public-demo-frame {
    --footer-height: 60px;
    height: calc(100% + var(--footer-height));
    clip-path: inset(0 0 var(--footer-height) 0);
}

.report-options, #report-menu {
    position: fixed;
    inset: auto var(--menu-right) var(--menu-bottom) auto;
    z-index: 1;
    margin: 0;
    border: 1px solid rgb(255 255 255 / 20%);
    background: var(--vl-bg-card);
    color: white;
    box-shadow: 0 2px 8px rgb(0 0 0 / 24%);
}

.report-options {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
}
.report-options:hover, #report-menu button:hover { background: #38383d; }
#report-menu {
    bottom: calc(var(--menu-bottom) + 44px);
    padding: 4px;
    border-radius: 8px;
}
#report-menu button {
    display: block;
    min-width: 108px;
    padding: 9px 12px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: inherit;
    font-size: 14px;
    text-align: start;
}
.viewer-status, #report-retry {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.viewer-status {
    padding: 8px 14px;
    border-radius: 8px;
    background: var(--vl-bg-card);
    text-align: center;
}
#report-retry { top: calc(50% + 58px); }

@media (pointer: coarse) {
    .login-form input { font-size: 16px; }
    .report-options { width: 44px; height: 44px; }
    #report-menu { bottom: calc(var(--menu-bottom) + 52px); }
    #report-menu button { min-height: 44px; }
}
