@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F;
}

:root {
  color-scheme: light;
  --brand: #33305a;
  --ink: #1f1d4c;
  --link: #0071b3;
  --link-hover: #005c93;
  --background: #f5f5f7;
  --border: #e0e2ea;
  --muted: #5c5a75;
  --surface: #fff;
}

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

body {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  grid-template-rows: auto 1fr auto;
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font: 1rem/1.55 Inter, system-ui, sans-serif;
}

a {
  text-underline-offset: .2em;
}

a:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 4px;
}

.site-width {
  width: min(100% - 2.5rem, 72rem);
  margin-inline: auto;
}

.site-header {
  border-bottom: 3px solid #0785ce;
  background: var(--brand);
}

.site-header .site-width {
  display: flex;
  min-height: 4.25rem;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.brand:focus-visible {
  outline-color: #fff;
}

.brand img {
  display: block;
  width: 9.5rem;
  height: auto;
}

main {
  display: grid;
  align-items: center;
  justify-items: center;
  padding: clamp(2.5rem, 8vh, 5rem) 1rem;
}

.card {
  width: min(100%, 30rem);
  padding: clamp(1.5rem, 6vw, 2.75rem);
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: 0 12px 38px rgba(51, 48, 90, .08);
}

.portal-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.35rem;
  position: relative;
  place-items: center;
  border-radius: .75rem;
  color: var(--link);
  background: #eaf4fb;
}

.portal-icon-lock::before {
  position: absolute;
  top: .63rem;
  width: .75rem;
  height: .7rem;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: .45rem .45rem 0 0;
  content: "";
}

.portal-icon-lock::after {
  position: absolute;
  top: 1.24rem;
  width: 1.15rem;
  height: .97rem;
  border: 2px solid currentColor;
  border-radius: .22rem;
  content: "";
}

.portal-icon-check::after {
  width: 1.2rem;
  height: .65rem;
  margin-top: -.18rem;
  transform: rotate(-45deg);
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  content: "";
}

.card h1 {
  margin: 0 0 .8rem;
  font-size: clamp(1.7rem, 5vw, 2.1rem);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -.035em;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.primary {
  display: inline-flex;
  min-height: 3rem;
  min-width: 8.25rem;
  margin-top: 1.5rem;
  padding: .65rem 1.5rem;
  align-items: center;
  justify-content: center;
  border-radius: .5rem;
  background: var(--link);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.primary:hover {
  background: var(--link-hover);
}

.site-footer {
  padding-block: 1.2rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
  font-size: .875rem;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--link);
}

@media (max-width: 30rem) {
  .site-header .site-width {
    min-height: 3.75rem;
  }

  .primary {
    width: 100%;
  }
}
