/* The sign-in page. This file is public: every visitor can read it, so its comments name no
 * source file and no part of the service. The development guide of the interface states where the
 * page is drawn and how the values below are checked.
 *
 * The page is an ordinary web page: a slim header with the logo, one narrow column, a quiet
 * footer. Every value is a theme token. The rules stand outside every cascade layer, so each of
 * them wins over a layered rule for the same element. */

/* A document that loads no theme gives `body` the class of the two rules below. The first rule
 * gives each token that this file reads its value in the light mode of the theme, and the second
 * gives the colour tokens their value in the dark mode when the system asks for it. */
.hosted-session-document {
  --spacing-3: 0.75rem;
  --spacing-4: 1rem;
  --spacing-5: 1.25rem;
  --spacing-8: 2rem;
  --border-width: 1px;
  --radius-element: 4px;
  --font-family-body: Roboto, Arial, sans-serif;
  --text-display-3-size: 1.8125rem;
  --text-body-size: 0.875rem;
  --text-body-leading: 1.4286;
  --text-label-size: 0.875rem;
  --text-label-weight: 500;
  --text-label-leading: 1.4286;
  --text-supporting-size: 0.75rem;
  --text-supporting-leading: 1.6667;
  --focus-outline-width: 2px;
  --focus-outline-style: solid;
  --focus-outline-offset: 2px;
  --color-text-primary: #1c1c1c;
  --color-text-accent: #345073;
  --color-accent: #1f3d5a;
  --color-on-accent: #ffffff;
  --color-background-body: #ffffff;
  --color-border: #d6d2cb;
  --pls-color-callout-text-secondary: #596377;
  --pls-color-signature: #e07b3f;

  margin: 0;
  font-family: var(--font-family-body);
  font-size: var(--text-body-size);
}
@media (prefers-color-scheme: dark) {
  .hosted-session-document {
    --color-text-primary: #e6e9ee;
    --color-text-accent: #9dbde0;
    --color-accent: #9dbde0;
    --color-on-accent: #0f1e2d;
    --color-background-body: #11161c;
    --color-border: #2c3540;
    --pls-color-callout-text-secondary: #a7b0bf;
  }
}
/* The shape and the focus ring of a command, for the document that loads no theme. The ring is the
 * accent colour, as in the application: signature orange is below 3:1 on the white ground. */
.hosted-session-document .button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: var(--border-width) solid transparent;
  font-size: var(--text-label-size);
  font-weight: var(--text-label-weight);
  line-height: var(--text-label-leading);
  text-decoration: none;
}
.hosted-session-page .button:focus-visible {
  outline: var(--focus-outline-width) var(--focus-outline-style) var(--color-accent);
  outline-offset: var(--focus-outline-offset);
}

.hosted-session-page {
  box-sizing: border-box;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100dvh;
  color: var(--color-text-primary);
  background: var(--color-background-body);
  font-family: var(--font-family-body);
}
.hosted-session-header,
.hosted-session-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-3);
  padding: var(--spacing-5) var(--spacing-8);
}
.hosted-session-header {
  border-block-end: var(--border-width) solid var(--color-border);
}
.hosted-session-footer {
  padding-block: var(--spacing-4);
  border-block-start: var(--border-width) solid var(--color-border);
  color: var(--pls-color-callout-text-secondary);
  font-size: var(--text-supporting-size);
  line-height: var(--text-supporting-leading);
}
.hosted-session-logo {
  display: block;
  width: auto;
  height: 32px;
}
.hosted-session-main {
  display: grid;
  place-items: center;
  padding: var(--spacing-8) var(--spacing-4);
}
.hosted-session-card {
  display: grid;
  gap: var(--spacing-4);
  width: min(100%, 380px);
}
/* The short orange rule above the heading. It is decoration. */
.hosted-session-card::before {
  content: '';
  width: 36px;
  height: 2px;
  background: var(--pls-color-signature);
}
.hosted-session-card h1 {
  margin: 0;
  color: var(--color-accent);
  font-size: var(--text-display-3-size);
  font-weight: 700;
  line-height: 1.2;
  /* A page may move focus to the heading so that a screen reader starts there; the heading is not
   * a control and is not a Tab stop, so it draws no focus ring. */
  outline: none;
}
.hosted-session-card p {
  margin: 0;
  line-height: var(--text-body-leading);
}
.hosted-session-card .notice {
  margin: 0;
}
.hosted-session-card p.hosted-session-state-line,
.hosted-session-card p.hosted-session-hint,
.hosted-session-card p.hosted-session-note {
  color: var(--pls-color-callout-text-secondary);
}
.hosted-session-card p.hosted-session-hint,
.hosted-session-card p.hosted-session-note {
  font-size: var(--text-supporting-size);
  line-height: var(--text-supporting-leading);
}
.hosted-session-card p.hosted-session-note {
  padding-block-start: var(--spacing-3);
  border-block-start: var(--border-width) solid var(--color-border);
}
.hosted-session-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3);
}
.hosted-session-actions .button {
  gap: var(--spacing-3);
  width: 100%;
  height: 44px;
  border-radius: var(--radius-element);
}
/* The primary command is navy with white text, as in the application. */
.hosted-session-page .button.primary {
  color: var(--color-on-accent);
  background: var(--color-accent);
}
.hosted-session-page .button.primary:active:not(:disabled) {
  background: var(--color-text-accent);
}
@media (hover: hover) {
  .hosted-session-page .button.primary:hover:not(:disabled) {
    background: var(--color-text-accent);
  }
}
/* The four squares of the Microsoft mark, in the colours of that mark. The squares are decoration. */
.hosted-session-microsoft {
  display: grid;
  grid-template-columns: repeat(2, 8px);
  gap: 2px;
}
.hosted-session-microsoft i {
  width: 8px;
  height: 8px;
}
.hosted-session-microsoft i:nth-child(1) {
  background: #f25022;
}
.hosted-session-microsoft i:nth-child(2) {
  background: #7fba00;
}
.hosted-session-microsoft i:nth-child(3) {
  background: #00a4ef;
}
.hosted-session-microsoft i:nth-child(4) {
  background: #ffb900;
}
/* A forced-colours mode of the system replaces every background colour that is not a system
 * colour, so the orange rule and the four squares would vanish. The rule takes the text colour of
 * the system. The squares are exempt and keep the colours of the mark. */
@media (forced-colors: active) {
  .hosted-session-card::before {
    background: CanvasText;
  }
  .hosted-session-microsoft i {
    forced-color-adjust: none;
  }
}
@media (max-width: 650px) {
  .hosted-session-header,
  .hosted-session-footer {
    padding-inline: var(--spacing-4);
  }
}
