/* Public download page (https://pontis.antrop.ai/). The look of the Demiurge
   sign-in screen: its tokens (frontend/src/styles/tokens.css, "auth liquid
   glass") and its .ahc-auth-* layers (globals.css), dark by default, light
   when the device asks for it. Demiurge mixes the glass with color-mix();
   old phone browsers lack it, so the mixes are worked out here as rgba.
   Plain CSS for those browsers too: no flex gap, no inset, no :has(). */

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("onest-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("onest-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --text: #eceef5;
  --text-2: #aeb3c3;
  --text-3: #8a90a0;
  --brand: #7e94ff;
  --accent: #7e94ff;
  --accent-contrast: #0b0d13;
  --accent-soft: rgba(126, 148, 255, .16);
  --glow: rgba(126, 148, 255, .34);
  --border: rgba(255, 255, 255, .09);

  --auth-bg: #090b11;
  --auth-bg-top: #0b0e15;              /* auth-bg 88% + surface 12% */
  --auth-surface-wash: rgba(28, 33, 48, .2);
  --auth-grid: rgba(255, 255, 255, .052);
  --auth-ribbon-a: rgba(126, 148, 255, .16);
  --auth-ribbon-b: rgba(255, 255, 255, .065);
  --auth-ribbon-c: rgba(255, 255, 255, .12);
  --auth-glass-bg: rgba(18, 22, 32, .5);
  --auth-glass-bg-solid: rgba(18, 22, 32, .92);
  --auth-glass-brd: rgba(255, 255, 255, .18);
  --auth-glass-shadow:
    0 46px 118px -42px rgba(0, 0, 0, .9),
    0 18px 42px -24px rgba(0, 0, 0, .78),
    inset 0 1px 0 rgba(255, 255, 255, .2),
    inset 0 -1px 0 rgba(0, 0, 0, .34);
  --auth-field-bg: rgba(255, 255, 255, .075);
  --auth-field-brd: rgba(255, 255, 255, .16);

  /* The glass layers: fog, low, hi and edge tones at the strengths globals.css mixes them. */
  --g-fog: rgba(255, 255, 255, .11);
  --g-low: rgba(255, 255, 255, .055);
  --g-fog-34: rgba(255, 255, 255, .037);
  --g-hi-28: rgba(255, 255, 255, .078);
  --g-ring: rgba(255, 255, 255, .174);
  --g-fog-54: rgba(255, 255, 255, .059);
  --g-edge-24: rgba(255, 255, 255, .053);
  --g-hi-56: rgba(255, 255, 255, .157);
  --g-hi-18: rgba(255, 255, 255, .05);
  --g-rim: rgba(255, 255, 255, .209);
  --g-hi-82: rgba(255, 255, 255, .23);
  --g-edge-76: rgba(255, 255, 255, .167);
  --g-hi-20: rgba(255, 255, 255, .056);
  --g-hi-32: rgba(255, 255, 255, .09);
  --g-edge-12: rgba(255, 255, 255, .026);
  --g-hi-34: rgba(255, 255, 255, .095);
  --g-btn-hi: rgba(28, 33, 48, .34);
  --tab-thumb: rgba(255, 255, 255, .12);

  --radius: 12px;
  --radius-2xl: 18px;
  --radius-3xl: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}

@media (prefers-color-scheme: light) {
  :root {
    --text: #14161d;
    --text-2: #474c5c;
    --text-3: #53586c;
    --brand: #3c57e6;
    --accent: #3c57e6;
    --accent-contrast: #ffffff;
    --accent-soft: rgba(60, 87, 230, .12);
    --glow: rgba(60, 87, 230, .22);
    --border: rgba(18, 22, 45, .1);

    --auth-bg: #f2f4f8;
    --auth-bg-top: #f4f5f9;
    --auth-surface-wash: rgba(255, 255, 255, .2);
    --auth-grid: rgba(18, 22, 45, .065);
    --auth-ribbon-a: rgba(60, 87, 230, .16);
    --auth-ribbon-b: rgba(20, 24, 45, .075);
    --auth-ribbon-c: rgba(255, 255, 255, .42);
    --auth-glass-bg: rgba(255, 255, 255, .34);
    --auth-glass-bg-solid: rgba(255, 255, 255, .9);
    --auth-glass-brd: rgba(255, 255, 255, .94);
    --auth-glass-shadow:
      0 46px 110px -42px rgba(20, 24, 45, .46),
      0 20px 44px -28px rgba(20, 24, 45, .36),
      inset 0 1px 0 rgba(255, 255, 255, .92),
      inset 0 -1px 0 rgba(20, 24, 45, .12);
    --auth-field-bg: rgba(255, 255, 255, .34);
    --auth-field-brd: rgba(20, 24, 45, .16);

    --g-fog: rgba(255, 255, 255, .56);
    --g-low: rgba(255, 255, 255, .18);
    --g-fog-34: rgba(255, 255, 255, .19);
    --g-hi-28: rgba(255, 255, 255, .266);
    --g-ring: rgba(255, 255, 255, .589);
    --g-fog-54: rgba(255, 255, 255, .302);
    --g-edge-24: rgba(20, 24, 45, .058);
    --g-hi-56: rgba(255, 255, 255, .532);
    --g-hi-18: rgba(255, 255, 255, .171);
    --g-rim: rgba(162, 163, 172, .44);
    --g-hi-82: rgba(255, 255, 255, .779);
    --g-edge-76: rgba(20, 24, 45, .182);
    --g-hi-20: rgba(255, 255, 255, .19);
    --g-hi-32: rgba(255, 255, 255, .304);
    --g-edge-12: rgba(20, 24, 45, .029);
    --g-hi-34: rgba(255, 255, 255, .323);
    --g-btn-hi: rgba(255, 255, 255, .34);
    --tab-thumb: rgba(255, 255, 255, .92);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; background: var(--auth-bg); }

/* No background on body: it would paint over the backdrop below (z-index -1). */
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
}

