/* The door of a hosted papo: the pages iu serves before anyone is in — entering,
   a first access and its code, waiting for the Crachá to answer. They come
   from iu with its class names (iu-login, iu-signin, iu-acesso, …) and no look
   of their own: each application dresses them. This is papo's, in papo's
   colours. The selectors go by the parts of the names, so that a page iu adds
   later is dressed too. */
:root {
  --bg: #fbfaf8; --panel: #ffffff; --ink: #1d1b18; --muted: #6f6a62; --line: #e2ddd4;
  --accent: #38614a; --accent-ink: #ffffff; --bad: #b4542f; --radius: 10px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171a; --panel: #1b1e22; --ink: #e8e6e1; --muted: #8d9199; --line: #2a2f35;
    --accent: #6fae8a; --accent-ink: #10231a; --bad: #e08a63;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; padding: 6vh 16px;
  display: flex; flex-direction: column; align-items: center;
  background: var(--bg); color: var(--ink);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main, body > [class^="iu-"] {
  width: 100%; max-width: 420px; padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
[class$="__title"] {
  margin: 0; font-size: 15px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
[class$="__title"] a { color: inherit; text-decoration: none; }
h2, h3 { margin: 0; font-size: 17px; }
p { margin: 0; }
form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
[class$="__field"] { display: flex; flex-direction: column; gap: 4px; }
label { font-size: 13px; color: var(--muted); }
input[type="text"], input[type="email"], input[type="url"], input:not([type]) {
  width: 100%; padding: 9px 11px; font: inherit; color: inherit;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
[class$="__actions"] { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
button, [class*="__button"] {
  display: inline-block; padding: 9px 16px; font: inherit; font-weight: 500; cursor: pointer; text-decoration: none;
  color: var(--accent-ink); background: var(--accent); border: 0; border-radius: var(--radius);
}
[class$="__error"] { padding: 9px 12px; color: var(--bad); border: 1px solid var(--bad); border-radius: var(--radius); font-size: 14px; }
[class$="__error"]:empty { display: none; }
[class$="__hint"], [class$="__text"], [class$="__noaccount"], [class$="__login"] { color: var(--muted); font-size: 13px; }
a, [class$="__link"] { color: var(--accent); }
/* The access code: to be copied whole, and wrapped where it must. */
code, [class$="__code"], [class$="__linktext"] { font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; }
[class$="__code"] { border-radius: var(--radius); }
/* The number to type at the Crachá: large, because it is read across a room. */
[class$="__numero"] { font-family: var(--mono); font-size: 34px; letter-spacing: .12em; text-align: center; }
