/*
  The few pages the server writes itself: sign-in, refusals, the consent screen. The same night-sky colours as the page
  (see frontend/), system fonts only, because the page's security policy allows no other source here.
*/

:root {
  color-scheme: dark;
  --night: #151013;
  --deep: #20181c;
  --orbit: #f25a7c;
  --text: #f3e9ea;
  --muted: #b6a3a8;
  --line: rgba(182, 163, 168, 0.42);
  --tint: rgba(241, 238, 255, 0.07);
  --sel: rgba(241, 238, 255, 0.13);
  --alert: #ff8fb1;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--night);
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: var(--night);
  color: var(--text);
  font: 400 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.notice {
  width: min(100%, 460px);
  padding: 28px 28px 26px;
  border: 1px solid var(--orbit);
  border-radius: 20px;
  background: rgba(29, 26, 66, 0.82);
}

.notice .logo {
  display: block;
  margin-bottom: 14px;
  border-radius: 10px;
}

.notice h1 {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.notice p {
  margin: 0 0 12px;
  color: var(--muted);
}

.notice p strong {
  color: var(--text);
  font-weight: 600;
}

.notice code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--tint);
  color: var(--text);
  font: 13px ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}

.notice .facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 16px;
  margin: 16px 0;
  padding: 14px 0;
  border-block: 1px solid var(--orbit);
}

.notice .facts dt {
  color: var(--muted);
}

.notice .facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.notice .warning {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 143, 177, 0.1);
  color: var(--alert);
}

.notice .actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

/* A button is plain text until it is pointed at: then it gets an outline and a faint wash (the page does the same). */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}

.button.primary {
  background: var(--tint);
  color: var(--text);
}

@media (hover: hover) {
  .button:not(:disabled):hover {
    border-color: var(--line);
    background: var(--tint);
    color: var(--text);
  }
}

.button:not(:disabled):active {
  background: var(--sel);
}

.button:disabled {
  opacity: 0.5;
  cursor: default;
}