/* ---- background: ribbons of light and a fine grid (.ahc-auth-shell) ---- */
.backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  overflow: hidden;
  background:
    linear-gradient(125deg, transparent 0, transparent 22%, var(--auth-ribbon-a) 37%, transparent 62%),
    linear-gradient(32deg, transparent 0, transparent 18%, var(--auth-ribbon-c) 46%, transparent 76%),
    linear-gradient(180deg, var(--auth-surface-wash), transparent 42%),
    linear-gradient(135deg, var(--auth-bg-top), var(--auth-bg));
}
.backdrop::before,
.backdrop::after {
  content: "";
  position: absolute;
}
.backdrop::before {
  top: -22%;
  right: -22%;
  bottom: -22%;
  left: -22%;
  background:
    linear-gradient(108deg, transparent 10%, var(--auth-ribbon-a) 32%, transparent 55%),
    linear-gradient(27deg, transparent 16%, var(--auth-ribbon-b) 44%, transparent 72%);
  filter: blur(34px) saturate(112%);
  opacity: .58;
}
.backdrop::after {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image:
    linear-gradient(to right, var(--auth-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--auth-grid) 1px, transparent 1px);
  background-size: 36px 36px, 36px 36px;
  -webkit-mask-image: radial-gradient(circle at 50% 48%, #000 0, #000 56%, transparent 82%);
  mask-image: radial-gradient(circle at 50% 48%, #000 0, #000 56%, transparent 82%);
  opacity: .7;
}

/* The card sits near the top, not in the middle: switching tabs changes its
   height, and a centred card would jump up and down with it. */
.shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 16px;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}
@media (min-width: 640px) {
  .shell { padding-top: 9vh; }
}

/* ---- the glass card (.ahc-auth-card + .ahc-auth-surface) ---- */
.card {
  position: relative;
  width: 100%;
  max-width: 480px;
  padding: 34px;
  border-radius: var(--radius-3xl);
  overflow: hidden;
  box-shadow: var(--auth-glass-shadow);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.card::before,
.card::after,
.glass,
.glass::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: inherit;
  pointer-events: none;
}
.glass {
  z-index: 0;
  border: 1px solid var(--auth-glass-brd);
  background:
    linear-gradient(144deg, var(--g-fog), var(--g-low) 38%, var(--g-fog-34) 72%, var(--g-low)),
    linear-gradient(25deg, transparent 0, transparent 24%, var(--g-hi-28) 39%, transparent 58%),
    var(--auth-glass-bg-solid);
  box-shadow:
    inset 0 0 0 1px var(--g-ring),
    inset 0 34px 76px var(--g-fog-54),
    inset 0 -38px 78px var(--g-edge-24);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass {
    background:
      linear-gradient(144deg, var(--g-fog), var(--g-low) 38%, var(--g-fog-34) 72%, var(--g-low)),
      linear-gradient(25deg, transparent 0, transparent 24%, var(--g-hi-28) 39%, transparent 58%),
      var(--auth-glass-bg);
    -webkit-backdrop-filter: blur(58px) saturate(145%) contrast(1.08) brightness(1.04);
    backdrop-filter: blur(58px) saturate(145%) contrast(1.08) brightness(1.04);
  }
}
.glass::after {
  top: 1px;
  right: 1px;
  bottom: 1px;
  left: 1px;
  background: linear-gradient(118deg, var(--g-hi-56), transparent 26%, transparent 72%, var(--g-hi-18));
  mix-blend-mode: screen;
  opacity: .64;
}
.card::before {
  z-index: 1;
  border: 1px solid var(--g-rim);
  box-shadow:
    inset 1px 1px 0 var(--g-hi-82),
    inset -1px -1px 0 var(--g-edge-76),
    inset 0 0 22px var(--g-hi-20);
}
.card::after {
  z-index: 2;
  top: 1px;
  right: 1px;
  bottom: 1px;
  left: 1px;
  background:
    linear-gradient(180deg, var(--g-hi-32), transparent 28%, transparent 76%, var(--g-edge-12)),
    linear-gradient(121deg, var(--g-hi-34), transparent 31%, transparent 72%, var(--g-hi-18));
  mix-blend-mode: screen;
  opacity: .74;
}
.content { position: relative; z-index: 3; }

/* ---- brand row ---- */
.brand { display: flex; align-items: center; }
.mark {
  flex: 0 0 auto;
  margin-right: 12px;
  color: var(--brand);
  stroke-width: 1.8;
}
.brand-text { line-height: 1.2; }
.name { font-size: 17px; font-weight: 600; }
.org { font-family: var(--mono); font-size: 14px; color: var(--text-3); }

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

h1 {
  margin: 28px 0 0;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
}
.lead { margin: 6px 0 0; color: var(--text-2); }
.note {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--auth-field-brd);
  border-radius: var(--radius);
  background: var(--auth-field-bg);
  color: var(--text-2);
}
.note[hidden] { display: none; }

