/* Shared navigation control used on chat, choose and password screens. */
.back-navigation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: rgba(9, 12, 29, 0.24);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.back-navigation svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.back-navigation:hover {
  transform: translateX(-2px);
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.17);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
}

.back-navigation:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
}

.back-navigation--chat {
  flex: 0 0 auto;
  margin-right: 12px;
}

.back-navigation--choose {
  flex: 0 0 auto;
}

.back-navigation--auth {
  margin-bottom: 18px;
}

@media (max-width: 640px) {
  .back-navigation {
    min-width: 36px;
    min-height: 36px;
    padding: 8px;
  }

  .back-navigation--chat {
    margin-right: 8px;
  }

  .back-navigation span {
    display: none;
  }
}
