/* The entry screens of the customer app (praca/access: enter, code, sign in, sign up, forgot, reset, permission, first
   access, welcome) at every size. A phone keeps the app's own screen. A tablet held upright shows the day of the apps
   above the form, both in the middle of the screen. A computer, or a tablet on its side, splits the screen: the side with
   the wordmark and the dial on the left, the form in its own column on the right. Loaded after praca.css, whose phone
   column it replaces on these screens; every colour is a token (praca-tokens.css). */

.pr-gate { display: none; }

@media (min-width: 600px) {
    :root body.pr-page--entry { box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; justify-items: center; gap: 24px; min-height: 100dvh; padding: 32px 24px; background: var(--pr-surface); }
    .pr-page--entry > .pr-gate { grid-row: 1; display: grid; justify-items: center; gap: 16px; }
    :root .pr-page--entry > .pr-app--live { grid-row: 2; width: 100%; max-width: 480px; min-height: 0; margin: 0; padding-bottom: 0; border-radius: 24px; box-shadow: 0 0 0 1px var(--pr-hairline); }
    .pr-page--entry .pr-app--live > .pr-top { position: static; border-radius: 24px 24px 0 0; }
    .pr-page--entry .pr-auth { padding-block: 16px 24px; }
    .pr-gate__mark { display: inline-flex; align-items: center; gap: 8px; color: var(--pr-ink); font: 800 24px/32px var(--pr-font-sans); letter-spacing: -.035em; text-decoration: none; }
    .pr-gate__mark:focus-visible { outline: 2px solid var(--pr-ink); outline-offset: 4px; border-radius: 8px; }
    .pr-gate__mark img { width: 32px; height: 32px; }
    .pr-gate__say { max-width: 28em; font: 400 16px/24px var(--pr-font-sans); color: var(--pr-ink-2); text-align: center; text-wrap: balance; }
    /* What floats over the screen (the country and language sheets, the notice, the offline card) stays over the form,
       and above the side */
    :root .pr-page--entry > .pr-app--live { z-index: 1; }
    .pr-page--entry .pr-sheet--float { left: calc(50% - 240px); right: calc(50% - 240px); }
    .pr-page--entry .pr-toast--float { left: calc(50% - 224px); right: calc(50% - 224px); }
    .pr-page--entry .pr-offline { left: calc(50% - 228px); right: calc(50% - 228px); }
}

@media (min-width: 1024px) {
    :root body.pr-page--entry { grid-template-columns: minmax(0, 1fr) minmax(480px, 40%); align-content: stretch; justify-items: stretch; gap: 0; padding: 0; }
    .pr-page--entry > .pr-gate { grid-row: 1; grid-column: 1; position: relative; align-content: center; gap: 24px; padding: 96px 48px 48px; }
    .pr-gate__mark { position: absolute; top: 24px; left: 32px; }
    :root .pr-page--entry > .pr-app--live { grid-row: 1; grid-column: 2; max-width: none; min-height: 100dvh; border-radius: 0; box-shadow: -1px 0 0 var(--pr-hairline); }
    .pr-page--entry .pr-app--live > .pr-top { border-radius: 0; padding-inline: 24px; }
    .pr-page--entry .pr-app--live > .pr-main { justify-content: center; }
    .pr-page--entry .pr-auth { flex: 0 1 auto; width: 100%; max-width: 400px; margin-inline: auto; padding-block: 32px; }
    .pr-page--entry .pr-sheet--float { left: auto; right: 0; width: max(480px, 40vw); }
    .pr-page--entry .pr-toast--float, .pr-page--entry .pr-offline { left: auto; right: 16px; width: calc(max(480px, 40vw) - 32px); }
}
