@font-face {
  font-family: Jura;
  src: url('/portal-fonts/jura-cyrillic.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
  font-family: Jura;
  src: url('/portal-fonts/jura-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  color-scheme: dark;
  --surface: #17171b;
  --input: #232328;
  --text: #ebe9ed;
  --muted: #b0adb9;
  --accent: #a7bce8;
  --border: #3f4553;
  background: #0c0c0e;
  color: var(--text);
  font: 600 16px/1.5 Jura, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  display: grid;
  min-block-size: 100vh;
  min-block-size: 100dvh;
  place-items: center;
  margin: 0;
  padding: clamp(14px, 4vw, 44px);
  background: radial-gradient(ellipse at 50% 17%, #212b40, transparent 57%);
}

.portal-card {
  inline-size: min(100%, 440px);
  padding: clamp(20px, 6vw, 34px);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 20px 68px #0008;
}

.portal-brand { display: flex; align-items: center; gap: 12px; color: var(--accent); font-size: 20px; font-weight: 700; }
.portal-brand img { width: 132px; max-width: 60%; height: auto; display: block; }
h1 { margin: 26px 0 20px; font-size: clamp(25px, 7vw, 32px); line-height: 1.15; }
h2 { margin: 0 0 12px; font-size: 19px; }
p { margin-block: 15px 0; }
form, #portal-options { display: grid; gap: 14px; }
label { display: grid; gap: 5px; color: var(--muted); }
input { min-width: 0; min-height: 48px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 11px; background: var(--input); }
input, button { color: var(--text); font: inherit; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.portal-button {
  display: grid;
  min-height: 48px;
  width: 100%;
  padding: 9px 12px;
  place-items: center;
  border: 1px solid #8ba3d3;
  border-radius: 11px;
  background: #283953;
  color: #edf3ff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.portal-button:not(:disabled):hover { background: #354b6d; }
.portal-button:disabled { opacity: .65; cursor: wait; }
.portal-option { text-align: left; justify-items: start; overflow-wrap: anywhere; }
.portal-option small { color: #c0cce4; }
.portal-link { margin-top: 14px; padding: 7px 0; border: 0; background: transparent; color: var(--accent); cursor: pointer; }
.portal-steps { padding-inline-start: 1.5em; margin-block: 0 23px; color: var(--muted); }
.portal-steps li + li { margin-top: 9px; }
#portal-error { color: #f5a3ac; }
