:root:where(.identity-page--standard) {
    color-scheme: light;
    --page-background: #ffffff;
    --panel-background: #ffffff;
    --text-strong: #202020;
    --text-muted: #6f6f6f;
    --accent: #d3072a;
    --focus-outline: rgba(0, 73, 193, 0.263);
    --host-chip: #f5f5f5;
}

html:where(.identity-page--standard),
:where(.identity-page--standard) body {
    margin: 0;
    min-height: 100%;
}

:where(.identity-page--standard) body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 0;
    background: var(--page-background);
    color: var(--text-strong);
    font-family: "Roboto", sans-serif;
}

:where(.identity-page--standard) .shell {
    width: min(100%, 420px);
    min-height: 100vh;
    padding: 16px 16px 40px;
    background: var(--panel-background);
}

:where(.identity-page--standard) .heading {
    margin: 0;
    color: var(--accent);
    font-family: "x4Rfaw", "Roboto", sans-serif;
    font-size: var(--identity-script-heading-size, clamp(2.4rem, 8vw, 3rem));
    font-weight: 400;
    line-height: 1;
}

html {
    min-height: 100%;
    -webkit-font-smoothing: antialiased;
}

.brand-logo {
    display: block;
    width: min(100%, 160px);
    height: auto;
    margin-top: 8px;
}

body.has-identity-page-background {
    position: relative;
    background-color: transparent;
    background-image: none;
}

.identity-page-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
}

body.has-identity-page-background > :not(.identity-page-background) {
    position: relative;
    z-index: 1;
}

/* App presentation is selected from the authorization request, not viewport width. */
html body.identity-page--app {
    padding: 0;
    background: #ffffff;
}

body.identity-page--app .shell {
    width: min(100%, 420px);
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
}

body.identity-page--app .desktop-only {
    display: none;
}

body.identity-page--app .brand-rule {
    display: none;
}

body.identity-page--app :is(.welcome-title, .heading) {
    font-size: 3.5rem;
    line-height: 0.8;
}

body.identity-page--web .shell {
    align-self: start;
}

/* Web mobile: grow the panel with the viewport, then hold at the Figma width. */
@media (max-width: 767px) {
    html body.identity-page--web {
        place-items: start center;
        min-height: 100vh;
        padding: 42px 0;
        background: transparent;
        --identity-script-heading-size: 49px;
    }

    body.identity-page--web .shell {
        width: min(100%, 544px);
        min-height: auto;
        border-radius: 0;
        box-shadow: none;
    }
}

/* Web tablet. */
@media (min-width: 768px) and (max-width: 1023px) {
    html body.identity-page--web {
        place-items: start center;
        padding: 64px 24px;
        background: transparent;
    }
}

/* Web desktop. */
@media (min-width: 1024px) {
    html body.identity-page--web {
        place-items: start center;
        padding: 64px 24px;
        background: transparent;
    }
}

@font-face {
    font-family: "x4Rfaw";
    src: url("../fonts/x4rfawa-regular.woff2") format("woff2");
    unicode-range: U+0020-007E, U+00A0-00BE, U+2010-201F, U+20AC, U+2713-2714, U+00E0-00FF;
    font-weight: 400;
    font-style: normal;
    font-display: block;
}
@font-face {
    font-family: "x4Rfaw";
    src: url("../fonts/x4rfawb-regular.woff2") format("woff2");
    unicode-range: U+0020-007E, U+00A0-00BE, U+2010-201F, U+20AC, U+2713-2714, U+00E0-00FF;
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: "Roboto";
    src: url("../fonts/Roboto-Light-webfont.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Roboto";
    src: url("../fonts/Roboto-Regular-webfont.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Roboto";
    src: url("../fonts/Roboto-Medium-webfont.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Roboto";
    src: url("../fonts/Roboto-Bold-webfont.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
