/* Uroven-branded Anubis challenge shell (replaces default xess.css via edge nginx alias). */

:root {
  --body-sans-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body-preformatted-font: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --body-title-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Auth brand panel (left column) — #2b0279 + auth-brand-bg.svg */
  --background: #2b0279;
  --text: #ffffff;
  --text-selection: rgba(240, 65, 0, 0.45);
  --preformatted-background: rgba(255, 255, 255, 0.08);
  --link-foreground: #ffb896;
  --link-background: transparent;
  --blockquote-border-left: 1px solid rgba(255, 255, 255, 0.2);

  --progress-bar-outline: none;
  --progress-bar-fill: #f04100;
}

body {
  background-color: var(--background);
  background-image: url("/anubis-brand/auth-brand-bg.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text);
}

body,
html {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
}

.centered-div {
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
}

/* Uroven logo: main.mjs sets src=/anubis-brand/logo-basic.svg; CSS fallback if img fails. */
.centered-div #image {
  display: block !important;
  visibility: visible !important;
  position: relative;
  z-index: 1;
  width: 150px !important;
  height: auto !important;
  max-width: 150px !important;
  max-height: none !important;
  min-height: 4rem;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  object-fit: contain;
}

#status {
  font-variant-numeric: tabular-nums;
  max-width: 18rem;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.72);
}

h1 {
  margin: 0 0 0.25rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
}

/* Progress bar: auth-cta orange gradient, slightly narrower than logo. */
#progress {
  display: none;
  width: min(11rem, 72%) !important;
  height: 0.625rem !important;
  border-radius: 999px !important;
  overflow: hidden;
  margin: 0.25rem 0 0 !important;
  outline: none !important;
  background: #ffb896 !important;
}

.bar-inner {
  background: linear-gradient(90deg, #f04100 0%, #f17000 100%) !important;
  height: 100%;
  width: 0;
  border-radius: 999px;
}

@media (prefers-reduced-motion: no-preference) {
  .bar-inner {
    transition: width 0.25s ease-in;
  }
}

pre {
  background-color: var(--preformatted-background);
  padding: 1em;
  border: 0;
  font-family: var(--body-preformatted-font);
}

a,
a:active,
a:visited {
  color: var(--link-foreground);
  background-color: var(--link-background);
}

h2,
h3,
h4,
h5 {
  margin-bottom: 0.1rem;
  font-family: var(--body-title-font);
}

blockquote {
  border-left: var(--blockquote-border-left);
  margin: 0.5em 10px;
  padding: 0.5em 10px;
}

footer,
details,
#testarea {
  display: none !important;
}

main {
  font-family: var(--body-sans-font);
  max-width: 50rem;
  padding: 2rem;
  margin: auto;
}
