body[data-auth="loading"] .topbar,
body[data-auth="required"] .topbar,
body[data-auth="loading"] .tk-topbar,
body[data-auth="required"] .tk-topbar {
  display: none;
}

.potok-auth-gate {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(90deg, rgb(125 135 150 / 4.5%) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(rgb(125 135 150 / 4.5%) 1px, transparent 1px) 0 0 / 72px 72px,
    #f8f9f7;
}

.potok-auth-gate[hidden],
.potok-auth-form[hidden],
.potok-auth-status[hidden] {
  display: none;
}

.potok-auth-card {
  width: min(430px, 100%);
  padding: 38px 38px 34px;
  border: 1px solid #cfd5dc;
  border-top: 3px solid #0d1a2d;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 18px 50px rgb(7 17 31 / 8%);
}

.potok-auth-card > img {
  width: 58px;
  height: 58px;
  display: block;
  margin-bottom: 26px;
  border-radius: 5px;
}

.potok-auth-card h1 {
  margin: 0 0 25px;
  color: #0d1a2d;
  font-family: "F37 Ginger", "TT Days Sans", sans-serif;
  font-size: 31px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.potok-auth-form {
  display: grid;
  gap: 13px;
}

.potok-auth-form label {
  display: grid;
  gap: 6px;
}

.potok-auth-form label > span {
  color: #596577;
  font-size: 9px;
  font-weight: 700;
}

.potok-auth-form input {
  width: 100%;
  height: 43px;
  padding: 0 12px;
  border: 1px solid #cfd5dc;
  outline: 0;
  color: #0d1a2d;
  background: #fff;
  font: inherit;
  font-size: 12px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.potok-auth-form input:focus {
  border-color: #246bfe;
  box-shadow: 0 0 0 3px rgb(36 107 254 / 10%);
}

.potok-auth-form button {
  min-height: 43px;
  margin-top: 3px;
  border: 1px solid #0d1a2d;
  color: #fff;
  background: #0d1a2d;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.potok-auth-form button:hover {
  background: #17263b;
}

.potok-auth-form.is-busy {
  opacity: .55;
  pointer-events: none;
}

.potok-auth-google {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  opacity: 1;
  transition: opacity .16s ease;
}

.potok-auth-google[hidden] {
  display: none;
}

.potok-auth-google.is-busy {
  opacity: .45;
  pointer-events: none;
}

.potok-auth-status {
  min-height: 16px;
  margin: 14px 0 0;
  color: #7a8594;
  font-size: 8px;
  line-height: 1.45;
}

@media (max-width: 820px) {
  .potok-auth-gate {
    align-items: start;
    padding: 18px 12px;
    overflow-y: auto;
  }

  .potok-auth-card {
    padding: 26px 22px 24px;
  }

  .potok-auth-card > img {
    margin-bottom: 20px;
  }

  .potok-auth-card h1 {
    font-size: 27px;
  }

  .potok-auth-form input {
    height: 48px;
    font-size: 16px;
  }
}
