/* Page styling for screens that stand outside the app, such as sign-in: the body background and
   the layout that places the content. This is plain page styling, not a component, so it is not in
   library/ and has no blue highlight.

   Two shapes:
     .share-frame.share-frame--split     a tinted side panel beside the main area; they stack on a narrow screen
     .share-frame.share-frame--centred   one centred column on the tinted background

   Parts:
     .share-frame-aside   the tinted panel (split only): the app sidebar's Mist Green 200 and edge
     .share-frame-main    the main area
     .share-frame-copy    limits the width of reading text
     .share-frame-column  limits the width of a card or form
     .share-frame-brand   sizes the logo

   It styles nothing inside it. What goes in it should be design system components (af-*).
   Every value is an Affinda design system token (@affinda/tokens), named in full. */
body { margin: 0; background: var(--colour-tints-mist-green-100); }
.share-frame {
  display: grid;
  min-height: 100vh;
}
.share-frame--split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.share-frame--centred { grid-template-columns: minmax(0, 1fr); }

.share-frame-aside {
  display: flex;
  align-items: center;
  padding: calc(var(--space-8) * 2);
  background: var(--colour-tints-mist-green-200);
  border-right: 1px solid var(--colour-brand-mist-green);
}
.share-frame-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
}
.share-frame-copy { max-width: calc(var(--space-8) * 16); }
.share-frame-column { width: 100%; max-width: calc(var(--space-8) * 13); }
.share-frame-brand { display: block; width: calc(var(--space-8) * 4); }
/* .share-frame-wide shows on a wide screen only, .share-frame-narrow on a narrow screen only. */
.share-frame-narrow { display: none; }

/* A tablet keeps the two columns, with less padding so the text has room. */
@media (max-width: 1000px) {
  .share-frame-aside { padding: var(--space-8); }
  .share-frame-main { padding: var(--space-6); }
}

/* A phone: narrower than a tablet held upright (768px). */
@media (max-width: 700px) {
  .share-frame--split { grid-template-columns: minmax(0, 1fr); }
  /* Split screens on a phone: the tinted panel is the whole screen, with its content centred. */
  .share-frame-aside {
    min-height: 100vh;
    box-sizing: border-box;
    padding: var(--space-8) var(--space-6);
    border-right: 0;
  }
  .share-frame-main { padding: var(--space-6); align-items: flex-start; }
  /* Centred screens on a phone keep their card. They sit on the same tint as the staff screen,
     with less room at the sides so the card is as wide as it can be, and start near the top so
     a keyboard does not cover the field. */
  .share-frame--centred { background: var(--colour-tints-mist-green-200); }
  .share-frame--centred .share-frame-main { padding: var(--space-8) var(--space-4); }
  .share-frame-wide { display: none; }
  .share-frame-narrow { display: block; }
}
