/* The login and the error pages (src/Portal/PublicPage.php): plain CSS, no framework, light and dark. */
:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --fg: #1c2330;
  --muted: #5b6577;
  --border: #dde1e8;
  --accent: #1d4ed8;
  --accent-fg: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0d0f;
    --card: #17181b;
    --fg: #e8eaee;
    --muted: #9aa3b2;
    --border: #2a2c31;
    --accent: #5b8cff;
    --accent-fg: #0d0d0f;
  }
}
* { box-sizing: border-box; }
html { color-scheme: light dark; }
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: var(--bg);
  color: var(--fg);
  position: relative;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main {
  width: 100%;
  max-width: 26rem;
  padding: 2rem 1.75rem;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
.logo { display: block; margin: 0 auto 1rem; }
h1 { margin: 0 0 0.5rem; font-size: 1.5rem; }
p { margin: 0 0 1.25rem; color: var(--muted); }
.button {
  display: inline-block;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 600;
  text-decoration: none;
}
.button:hover { filter: brightness(1.08); }
.button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Google sign-in: light button with the coloured "G", in both colour schemes. */
.button.google {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid #dadce0;
}
.google-g { flex: none; }

/* The school as a line drawing (edges only, transparent), behind the card; only the login page has the .scuola class. */
body.scuola::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("../img/scuola-disegno.png") center / cover no-repeat;
  opacity: 0.17;
}
@media (prefers-color-scheme: dark) {
  body.scuola::before { filter: invert(1); opacity: 0.1; }
}
.note { margin: 1.25rem 0 0; font-size: 0.875rem; text-wrap: balance; }
