/* Identity provider screens (sign in, second factor). Colours come from the tenant's design tokens
   (--ink, --ground, --line, --muted, --brand, --highlight) set in the page head. */

@font-face {
    font-family: "Open Sans";
    src: url("/fonts/open-sans-latin-ext-wght-normal.woff2") format("woff2");
    font-weight: 300 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
    font-family: "Open Sans";
    src: url("/fonts/open-sans-latin-wght-normal.woff2") format("woff2");
    font-weight: 300 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
    font-family: "Open Sans";
    src: url("/fonts/open-sans-latin-ext-wght-italic.woff2") format("woff2");
    font-weight: 300 800;
    font-style: italic;
    font-display: swap;
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
    font-family: "Open Sans";
    src: url("/fonts/open-sans-latin-wght-italic.woff2") format("woff2");
    font-weight: 300 800;
    font-style: italic;
    font-display: swap;
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--ground);
    color: var(--ink);
    font-family: "Open Sans", system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.55;
}

h1, h2 { font-family: "Open Sans", system-ui, sans-serif; line-height: 1.15; margin: 0 0 0.75rem; }
h1 { font-size: clamp(1.7rem, 5vw, 2.2rem); font-weight: 800; }
h2 { font-size: 1.25rem; font-weight: 700; margin-top: 1.75rem; }
p { margin: 0 0 0.9rem; }
a { color: var(--brand); }
img { max-width: 100%; height: auto; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.bar { background: var(--ink); color: #fff; }
.bar__inner { max-width: 560px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; min-height: 60px; }
.bar__name { font-family: "Open Sans", system-ui, sans-serif; font-weight: 700; font-size: 1.2rem; }
/* The logo has a height of its own: the rule above (height: auto) would otherwise show it at its natural size. */
.bar img { display: block; height: 36px; width: auto; max-width: 100%; object-fit: contain; filter: none; }
/* A logo drawn for a light page goes on a white plate on the dark bar; one made for dark backgrounds needs none. */
.bar img.plate { height: 44px; background: #fff; border-radius: 6px; padding: 4px 8px; }

.card {
    max-width: 560px;
    margin: 24px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
}
@media (min-width: 608px) { .card { margin: 40px auto; padding: 32px; } }

.field { margin: 1.25rem 0; }
.field label { display: block; font-weight: 700; margin-bottom: 0.4rem; }
.field input {
    width: 100%;
    font: inherit;
    padding: 0.7rem 0.85rem;
    border: 2px solid var(--muted);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
}
.field input[aria-invalid="true"] { border-color: #B3261E; }
.field__error { color: #8C1D18; font-weight: 700; margin: 0.4rem 0 0; }

.button {
    display: inline-block;
    font: inherit;
    font-weight: 700;
    background: var(--ink);
    color: #fff;
    text-decoration: none;
    border: 0;
    border-radius: 999px;
    padding: 0.7rem 1.5rem;
    cursor: pointer;
}
.button:hover { filter: brightness(1.15); }
.button--quiet { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.button--quiet:hover { filter: none; background: var(--ground); }

.notice { background: #E8F3F2; border: 1px solid var(--line); border-radius: 10px; padding: 0.7rem 0.9rem; }
.error-summary { border: 3px solid #B3261E; border-radius: 10px; padding: 0.8rem 1rem; margin: 1.25rem 0; }
.error-summary p { margin: 0 0 0.3rem; color: #8C1D18; }
.error-summary ul { margin: 0; padding-left: 1.2rem; }

ul.plain { padding-left: 1.2rem; }
ul.plain li { margin-bottom: 0.3rem; }

.steps { padding-left: 1.2rem; }
.steps > li { margin-bottom: 1.5rem; }
.qr { display: inline-block; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px; line-height: 0; }
.qr svg { width: 200px; height: 200px; }
details { margin-top: 0.75rem; }
summary { cursor: pointer; font-weight: 700; }
.key { font-size: 1.05rem; letter-spacing: 0.04em; word-break: break-all; }

.codes { list-style: none; margin: 1.25rem 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
.codes li { background: var(--ground); border: 1px solid var(--line); border-radius: 8px; padding: 0.55rem 0.7rem; text-align: center; }
.codes code { font-size: 1.05rem; letter-spacing: 0.04em; }

@media (forced-colors: active) {
    .button, .field input, .card { border: 2px solid ButtonText; }
}
