/* The sign-in screen, the reader's name on the cover and in the contents header, and the teacher's switch
   (account.js). Colours and fonts are the contents page's own variables. */
.hello { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px 16px; overflow: auto;
  background: var(--board); text-align: center; animation: hello-in .5s var(--ease) backwards; }
@keyframes hello-in { from { opacity: 0; } }
.hello .card { width: min(440px, 100%); }
.hello h2 { margin: 14px 0 14px; font: 500 clamp(32px, 5.6vw, 48px)/1.08 var(--book); letter-spacing: -.01em; }
.hello .lede { margin: 0 0 24px; font-size: 17px; }
.hello form { display: grid; gap: 14px; text-align: left; }
.field { display: grid; gap: 6px; }
.field span { color: var(--dim); font-size: 15px; font-weight: 600; }
.field small { color: var(--dim); font-size: 14px; line-height: 1.35; }
.hello input { width: 100%; padding: 12px 18px; border-radius: 14px; border: 1.5px solid var(--edge);
  background: var(--panel); color: var(--chalk); font: 600 18px var(--ui); }
.hello input:focus-visible, .hello button:focus-visible, .who button:focus-visible, .teacher button:focus-visible, .me:focus-visible { outline: 3px solid var(--task); outline-offset: 3px; }
.hello .btn { justify-content: center; margin-top: 6px; border: 0; cursor: pointer; font-family: var(--ui); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.hello .err { min-height: 1.5em; margin: 14px 0 0; color: var(--task); font-size: 16px; text-wrap: balance; }
.hello .done { margin: 0; color: var(--good); text-align: center; text-wrap: balance; }
.hello .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 4px; font-size: 16px; }
.link { padding: 0; border: 0; background: none; color: var(--dim); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link:hover { color: var(--chalk); }
.link:disabled { opacity: .5; }
#cover .who { max-width: 34em; margin: 26px 0 0; color: var(--dim); font-size: 17px; animation-delay: 1.3s; text-wrap: balance; }
#cover .who b { color: var(--chalk); font-weight: 600; }
#cover .who:empty { display: none; }
#cover .teacher { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; margin: 16px 0 0; padding: 10px 18px;
  border: 1.5px solid var(--edge); border-radius: 16px; color: var(--dim); font-size: 16px; animation: none; }
#cover .teacher b { color: var(--chalk); font-weight: 600; }
#cover .teacher b.on { color: var(--good); }
#cover .teacher .btn { padding: 6px 18px; font-size: 16px; background: none; cursor: pointer; font-family: var(--ui); }
#cover .who ~ .meta { margin-top: 16px; }
.me { margin-left: auto; padding: 5px 14px; border-radius: 999px; border: 1.5px solid var(--edge); color: var(--chalk); text-decoration: none;
  font: 600 15px var(--ui); max-width: 12em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me:hover { border-color: var(--dim); }
.me + .prog { margin-left: 14px; }