/* ---- device switch: shown only with JS; without it every panel is listed ---- */
.tabs { display: none; }
.js .tabs {
  position: relative;
  display: flex;
  margin-top: 24px;
  padding: 4px;
  border: 1px solid var(--auth-field-brd);
  border-radius: var(--radius);
  background: var(--auth-field-bg);
}
.tab {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 0 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
}
.tabs.is-ready .tab { transition: color .2s; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); }
.tab:focus { outline: none; }
.tab:focus-visible { box-shadow: 0 0 0 3px var(--accent-soft), inset 0 0 0 1px var(--accent); }
.tab-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  border-radius: 9px;
  background: var(--tab-thumb);
  box-shadow: inset 0 1px 0 var(--g-hi-32), 0 4px 12px -6px rgba(0, 0, 0, .4);
  pointer-events: none;
}
.tabs.is-ready .tab-thumb { transition: transform .24s var(--ease); }

/* ---- a platform ---- */
.panel { margin-top: 28px; }
.js .panel { margin-top: 20px; }
.js .panel[hidden] { display: none; }
.panel.is-entering { -webkit-animation: panel-in .24s var(--ease) both; animation: panel-in .24s var(--ease) both; }
.panel.is-entering.from-left { -webkit-animation-name: panel-in-left; animation-name: panel-in-left; }
@-webkit-keyframes panel-in { from { opacity: 0; -webkit-transform: translateX(12px); } to { opacity: 1; -webkit-transform: none; } }
@keyframes panel-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
@-webkit-keyframes panel-in-left { from { opacity: 0; -webkit-transform: translateX(-12px); } to { opacity: 1; -webkit-transform: none; } }
@keyframes panel-in-left { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }

h2 { margin: 0; font-size: 20px; line-height: 1.25; font-weight: 600; }
/* With the switch the tab already names the platform. */
.js .panel h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.req { margin: 2px 0 0; color: var(--text-2); font-size: 14px; }
.js .req { margin-top: 0; }

/* .ahc-auth-submit */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 18px 34px -24px var(--glow), inset 0 1px 0 var(--g-btn-hi);
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s var(--ease), filter .2s;
}
.btn svg { margin-left: 8px; }
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: scale(.98); }
.btn:focus { outline: none; }
.btn:focus-visible { box-shadow: 0 0 0 3px var(--accent-soft), 0 0 0 1px var(--accent); }

.meta {
  margin: 10px 0 0;
  text-align: center;
  color: var(--text-3);
  font-size: 14px;
}

h3 {
  margin: 24px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  font-weight: 600;
}
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 36px;
  color: var(--text-2);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border: 1px solid var(--auth-field-brd);
  border-radius: 50%;
  background: var(--auth-field-bg);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
  text-align: center;
}
.file {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text);
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.hint {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--auth-field-brd);
  border-radius: var(--radius);
  background: var(--auth-field-bg);
  color: var(--text-2);
  font-size: 14px;
}

.updates {
  margin: 24px 0 0;
  text-align: center;
  color: var(--text-3);
  font-size: 14px;
}

.foot {
  margin-top: 20px;
  color: var(--text-3);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 420px) {
  .card { padding: 22px; border-radius: var(--radius-2xl); }
  h1 { margin-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .tab, .tab-thumb { transition: none; }
  .btn:active { transform: none; }
  .panel.is-entering,
  .panel.is-entering.from-left { -webkit-animation-name: panel-fade; animation-name: panel-fade; }
}
@-webkit-keyframes panel-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes panel-fade { from { opacity: 0; } to { opacity: 1; } }
